* dwarf2cfi.c, dwarf2cfi.h: Remove.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4538b4f4
MK
12003-06-08 Mark Kettenis <kettenis@gnu.org>
2
3 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4
a0273b2f
AF
52003-06-07 Adam Fedor <fedor@gnu.org>
6
7 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
8 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
9 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
10 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
11 resolve_msgsend_super, resolve_msgsend_super_stret):
12 Use it.
13
3a6c3343
AC
142003-06-07 Andrew Cagney <cagney@redhat.com>
15
16 * symfile.h: Re-indent, clean up comments.
17
b46e02f6
AC
182003-06-07 Andrew Cagney <cagney@redhat.com>
19
20 * inferior.h (deprecated_write_sp): Replace
21 generic_target_write_sp.
22 * regcache.c (deprecated_write_sp): Replace
23 generic_target_write_sp.
24 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
25 * vax-tdep.c (vax_gdbarch_init): Update.
26 * v850-tdep.c (v850_gdbarch_init): Update.
27 * sparc-tdep.c (sparc_gdbarch_init): Update.
28 * sh-tdep.c (sh_gdbarch_init): Update.
29 * s390-tdep.c (s390_gdbarch_init): Update.
30 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
31 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
32 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
33 * mcore-tdep.c (mcore_gdbarch_init): Update.
34 * m68k-tdep.c (m68k_gdbarch_init): Update.
35 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
36 * ia64-tdep.c (ia64_gdbarch_init): Update.
37 * h8300-tdep.c (h8300_gdbarch_init): Update.
38 * frv-tdep.c (frv_gdbarch_init): Update.
39 * cris-tdep.c (cris_gdbarch_init): Update.
40 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
41
a42e117c
AC
422003-06-07 Andrew Cagney <cagney@redhat.com>
43
44 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
45 Assert that PC_REGNUM is valid.
46 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
47
bd1ce8ba
AC
482003-06-07 Andrew Cagney <cagney@redhat.com>
49
50 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
51 * gdbarch.h, gdbarch.c: Regenerate.
52 * mn10300-tdep.c: Include "gdb_assert.h".
53 (mn10300_read_fp): New function.
54 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
55 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
56 * ia64-tdep.c: Include "gdb_assert.h".
57 (ia64_read_fp): New function.
58 (ia64_gdbarch_init): Set deprecated_target_read_fp to
59 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
60 * regcache.c (generic_target_read_sp): Delete function.
61 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
62 * inferior.h (generic_target_read_sp): Delete declaration.
63 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
64 generic_target_read_sp.
65 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
66 * sparc-tdep.c (sparc_gdbarch_init): Ditto
67 * sh-tdep.c (sh_gdbarch_init): Ditto.
68 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
69 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
70
ec5cbaec
AC
712003-06-07 Andrew Cagney <cagney@redhat.com>
72
73 * gdbarch.sh: Comment each field of startup_gdbarch.
74 * gdbarch.h, gdbarch.c: Re-generate.
75
cde9ea48
AC
762003-06-07 Andrew Cagney <cagney@redhat.com>
77
78 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
79 * gdbarch.h, gdbarch.c: Re-generate.
80 * regcache.c: Update comments on read_pc et.al.
81 (generic_target_read_pc): Delete function.
82 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
83 * inferior.h (generic_target_read_pc): Delete declaration.
84 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
85 generic_target_read_pc.
86 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
87 * sh-tdep.c (sh_gdbarch_init): Ditto.
88 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
89 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
90
9a90a780
AC
912003-06-07 Andrew Cagney <cagney@redhat.com>
92
93 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
94 "index" with "special_local_sect". Use strcmp instead of STREQ.
95 Append period to coments.
96
a39a16c4
MM
972003-06-06 Mark Mitchell <mark@codesourcery.com>
98
99 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
100 (elfstab_offset_sections): Likewise.
101 * gdb-stabs.h (stab_section_info): Likewise.
102 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
103 * objfiles.c (objfile_relocate): Likewise.
104 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
105 * remote.c (get_offsets): Likewise.
106 (remote_cisco_objfile_relocate): Likewise.
107 * somread.c (som_symfile_offsets): Likewise.
108 * symfile.c (alloc_section_addr_info): New function.
109 (build_section_addr_info_from_section_tab): Use it.
110 (free_section_addr_info): Adjust.
111 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
112 (syms_from_objfile): Allocate local_addr dynamically.
113 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
114 dynamically.
115 (add_symbol_file_command): Allocate sect_opts dynamically.
116 (reread_symbols): Avoid use of SECT_OFF_MAX.
117 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
118 (alloc_section_addr_info): Declare it.
119 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
120 * win32-nat.c (solib_symbols_add): Allocate section_addrs
121 dynamically.
122 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
123
20c6c2f8
AC
1242003-06-06 Andrew Cagney <cagney@redhat.com>
125
126 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
127 (d10v_frame_unwind_cache): Do not set "return_pc".
128
884a26c8
MS
1292003-06-06 Michael Snyder <msnyder@redhat.com>
130
131 * h8300-tdep.c: Make tidy (long lines).
132
088ce440
ML
1332003-06-06 Michal Ludvig <mludvig@suse.cz>
134
135 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
136 to regcache_collect().
137
7d773d96
JB
1382003-06-05 J. Brobecker <brobecker@gnat.com>
139
140 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
141 pc_in_sigtramp multiarch method.
142 (hppa_hpux_som_init_abi): Use it.
143 (hppa_hpux_elf_init_abi): Likewise.
144 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
145 macro has been multiarched.
146 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
147 macro here, as hppa64 isn't multiarched yet.
148
1df6926e
AC
1492003-06-05 Andrew Cagney <cagney@redhat.com>
150
151 * Makefile.in (value_h): Add $(frame_h).
152 * value.h: Include "frame.h".
153 (struct value): Replace "frame_addr" with "frame_id".
154 (VALUE_FRAME_ID): Replace VALUE_FRAME.
155 * values.c (allocate_value): Use VALUE_FRAME_ID.
156 (value_copy): Use VALUE_FRAME_ID.
157 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
158 * valops.c (value_assign): Update. Use frame_find_by_id.
159
6b53acc6
ML
1602003-06-05 Michal Ludvig <mludvig@suse.cz>
161
162 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
163 in each pass.
164
4d9850d3
JJ
1652003-06-05 Jeff Johnston <jjohnstn@redhat.com>
166
167 * thread-db.c (check_event): For create/death event breakpoints,
168 loop through all messages to ensure that we read the message
169 corresponding to the breakpoint we are at.
170
8efca6ba
MS
1712003-06-04 Michael Snyder <msnyder@redhat.com>
172
173 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
174
0912c7f2
MK
1752003-06-04 Mark Kettenis <kettenis@gnu.org>
176
177 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
178 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
179 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
180 when handling .eh_frame sections.
181
4e370325
JB
1822003-06-04 J. Brobecker <brobecker@gnat.com>
183
184 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
185 prepare_to_proceed procedure instead of the hppa-specific one.
186 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
187
b757528f
JJ
1882003-06-04 Jeff Johnston <jjohnstn@redhat.com>
189
190 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
191 * config.in: Regenerated.
192 * configure.in: Add test for syscall function and check for
193 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
194 * configure: Regenerated.
195 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
196 <sys/syscall.h>.
197 (kill_lwp): New function that uses tkill syscall or
198 uses kill, depending on whether threading model is nptl or not.
199 All callers of kill() changed to use kill_lwp().
200 (lin_lwp_wait): Make special check when WIFEXITED occurs to
201 see if all threads have already exited in the nptl model.
202 (stop_and_resume_callback): New callback function used by the
203 lin_lwp_wait thread exit handling code.
204 (stop_wait_callback): Check for threads already having exited and
205 delete such threads fromt the lwp list when discovered.
206 (stop_callback): Don't assert retcode of kill call.
207
208 Roland McGrath <roland@redhat.com>
209 * i386-linux-nat.c (ps_get_thread_area): New function needed by
210 nptl libthread_db.
211
087779b1
RH
2122003-06-03 Richard Henderson <rth@redhat.com>
213
b21fd293
RH
214 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
215 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
216 (alpha_sigtramp_frame_prev_register): Likewise.
217 (alpha_heuristic_frame_prev_register): Likewise.
218 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
219
087779b1
RH
220 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
221 alpha-specific register id names.
222 (alpha_mdebug_frame_unwind_cache): Likewise.
223 (alpha_mdebug_frame_prev_register): Likewise.
224
baa490c4
RH
2252003-06-03 Richard Henderson <rth@redhat.com>
226
227 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
228 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
229 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
230 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
231 unwind routines.
232 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
233 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
234 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
235
236 * alpha-linux-tdep.c: Remove unnecessary includes.
237 * Makefile.in (alpha-linux-tdep.o): Update.
238
2392003-06-03 Richard Henderson <rth@redhat.com>
240
241 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
242 (alphabsd_fill_fpreg): Likewise.
243
f534e522
JB
2442003-06-03 J. Brobecker <brobecker@gnat.com>
245
246 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
247 references to struct frame_info fields by calls to the equivalent
248 accessors. Necessary now that frame_info is opaque.
249
4035536b
JB
2502003-06-03 J. Brobecker <brobecker@gnat.com>
251
252 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
253 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
254 structure, field no longer exists.
255
0bd79c5c
JB
2562003-06-03 J. Brobecker <brobecker@gnat.com>
257
258 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
259 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
260
37bb6d9f
JB
2612003-06-03 J. Brobecker <brobecker@gnat.com>
262
263 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
264 references to struct frame_info fields by calls to the equivalent
265 accessors. Necessary now that frame_info is opaque.
266
852ee05c
JB
2672003-06-03 J. Brobecker <brobecker@gnat.com>
268
269 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
270 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
271 structure, field no longer exists.
272
7d58c67d
TR
2732003-06-03 Theodore A. Roth <troth@openavr.org>
274
275 * remote.c (init_remote_state): Compute sizeof_g_packet by
276 accumulation of the size of all registers instead of blindly using
277 DEPRECATED_REGISTER_BYTES.
278
0a48e7e8
MS
2792003-06-03 Michael Snyder <msnyder@redhat.com>
280
281 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
282 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
283 for h8300sx.
284
9798ab0d
JB
2852003-06-03 J. Brobecker <brobecker@gnat.com>
286
287 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
288 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
289
00b037e2
AC
2902003-06-03 Andrew Cagney <cagney@redhat.com>
291
292 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
293 (sparc_convert_to_raw): Delete function.
294 (sparc_gdbarch_init): Do not set register_convert_to_raw or
295 register_convert_to_virtual.
296
043b2f77
JJ
2972003-06-03 Jeff Johnston <jjohnstn@redhat.com>
298
299 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
300 layer if not dealing with a statically-linked threaded program.
301
f43caff8
KW
3022003-06-03 Kris Warkentin <kewarken@qnx.com>
303
304 * solib.c (solib_open): Update comment to reflect actual search order.
305
ae1e7417
AC
3062003-06-03 Andrew Cagney <cagney@redhat.com>
307
308 * frame.c (get_frame_memory_signed): New function.
309 (get_frame_memory, get_frame_memory_unsigned): New function.
310 (get_frame_arch): New function.
311 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
312 (get_frame_memory, get_frame_unsigned_memory): Declare.
313 * d10v-tdep.c (d10v_frame_unwind_cache): Use
314 get_frame_memory_unsigned and get_frame_arch.
315 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
316
cb123844
RG
3172003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
318
319 * MAINTAINERS (write after approval): Add myself.
320
1bb792e9
JB
3212003-06-03 Jim Blandy <jimb@redhat.com>
322
323 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
324 elements of gregset_t are 64 bits each, but access registers
325 are still 32 bits, so they're packed two per gregset_t
326 element. Unpack/pack them properly.
327
aee8d8ba
DC
3282003-06-02 David Carlton <carlton@bactrian.org>
329
330 * linespec.c (find_methods): Break out code into
331 add_matching_methods and add_constructors.
332 (add_matching_methods): New.
333 (add_constructors): Ditto.
334
bf7488d2
AC
3352003-06-02 Andrew Cagney <cagney@redhat.com>
336
bf7488d2
AC
337 * sparc-tdep.c (sparc_print_registers): Delete call to
338 REGISTER_CONVERTIBLE.
339 (sparc_gdbarch_init): Do not set register_convertible.
340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
341 * frv-tdep.c (frv_gdbarch_init): Ditto.
342 * cris-tdep.c (cris_gdbarch_init): Ditto.
343
adedef68
EZ
3442003-06-02 Elena Zannoni <ezannoni@redhat.com>
345
346 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
347 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
348 (syms_from_objfile): Ditto.
349
650fcc91
AS
3502003-06-03 Andreas Schwab <schwab@suse.de>
351
352 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
353 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
354
df4a182b
RH
3552003-06-02 Richard Henderson <rth@redhat.com>
356
357 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
358 a member of all_reggroup.
359
c483c494
RH
3602003-06-02 Richard Henderson <rth@redhat.com>
361
362 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
363 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
364 (alpha_lds, alpha_sts): New.
365 (alpha_convert_register_p): Change from _register_convertible.
366 (alpha_register_to_value): Change from _convert_to_virtual;
367 restructure and fail for type sizes other than 4 or 8.
368 (alpha_value_to_register): Similarly.
369 (alpha_extract_return_value): Use alpha_sts.
370 (alpha_store_return_value): Use alpha_lds.
371 (alpha_gdbarch_init): Update hooks.
372
b38b6be2
RH
3732003-06-02 Richard Henderson <rth@redhat.com>
374
375 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
376 regnum identifiers.
377 (alpha_sigtramp_register_address): Likewise.
378
98a8e1e5
RH
3792003-06-02 Richard Henderson <rth@redhat.com>
380
381 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
382 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
383 * alpha-tdep.h: Declare them.
384
385 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
386 Remove zerobuf. Don't error on UNIQUE.
387 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
388 (ALPHA_REGSET_UNIQUE): Provide default.
389 (supply_gregset): Use alpha_supply_int_regs.
390 (fill_gregset): Use alpha_fill_int_regs.
391 (supply_fpregset): Use alpha_supply_fp_regs.
392 (fill_fpregset): Use alpha_fill_fp_regs.
393 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
394 (alphabsd_supply_reg): Use alpha_supply_int_regs.
395 (alphabsd_fill_reg): Use alpha_fill_int_regs.
396 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
397 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
398 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
399
67dfac52
RH
4002003-06-02 Richard Henderson <rth@redhat.com>
401
f75d70cc
RH
402 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
403
67dfac52
RH
404 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
405 (alpha_store_return_value): Likewise.
406
0cf566ec
DC
4072003-06-02 David Carlton <carlton@math.stanford.edu>
408
409 * block.c (contained_in): Add 'const' to arguments.
410 (block_function): Ditto.
411 * block.h: Update declarations for block_function and
412 contained_in.
413
cdef89d0
DC
4142003-06-02 David Carlton <carlton@math.stanford.edu>
415
416 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
417 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
418 * p-valprint.c (pascal_val_print): Ditto.
419 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
420
72667056
RH
4212003-06-02 Richard Henderson <rth@redhat.com>
422
98a8e1e5
RH
423 * alpha-tdep.c (alpha_push_dummy_call): Use
424 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 425
98a8e1e5
RH
426 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
427 sign-extension of 32-bit values.
428 (alpha_store_return_value): Similarly.
0ede8eca 429
98a8e1e5
RH
430 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
431 (alpha_extract_return_value): Likewise.
432 (alpha_store_return_value): Likewise.
7b5e1cb3 433
98a8e1e5
RH
434 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
435 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 436
98a8e1e5
RH
437 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
438 (alpha_extract_struct_value_address): Likewise.
439 (alpha_store_return_value): Likewise.
440 (alpha_store_struct_return): Remove.
441 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 442
98a8e1e5
RH
443 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
444 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
445 macros where appropriate.
446 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
447 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 448
98a8e1e5
RH
449 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
450 for SP, GP; void_func_ptr for PC; non-language-specific types
451 for all others.
452 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 453
6dd77b81
RH
4542003-06-02 Richard Henderson <rth@redhat.com>
455
456 * top.h (lim_at_start): Declare.
457 * main.c (captured_main): Set it.
458 * top.c (lim_at_start): Define.
459 (command_loop): Use it instead of &environ.
460 * event-top.c (command_handler): Likewise.
461
f4dbdb54
JT
4622003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
463
464 * mipsnbsd-tdep.c: Update copyright years.
465 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
466
8f285956
RH
4672003-06-01 Richard Henderson <rth@redhat.com>
468
98a8e1e5
RH
469 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
470 (alpha-linux-tdep.o): Update dependencies.
471 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
472 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 473
615967cb
RH
4742003-06-01 Richard Henderson <rth@redhat.com>
475
98a8e1e5
RH
476 * alpha-tdep.c (alpha_register_reggroup_p): New.
477 (alpha_gdbarch_init): Register it.
615967cb 478
b59661bd
AC
4792003-06-02 Andrew Cagney <cagney@redhat.com>
480
481 * dwarfread.c: Eliminate "register"
482 (decode_die_type): Eliminate assignment within "if".
483 (struct_type, decode_array_element_type): Ditto.
484 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
485 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
486 (decode_modified_type, completedieinfo): Ditto.
487 * block.c: Eliminate "register".
488 (blockvector_for_pc_sect): Eliminate assignment within "if".
489 * cp-support.h (struct symbol): Opaque declaration.
490 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
491
5ef165c2
RH
4922003-06-01 Richard Henderson <rth@redhat.com>
493
98a8e1e5
RH
494 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
495 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 496
143985b7
AF
4972003-06-01 Adam Fedor <fedor@gnu.org>
498
499 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
500 * gdbarch.[ch]: Regenerate.
501 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
502 (hppa_gdbarch_init): Set it in the gdbarch vector.
503 * i386-tdep.c (i386_fetch_pointer_argument): New
504 (i386_gdbarch_init): Set it into gdbarch.
505 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
506 (rs6000_gdbarch_init): Set it in gdbarch.
507 * sparc-tdep.c (sparc_fetch_pointer_argument): New
508 (sparc_gdbarch_init): Set it in gdbarch.
509
ae0167b9
AC
5102003-06-01 Andrew Cagney <cagney@redhat.com>
511
7c0b4a20
AC
512 * defs.h (extract_address): Delete declaration.
513 * findvar.c (extract_address): Delete function.
514 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
515 extract_address with the inline equivalent,
516 extract_unsigned_integer.
517 (xstormy16_extract_struct_value_address): Ditto.
518 (xstormy16_pointer_to_address): Ditto.
519 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
520 * v850-tdep.c (v850_push_arguments): Ditto.
521 (v850_extract_return_value): Ditto.
522 (v850_extract_struct_value_address): Ditto.
523 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
524 (sparcnbsd_get_longjmp_target_64): Ditto.
525 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
526 (get_longjmp_target): Ditto.
527 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
528 (sh64_extract_struct_value_address): Ditto.
529 (sh_push_arguments): Ditto.
530 (sh64_push_arguments): Ditto.
531 * remote-vxsparc.c (vx_read_register): Ditto.
532 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
533 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
534 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
535 * mipsv4-nat.c (get_longjmp_target): Ditto.
536 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
537 * mips-nat.c (get_longjmp_target): Ditto.
538 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
539 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
540 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
541 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
542 * irix5-nat.c (get_longjmp_target): Ditto.
543 * irix4-nat.c (get_longjmp_target): Ditto.
544 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
545 (ia64_push_arguments): Ditto.
546 * hpux-thread.c (hpux_thread_store_registers): Ditto.
547 * h8300-tdep.c (h8300_push_arguments): Ditto.
548 (h8300_store_return_value): Ditto.
549 (h8300_extract_struct_value_address): Ditto.
550 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
551 (frv_push_arguments): Ditto.
552 * avr-tdep.c (avr_pointer_to_address): Ditto.
553 (avr_push_arguments): Ditto.
554 * arm-tdep.c (arm_push_dummy_call): Ditto.
555 (arm_get_longjmp_target): Ditto.
556 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
557 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
558 (alpha_get_longjmp_target): Ditto.
559
ae0167b9
AC
560 * solib-irix.c (extract_mips_address): Inline extract_address,
561 replacing it with extract_signed_integer.
562 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
563 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
564 (first_link_map_member, open_symbol_file_object): Ditto.
565 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
566 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
567 (LM_NEXT, LM_NAME): Ditto.
568
44d88583
RH
5692003-06-01 Richard Henderson <rth@redhat.com>
570
98a8e1e5
RH
571 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
572 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
573 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
574 (alpha_cannot_store_register): Likewise.
575 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
576 * alpha-nat.c (supply_gregset): Likewise.
577 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 578
310e9b6a
AC
5792003-06-01 Andrew Cagney <cagney@redhat.com>
580
581 * infcall.c (call_function_by_hand): Update comment on
582 DEPRECATED_DUMMY_WRITE_SP.
583
584 * mips-tdep.c (mips_gdbarch_init): Do not set
585 deprecated_dummy_write_sp.
586 (mips_eabi_push_dummy_call): Set the SP register.
587 (mips_o64_push_dummy_call): Set the SP register.
588 (mips_o32_push_dummy_call): Set the SP register.
589 (mips_n32n64_push_dummy_call): Set the SP register.
590
5ab84872
RH
5912003-06-01 Richard Henderson <rth@redhat.com>
592
98a8e1e5
RH
593 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
594 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
595 (supply_gregset): Likewise.
596 * alpha-tdep.c (alpha_store_return_value): Likewise.
597 (alpha_get_longjmp_target): Likewise.
598 (alpha_register_name): Constify array.
599 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
600 deprecated_register_size, deprecated_register_bytes,
601 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
602 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
603 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 604
09cc52fd
RH
6052003-06-01 Richard Henderson <rth@redhat.com>
606
607 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
608 from arg_reg_buffer to regcache to avoid double conversion.
609
c7f16359
MK
6102003-06-01 Mark Kettenis <kettenis@gnu.org>
611
612 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
613 SP_REGNUM.
614 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
615 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
616
7131cb6e
RH
6172003-06-01 Richard Henderson <rth@redhat.com>
618
98a8e1e5
RH
619 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
620 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 621
f3e0f90b
RH
6222003-06-01 Richard Henderson <rth@redhat.com>
623
98a8e1e5
RH
624 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
625 not overlapping PC_REGNUM.
f3e0f90b 626
c88e30c0
RH
6272003-06-01 Richard Henderson <rth@redhat.com>
628
98a8e1e5
RH
629 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
630 alpha_push_arguments. Don't dump argument register data to
631 the target stack. Fix float and 128-bit long double semantics.
632 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
633 (alpha_fix_call_dummy): Remove.
634 (alpha_call_dummy_words): Remove.
635 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 636
f1a559ae
RH
6372003-06-01 Richard Henderson <rth@redhat.com>
638
639 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
640
5e045346
AC
6412003-06-01 Andrew Cagney <cagney@redhat.com>
642
95404a3e
AC
643 * mips-tdep.c (is_mips16_addr): New function.
644 (make_mips16_addr, unmake_mips16_addr): New functions.
645 (pc_is_mips16, mips_fetch_instruction): Use.
646 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
647 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
648 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
649 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
650 TARGET_MIPS.
651 * config/mips/tm-mips.h: Update copyright.
652 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
653 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
654 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
655 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
656 (TM_PRINT_INSN_MACH): Delete.
657 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
658
5e045346
AC
659 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
660 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
661 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
662 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
663 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
664 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
665 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
666 mips*-*-riscos* and mips*-*-sysv* onto mips.
667 * config/mips/mips64.mt: New file.
668 * config/mips/mips.mt: New file.
669 * config/mips/littlemips.mt: Delete file.
670 * config/mips/decstation.mt: Delete file.
671 * config/mips/vr4300el.mt: Delete file.
672 * config/mips/vr5000el.mt: Delete file.
673 * config/mips/vr5000.mt: Delete file.
674 * config/mips/vr4100.mt: Delete file.
675 * config/mips/vr4xxxel.mt: Delete file.
676 * config/mips/vr4300.mt: Delete file.
677 * config/mips/vr4xxx.mt: Delete file.
678 * config/mips/bigmips.mt: Delete file.
679 * config/mips/bigmips64.mt: Delete file.
680 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
681 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
682 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
683 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
684 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
685 "tm-bigmips.h".
686 * config/mips/tm-irix3.h: Ditto.
687 * config/mips/tm-mipsv4.h: Ditto.
688 * config/mips/tm-embed.h: Ditto.
689 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
690 "tm-bigmips64.h".
691 * config/mips/tm-vr5000el.h: Delete file.
692 * config/mips/tm-tx39l.h: Delete file.
693 * config/mips/tm-vr4300el.h: Delete file.
694 * config/mips/tm-vr4xxxel.h: Delete file.
695 * config/mips/tm-vr4300.h: Delete file.
696 * config/mips/tm-vr4100.h: Delete file.
697 * config/mips/tm-vr4xxx.h: Delete file.
698 * config/mips/tm-vr5000.h: Delete file.
699 * config/mips/tm-embedl64.h: Delete file.
700 * config/mips/tm-embedl.h: Delete file.
701 * config/mips/tm-embed64.h: Delete file.
702 * config/mips/tm-bigmips64.h: Delete file.
703 * config/mips/tm-bigmips.h: Delete file.
704
2473a4a9
MK
7052003-06-01 Mark Kettenis <kettenis@gnu.org>
706
97a5b208
MK
707 Fix gdb/1216.
708 * shnbsd-nat.c: Include "sh-tdep.h".
709
2473a4a9
MK
710 From Richard Henderson <rth@redhat.com>:
711 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
712
e0f7ec59
AC
7132003-05-31 Andrew Cagney <cagney@redhat.com>
714
715 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
716 forward declaration.
717 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
718 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
719 (mips_find_saved_regs): Use set_reg_offset.
720 (mips_frame_init_saved_regs): Delete function.
721 (mips_pop_frame): Call mips_find_saved_regs instead of
722 DEPRECATED_FRAME_INIT_SAVED_REGS.
723
68dcc709
AC
7242003-05-31 Andrew Cagney <cagney@redhat.com>
725
726 * mips-tdep.c (mips_gdbarch_init): Do not set
727 deprecated_max_register_raw_size, register_virtual_size, and
728 deprecated_max_register_virtual_size.
729
cfc14b3a
MK
7302003-05-31 Mark Kettenis <kettenis@gnu.org>
731
6405b0a6
MK
732 * i386-tdep.c: Include "dwarf2-frame.h".
733 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
734 * Makefile.in (i386-tdep.o): Update dependencies.
735
cfc14b3a
MK
736 * dwarf2-frame.c, dwarf2-frame.h: New files.
737 * Makefile.in (SFILES): Add dwarf2-frame.c.
738 (dwarf2_frame_h): Define.
739 (COMMON_OBS): Add dwarf2-frame.o.
740 (dwarf2-frame.o): Add dependencies.
741
6a2751d2
AJ
7422003-05-31 Andreas Jaeger <aj@suse.de>
743
744 * x86-64-linux-nat.c: Fix comment.
745
1c3545ae
MK
7462003-05-31 Mark Kettenis <kettenis@gnu.org>
747
10f93086
MK
748 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
749 function signature.
750
1c3545ae
MK
751 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
752 have a sigcontext_addr handler.
753 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
754 sigcontext_addr handler.
755
e11c53d2
AC
7562003-05-31 Andrew Cagney <cagney@redhat.com>
757
758 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
759 (print_fp_register_row): Replace do_fp_register_row.
760 (mips_print_fp_register): Add "file" and "frame" parameters.
761 (mips_print_register): Add "file" and "frame" parameters.
762 (mips_print_registers_info): Replace mips_do_registers_info.
763 (mips_gdbarch_init): Set print_registers_info instead of
764 deprecated_do_registers_info.
765 (mips_read_fp_register_single): Add "frame" parameter.
766 (mips_read_fp_register_double): Add "frame" parameter.
767
a3386186
MK
7682003-05-31 Mark Kettenis <kettenis@gnu.org>
769
70913449
MK
770 * i386-tdep.c (i386_register_name): Check for MMX registers first.
771 Fixes a bug where GDB would print the wrong register names for
772 targets without SSE.
773
2b5e0749
MK
774 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
775 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
776 registers.
777
778 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
779 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
780 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
781 TDEP->sc_sp_offset.
782
a3386186
MK
783 From Michal Ludvig <mludvig@suse.cz>:
784 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
785 and `sc_num_regs'.
786 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
787 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
788 I386_ST0_REGNUM): Move here from...
789 * i386-tdep.c: ... here.
790 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
791 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
792 registers if possible.
793 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
794 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
795 Remove variables.
796 (i386bsd_sc_reg_offset): New variable.
797 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
798 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
799 TDEP->sc_sp_offset.
800 (i386fbsd_sc_reg_offset): New variable.
801 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
802 TDEP->sc_num_regs.
803 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
804 variables.
805 (i386fbsd4_sc_reg_offset): New variable.
806 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
807 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
808 TDEP->sc_sp_offset.
809 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
810 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
811 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
812 Remove variables.
813 (i386nbsd_sc_reg_offset): New variable.
814 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
815 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
816 TDEP->sc_sp_offset.
817 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
818 Remove variables.
819 (i386obsd_sc_reg_offset): New variable.
820 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
821 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
822 TDEP->sc_sp_offset.
823 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
824 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
825 for frame pointer offset in `struct sigcontext'.
826
25ab4790
AC
8272003-05-31 Andrew Cagney <cagney@redhat.com>
828
829 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
830 architecture methods call_dummy_words, sizeof_call_dummy_words,
831 push_return_address, store_struct_return, and fix_call_dummy. Set
832 push_dummy_call instead of deprecated_push_arguments.
833 (mips_store_struct_return): Delete function.
834 (mips_fix_call_dummy): Delete function.
835 (mips_push_return_address): Delete function.
836 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
837 RA_REGNUM and T9_REGNUM.
838 (mips_n32n64_push_dummy_call): Ditto for
839 mips_n32n64_push_arguments.
840 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
841 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
842
6a65450a
AC
8432003-05-31 Andrew Cagney <cagney@redhat.com>
844
845 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
846 "dummy_addr" to "bp_addr".
847 * infcall.c (call_function_by_hand): Pass "funaddr" to
848 gdbarch_push_dummy_call.
849 * gdbarch.h, gdbarch.c: Re-generate.
850 * i386-tdep.c (i386_push_dummy_call): Update.
851 * arm-tdep.c (arm_push_dummy_call): Update.
852 * d10v-tdep.c (d10v_push_dummy_call): Update.
853
c4f35dd8
MK
8542003-05-31 Mark Kettenis <kettenis@gnu.org>
855
856 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
857 variable declarations.
858 (x86_64_register_number, x86_64_register_name): Remove prototypes.
859 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
860 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
861 x86_64_init_frame_pc, x86_64_init_frame_pc,
862 x86_64_function_has_prologue): Remove prototypes.
863 (X86_64_NUM_GREGS): New define.
864 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
865 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
866 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
867 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
868 XMM1_REGNUM): Remove defines.
869 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
870 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
871 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
872 X86_64_XMM1_REGNUM): New defines.
873 (struct x86_64_register_info): Renamed from `struct
874 register_info'. Remove `size' member.
875 (x86_64_register_info_table): Remove variable.
876 (x86_64_register_info): New variable.
877 (X86_64_NUM_REGS): New define.
878 (X86_64_NUM_GREGS): Remove define.
879 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
880 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
881 Remove variables.
882 (x86_54_dwarf2_reg_to_regnum): Remove function.
883 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
884 (x86_64_dwarf_reg_to_regnum): New function.
885 (x86_64_register_name): Rewrite.
886 (x86_64_register_raw_size): Remove function.
887 (x86_64_register_byte_table): Remove variable.
888 (x86_64_register_byte): Remove function.
889 (x86_64_register_virtual_type): Remove function.
890 (x86_64_register_type): New function.
891 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
892 x86_64_register_convert_to_raw): Remove functions.
893 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
894 (x86_64_use_struct_convention): Make static. Adjust for renamed
895 defines.
896 (x86_64_frame_init_saved_regs): Remove function.
897 (x86_64_push_arguments): Make static. Change to accept a regcache
898 as argument.
899 (x86_64_store_return_value, x86_64_extract_return_value): Make
900 static. Rewrite based on i386 counterparts.
901 (x86_64_push_dummy_call): New function.
902 (X86_64_NUM_SAVED_REGS): New define.
903 (x86_64_register_number): Remove function.
904 (x86_64_store_struct_return): Remove function.
905 (x86_64_frameless_function_invocation,
906 x86_64_function_has_prologue): Remove functions.
907 (PROLOG_BUFSIZE): Remove define.
908 (struct x86_64_frame_cache): New structure.
909 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
910 x86_64_frame_cache, x86_64_frame_this_id,
911 x86_64_frame_prev_register, x86_64_frame_p,
912 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
913 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
914 functions.
915 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
916 variables.
917 (x86_64_skip_prologue): Rewrite in terms of
918 x86_64_analyze_prologue.
919 (x86_64_frame_base_address): New function.
920 (x86_64_frame_base): New variable.
921 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
922 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
923 set deprecated_fp_regnum, deprecated_register_size,
924 deprecated_register_bytes, register_raw_size, register_byte,
925 register_virtual_type, register_convertiable,
926 register_convert_to_virtual, convert_to_raw,
927 deprecated_get_saved_register, deprecated_target_read_fp,
928 deprecated_push_arguments, deprecated_push_return_address,
929 deprecated_pop_frame, deprecated_store_struct_return,
930 deprecated_frame_init_saved_regs, deprecated_frame_chain,
931 frameless_function_invocation, deprecated_frame_saved_pc,
932 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
933 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
934 deprecated_init_frame_pc and virtual_frame_pointer. Call
935 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
936 and x86_64_frame_p. Call frame_base_set_default to register
937 x86_64_frame_base.
938 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
939 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
940 (_initialize_x86_64_tdep): Remove function.
941 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
942 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
943 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
944 define.
945 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
946 (x86_64_linux_sigcontext_addr): Rewrite.
947 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
948 x86_64_linux_frame_saved_pc): Remove functions.
949 (x86_64_linux_pc_in_sigtramp): Renamed from
950 x86_64_linux_in_sigtramp. Try harder to recognize a signal
951 trampoline.
952 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
953 Remove_functions.
954 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
955 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
956 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
957 (x86_64_regmap): Rename to regmap.
958 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
959 x86_64_num_gregs.
960 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
961 x86_64_regmap.
962 (x86_64_fxsave_offset): Remove function.
963 (supply_fpregset): Simply call x86_64_supply_fxsave.
964 (fill_fpregset): Simply call x86_64_fill_fxsave.
965 (fetch_inferior_registers, store_inferior_registers): Avoid
966 asignment in if-statement.
967 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
968 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
969 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
970 (fetch_core_registers): Remove function.
971 (linux_elf_core_fns): Remove.
972 (offsetoff): Don't define.
973 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
974 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
975 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
976 add core-regset.o.
977 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
978 protection against multiple includes instead of NM_X86_64_h. Add
979 various comments. Include "config/nm-linux.h". Don't include
980 <signal.h>.
981 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
982 GET_THREAD_SIGNALS): Remove defines.
983 (x86_64_register_u_addr, kernel_u_size,
984 lin_thread_get_thread_signals): Remove prototypes.
985 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
986 [HAVE_LINK_H]: Don't include "solib.h".
987 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
988 * config/i386/tm-x86-64linux.h: Fix comments.
989 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
990 x86-64-tdep.o): Update dependencies.
991
c25083af
AC
9922003-05-30 Andrew Cagney <cagney@redhat.com>
993
c8f55a7b
AC
994 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
995 Change parameter type to a "struct regcache *".
996
c25083af
AC
997 * gdbarch.sh: Regardless of the multi-arch level, always define
998 the macro when not already defined.
999 * gdbarch.h, gdbarch.c: Re-generate.
1000
fbe586ae
RH
10012003-05-30 Richard Henderson <rth@redhat.com>
1002
1003 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
1004 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
1005 (alpha_mdebug_frame_this_id): Likewise.
1006 (alpha_mdebug_frame_prev_register): Likewise.
1007 (alpha_mdebug_frame_base_address): Likewise.
1008 (alpha_mdebug_frame_locals_address): Likewise.
1009 (alpha_mdebug_frame_args_address): Likewise.
1010 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
1011 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
1012 (alpha_heuristic_frame_unwind_cache): Make static; add missing
1013 loop increment.
1014 (alpha_heuristic_frame_this_id): Make static.
1015 (alpha_heuristic_frame_prev_register): Likewise.
1016 (alpha_heuristic_frame_base_address): Likewise.
1017 * alpha-tdep.h: Update.
1018
acd5c798
MK
10192003-05-30 Mark Kettenis <kettenis@gnu.org>
1020
1021 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
1022 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
1023 defenitions.
1024 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
1025 * i386-tdep.c: Mark functions that are 64-bit safe as such.
1026 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1027 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
1028 I386_ST0_REGNUM): New defines.
1029 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
1030 codestream_get): Remove define.
1031 (codestream_next_addr, condestream_addr, condestream_buf,
1032 codestream_off, codestream_cnt): Remove variables.
1033 (codestream_fill, codestream_seek, codestream_read): Remove
1034 functions.
1035 (i386_follow_jump): Rewrite to avoid usage of removed codestream
1036 functionality.
1037 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
1038 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
1039 i386_frame_saved_pc, i386_saved_pc_after_call,
1040 i386_frame_num_args, i386_frame_init_saved_regs,
1041 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
1042 i386_push_arguments): Remove functions.
1043 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
1044 functionality. Use i386_analyze_prologue instead of
1045 i386_get_frame_setup.
1046 (I386_NUM_SAVED_REGS): New define.
1047 (struct i386_frame_cache): New structure.
1048 (i386_alloc_frame_cache, i386_analyze_struct_return,
1049 i386_skip_probe, i386_analyze_frame_setup,
1050 i386_analyze_register_saves, i386_analyze_prologue,
1051 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
1052 i386_frame_prev_register, i386_sigtramp_frame_cache,
1053 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
1054 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
1055 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
1056 New functions.
1057 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
1058 New variables.
1059 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
1060 I386_EAX_REGNUM and I386_EDX_REGNUM.
1061 (i386_extract_return_value, i386_store_return_value): Use
1062 I386_ST0_REGNUM where appropriate.
1063 (i386_extract_struct_value_address): Rewrite to use extract_address.
1064 (i386_svr4_pc_in_sigtramp): Add comment.
1065 (i386_svr4_sigcontext_addr): Rewrite.
1066 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
1067 TDEP->sc_sp_offset.
1068 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
1069 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
1070 of new defines. Set push_dummy_call, don't set
1071 deprecated_push_arguments, deprecated_push_return_address,
1072 deprecated_pop_frame. Don't set parm_boundary. Don't set
1073 deprecated_frame_chain, deprecated_frame_saved_pc,
1074 deprecated_saved_pc_after_call. Set unwind_dummy_id,
1075 save_dummy_frame_tos, unwind_pc. Call
1076 frame_unwind_append_predicate and frame_base_set_default. Don't
1077 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
1078 Don't set frameless_function_invocation. Don't set
1079 deprecated_register_bytes, deprecated_register_size,
1080 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
1081 * i386-linux-tdep.c: Fix formatting in some comments.
1082 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
1083 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
1084 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
1085 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
1086 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
1087 redundant parentheses.
1088 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
1089 (i386_linux_sigcontext_addr): Use it. Rewrite.
1090 (find_minsym_and_objfile): Change name of second argument.
1091 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
1092 changed. Use frame_pc_unwind instead of
1093 DEPRECATED_SAVED_PC_AFTER_CALL.
1094 (i386_linux_init_abi): Don't set deprecated_register_bytes.
1095 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
1096 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
1097 unwinder.
1098 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
1099 "dummy-frame.h".
1100 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
1101 (_initialize_i386_cygwin_tdep): New prototype.
1102 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
1103 deprecated_frame_chain_valid.
1104 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
1105 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
1106 Rely on the SVR4 defaults.
1107 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
1108 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
1109
c89b70f1
AC
11102003-05-30 Andrew Cagney <cagney@redhat.com>
1111
1112 * infcall.c (call_function_by_hand): Always call
1113 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
1114
85b32d22
RH
11152003-05-30 Richard Henderson <rth@redhat.com>
1116
c89b70f1
AC
1117 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
1118 increment.
85b32d22 1119
bfe51b1e
JB
11202003-05-29 Jim Blandy <jimb@redhat.com>
1121
1122 Use gdbarch methods for solib stuff on PowerPC Linux.
1123 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
1124 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
1125 show through.
1126 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1127 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
1128 giving the same effect as the #definitions above.
1129
1abf022c
AF
11302003-05-29 Adam Fedor <fedor@gnu.org>
1131
1132 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
1133 (find_implementation_from_class): Replace it with the standard
1134 case i.e. do nothing.
1135
d2427a71
RH
11362003-05-29 Richard Henderson <rth@redhat.com>
1137
1138 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
1139 (alpha_linux_sigtramp_offset): Use it. Make static.
1140 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
1141 update for new frame model.
1142 * alpha-mdebug-tdep.c: New file.
1143 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
1144 (alpha_osf1_init_abi): Install it.
1145 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
1146 (linked_proc_desc_table): Remove.
1147 (alpha_frame_past_sigtramp_frame): Remove.
1148 (alpha_dynamic_sigtramp_offset): Remove.
1149 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
1150 (alpha_proc_desc_is_dyn_sigtramp): Remove.
1151 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
1152 (push_sigtramp_desc): Remove.
1153 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
1154 (alpha_cannot_store_register): Likewise.
1155 (alpha_sigcontext_addr): Remove.
1156 (alpha_find_saved_regs): Remove.
1157 (alpha_frame_init_saved_regs): Remove.
1158 (alpha_init_frame_pc_first): Remove.
1159 (read_next_frame_reg): Remove.
1160 (alpha_frame_saved_pc): Remove.
1161 (alpha_saved_pc_after_call): Remove.
1162 (temp_proc_desc, temp_saved_regs): Remove.
1163 (alpha_about_to_return): Remove.
1164 (cached_proc_desc): Remove.
1165 (alpha_frame_chain): Remove.
1166 (alpha_print_extra_frame_info): Remove.
1167 (alpha_init_extra_frame_info): Remove.
1168 (alpha_frame_locals_address): Remove.
1169 (alpha_frame_args_address): Remove.
1170 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
1171 (alpha_push_dummy_frame): Remove.
1172 (alpha_pop_frame): Remove.
1173 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
1174 (alpha_read_insn): New.
1175 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
1176 for different insn encodings.
1177 (alpha_in_lenient_prologue): Remove.
1178 (struct alpha_sigtramp_unwind_cache): New.
1179 (alpha_sigtramp_frame_unwind_cache): New.
1180 (alpha_sigtramp_register_address): New.
1181 (alpha_sigtramp_frame_this_id): New.
1182 (alpha_sigtramp_frame_prev_register): New.
1183 (alpha_sigtramp_frame_unwind): New.
1184 (alpha_sigtramp_frame_p): New.
1185 (struct alpha_heuristic_unwind_cache): New.
1186 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
1187 don't count nop insns that occur between functions.
1188 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
1189 heuristic_proc_desc, but without the mdebug wrapping.
1190 (alpha_heuristic_frame_this_id): New.
1191 (alpha_heuristic_frame_prev_register): New.
1192 (alpha_heuristic_frame_unwind): New.
1193 (alpha_heuristic_frame_p): New.
1194 (alpha_heuristic_frame_base_address): New.
1195 (alpha_heuristic_frame_base): New.
1196 (alpha_unwind_dummy_id): New.
1197 (alpha_unwind_pc): New.
1198 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
1199 frame related deprecated initializations; install replacements.
1200 (alpha_dump_tdep): Remove.
1201 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
1202 (alpha_read_insn, alpha_after_prologue,
1203 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
1204 alpha_heuristic_frame_prev_register,
1205 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
1206 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
1207 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
1208 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
1209
93ec1121
AC
12102003-05-29 Andrew Cagney <cagney@redhat.com>
1211
1212 * gdb_assert.h (gdb_assert_fail): Provide different definitions
1213 dependant on the availability of ASSERT_FUNCTION.
1214 (ASSERT_FUNCTION): Do not define when there is no function name.
1215
98f08d3d
KB
12162003-05-29 Kevin Buettner <kevinb@redhat.com>
1217
1218 From Jimi X <jimix@watson.ibm.com>:
1219 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
1220
0897f59b
JB
12212003-05-28 Jim Blandy <jimb@redhat.com>
1222
1223 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
1224 argument to ptrace to int; the system headers should give it the
1225 right type, and pointers don't fit in ints on powerpc64-*-*.
1226
14898363
L
12272003-05-28 H.J. Lu <hongjiu.lu@intel.com>
1228
1229 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
1230 DW_TAG_catch_block.
1231
a7a48797
EZ
12322003-05-26 Elena Zannoni <ezannoni@redhat.com>
1233
1234 * stabsread.c (dbx_lookup_type): Make static.
1235 (read_type): Ditto.
1236 (add_undefined_type): Ditto.
1237 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
1238 not export.
1239
f5479e9c
EZ
12402003-05-26 Elena Zannoni <ezannoni@redhat.com>
1241
1242 * hpread.c (hpread_has_name): Make static.
1243 (hpread_psymtab_to_symtab): Ditto.
1244 (file_exists): Ditto.
1245 (hpread_call_pxdb): Ditto.
1246 (hpread_pxdb_needed): Ditto.
1247 (hpread_quick_traverse): Ditto.
1248 (hpread_get_header): Ditto.
1249 (hpread_get_lntt): Ditto.
1250 (hpread_get_slt): Ditto.
1251 (class_of): Ditto.
1252
eb2e12d7
AS
12532003-05-25 Andreas Schwab <schwab@suse.de>
1254
78bf922a
AS
1255 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
1256 stack_align and deprecated_extra_stack_alignment_needed.
1257 (m68k_stack_align): Delete.
1258
eb2e12d7
AS
1259 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
1260 (m68k_register_virtual_size): Likewise.
1261 (altos_skip_prologue): Remove obsolete function.
1262 (isi_frame_num_args): Likewise.
1263 (news_frame_num_args): Likewise.
1264 (m68k_fix_call_dummy): Make static.
1265 (m68k_push_dummy_frame): Likewise.
1266 (m68k_pop_frame): Likewise.
1267 (m68k_skip_prologue): Likewise.
1268 (m68k_frame_init_saved_regs): Likewise.
1269 (m68k_saved_pc_after_call): Likewise.
1270 (m68k_get_longjmp_target): Make multi-arch.
1271 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
1272 structure. Register m68k_get_longjmp_target if enabled.
1273 * m68k-tdep.h (struct gdbarch_tdep): Define.
1274 * config/m68k/tm-m68k.h: Don't include "regcache.h".
1275
1276 * Makefile.in (config.status): Also depend on configure.tgt
1277 and configure.host.
1278 (m68klinux-tdep.o): Update dependencies.
1279 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
1280 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
1281 (M68K_LINUX_JB_PC): Define.
1282 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
1283 and take additional parameter.
1284 (m68k_linux_sigtramp_saved_pc): Update.
1285 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
1286 m68k_linux_pc_in_sigtramp, in_plt_section,
1287 find_solib_trampoline_target.
1288 * config/m68k/tm-linux.h: Don't include any tm headers.
1289 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
1290 (JB_ELEMENT_SIZE): Likewise.
1291 (JB_PC): Likewise.
1292 (GET_LONGJMP_TARGET): Likewise.
1293 (IN_SIGTRAMP): Likewise.
1294 (SVR4_SHARED_LIBS): Define this and include "solib.h".
1295
eb2c22dc
MK
12962003-05-25 Mark Kettenis <kettenis@gnu.org>
1297
1298 * sparc-tdep.c (sparc32_do_push_arguments): New function.
1299 (sparc32_push_arguments): Re-implement by calling
1300 sparc32_do_push_arguments.
1301
44b7b84e
MK
13022003-05-25 Mark Kettenis <kettenis@gnu.org>
1303
1304 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
1305 SPARC_O1_REGNUM): New defines.
1306 (sparc32_extract_return_value): Rewrite to operate on a regcache.
1307 (sparc32_store_return_value): New function.
1308 (sparc_extract_struct_value_address): Rewrite to operate on a
1309 regcache.
1310 (sparc_gdbarch_init): Don't set
1311 deprecated_extract_struct_value_address. Set
1312 extract_struct_value_address instead. Don't set
1313 deprecated_extract_return_value and deprecated_store_return_value
1314 for 32-bit targets. Set extract_return_value and
1315 store_return_value instead.
1316 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
1317 DEPRECTAED_EXTRACT_RETURN_VALUE,
1318 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
1319 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1320 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
1321 (sparc_store_return_value): Remove prototype.
1322 (sparc32_store_return_value): New prototype.
1323 (sparc32_extract_return_value, sparc_extract_struct_value_address):
1324 Adjust prototypes.
1325
f6ad61e3
MK
13262003-05-24 Mark Kettenis <kettenis@gnu.org>
1327
1328 * sparcnbsd-tdep.c: Include "gdb_string.h".
1329
b276f1bb
AC
13302003-05-23 Andrew Cagney <cagney@redhat.com>
1331
1332 * p-valprint.c (pascal_val_print): Replace extract_address with
1333 the inline equivalent extract_unsigned_integer.
1334 * jv-valprint.c (java_value_print): Ditto.
1335 * ada-valprint.c (ada_val_print_1): Ditto.
1336 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
1337
e76c5fcc
TR
13382003-05-23 Theodore A. Roth <troth@openavr.org>
1339
1340 * blockframe.c (frameless_look_for_prologue): Remove unused
1341 after_prologue variable.
1342
2cdd89cb
MK
13432003-05-23 Mark Kettenis <kettenis@gnu.org>
1344
1345 * blockframe.c (get_pc_function_start): Rewrite to avoid
1346 asignments in if-statements.
1347
182d43bc
EZ
13482003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
1349
1350 Committed by Elena Zannoni <ezannoni@redhat.com>.
1351 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
1352 files, don't relocate absolute symbols (and do use mst_abs).
1353
e8f3fcdd
AC
13542003-05-23 Andrew Cagney <cagney@redhat.com>
1355
1356 * objc-lang.c: Include "gdb_assert.h".
1357 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
1358 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
1359 (gdb_check, gdb_check_fatal): Delete functions.
1360 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
1361 gdb_assert.
1362 (parse_selector, parse_method, find_methods, find_imps): Ditto.
1363 * Makefile.in (objc-lang.o): Update dependencies.
1364
3c23e6fb
ILT
13652003-05-22 Ian Lance Taylor <ian@airs.com>
1366
1367 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
1368 with fprintf_filtered, not fprintf_unfiltered.
1369
af1342ab
AC
13702003-05-22 Andrew Cagney <cagney@redhat.com>
1371
1372 * stack.c (frame_info): Inline extract_address, replacing it with
1373 extract_unsigned_integer.
1374 * findvar.c (unsigned_pointer_to_address): Ditto.
1375 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
1376 * dwarf2expr.c (dwarf2_read_address): Ditto.
1377 * frame.c (frame_pc_unwind): Update comment.
1378 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
1379
47e242ec
JJ
13802003-05-22 Jeff Johnston <jjohnstn@redhat.com>
1381
1382 * infptrace.c (detach): Call print_sys_errmsg rather than
1383 perror_with_name to issue warning message when errno is non-zero
1384 after calling ptrace detach.
1385
e2ac8128
JB
13862003-05-21 J. Brobecker <brobecker@gnat.com>
1387
1388 * config/pa/tm-hppa.h: Delete some unused macros. Move some
1389 macro definitions from here...
1390 * hppa-tdep.c: ...to there.
1391
92b3541e
KB
13922003-05-20 Kevin Buettner <kevinb@redhat.com>
1393
1394 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
1395 register_ptrace_addr(). Fix all callers.
1396
55809acb
AS
13972003-05-21 Andreas Schwab <schwab@suse.de>
1398
1399 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1400 dependencies.
1401 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
1402 end.
1403 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
1404 (_initialize_m68k_linux_tdep): New function.
1405 (m68k_linux_frame_saved_pc): Make static.
1406 (m68k_linux_extract_return_value): Likewise.
1407 (m68k_linux_store_return_value): Likewise.
1408 (m68k_linux_extract_struct_value_address): Likewise.
1409 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
1410 Remove.
1411 (DEPRECATED_STORE_RETURN_VALUE): Remove.
1412 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1413 (DEPRECATED_FRAME_SAVED_PC): Remove.
1414
0fbc10f7
KW
14152003-05-20 Kris Warkentin <kewarken@qnx.com>
1416
1417 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
1418 regset numbering rather than our own.
1419
58da2eb2
DC
14202003-05-19 David Carlton <carlton@bactrian.org>
1421
1422 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
1423
1fcb5155
DC
14242003-05-19 David Carlton <carlton@bactrian.org>
1425
1426 Partial fix for PR c++/827.
1427 * cp-support.h: Include symtab.h.
1428 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
1429 * cp-namespace.c: Update contributors.
1430 (cp_lookup_symbol_nonlocal): New.
1431 (lookup_namespace_scope, cp_lookup_symbol_namespace)
1432 (lookup_symbol_file): Ditto.
1433 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
1434 * block.h: Declare block_scope, block_using, block_global_block.
1435 * block.c (block_scope): New.
1436 (block_using, block_global_block): Ditto.
1437 * Makefile.in (cp_support_h): Depend on symtab_h.
1438 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
1439
5f9a71c3
DC
14402003-05-19 David Carlton <carlton@bactrian.org>
1441
1442 * language.h (struct language_defn): Add 'la_value_of_this'
1443 and 'la_lookup_symbol_nonlocal' members.
1444 * symtab.h: Declare basic_lookup_symbol_nonlocal,
1445 lookup_symbol_static, lookup_symbol_global,
1446 lookup_symbol_aux_block.
1447 * symtab.c (lookup_symbol_aux): Call language hooks to determine
1448 if we should search fields of this and how to do static/global
1449 lookup.
1450 (lookup_symbol_aux_block): Make extern.
1451 (basic_lookup_symbol_nonlocal): New.
1452 (lookup_symbol_static, lookup_symbol_global): Ditto.
1453 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
1454 'la_lookup_symbol_nonlocal' members.
1455 * c-lang.c (c_language_defn, cplus_language_defn)
1456 (asm_language_defn, minimal_language_defn): Ditto.
1457 * jv-lang.c (java_language_defn): Ditto.
1458 * language.c (unknown_language_defn, auto_language_defn)
1459 (local_language_defn): Ditto.
1460 * m2-lang.c (m2_language_defn): Ditto.
1461 * objc-lang.c (objc_language_defn): Ditto.
1462 * scm-lang.c (scm_language_defn): Ditto.
1463 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
1464 * p-lang.c (pascal_language_defn): Ditto for both.
1465 * Makefile.in (f-lang.o): Depend on value_h.
1466 (p-lang.o): Ditto.
1467
89a9d1b1
DC
14682003-05-19 David Carlton <carlton@bactrian.org>
1469
1470 * block.h: Declare block_static_block.
1471 * block.c (block_static_block): New.
1472 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
1473 lookup_symbol_aux_local, calling block_static_block instead.
1474 (lookup_symbol_aux_local): Delete 'static_block' argument.
1475
eed3f8ab
DC
14762003-05-19 David Carlton <carlton@bactrian.org>
1477
1478 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
1479
a09d8bda
ML
14802003-05-19 Michal Ludvig <mludvig@suse.cz>
1481
1482 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
1483 register numbers mapping.
1484
69636828
AF
14852003-05-18 Adam Fedor <fedor@gnu.org>
1486
1487 * symtab.c (completion_list_objc_symbol): New function.
1488 (make_symbol_completion_list): Use it to add ObjC symbols
1489 when looking though the list.
1490 (language_search_unquoted_string): New function.
1491 (make_file_symbol_completion_list): Use it.
1492
55baeb84
AS
14932003-05-18 Andreas Schwab <schwab@suse.de>
1494
d0b45d99
AS
1495 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
1496 dependencies.
1497 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
1498 as m68k_linux_extract_return_value.
1499 (DEPRECATED_STORE_RETURN_VALUE): Define as
1500 m68k_linux_store_return_value.
1501 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1502 m68k_linux_extract_struct_value_address.
1503 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
1504 get_next_frame, get_frame_base, get_frame_pc.
1505 (m68k_linux_frame_saved_pc): Use get_frame_base.
1506 (m68k_linux_extract_return_value): New function.
1507 (m68k_linux_store_return_value): New function.
1508 (m68k_linux_extract_struct_value_address): New function.
1509 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
1510
55baeb84
AS
1511 * c-exp.y (typebase): Remove duplicate occurence of
1512 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
1513 of lookup_signed_typename.
1514
b6b08ebf
MK
15152003-05-18 Mark Kettenis <kettenis@gnu.org>
1516
1517 * dwarf2loc.c (find_location_expression): Change type of second
1518 argument to `size_t *'.
1519 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
1520 for size variable.
1521
5ad1c190
DC
15222003-05-18 David Carlton <carlton@bactrian.org>
1523
1524 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
1525 'linkage_name'. Add comment.
1526 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
1527 'linkage_name'.
1528 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1529 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
1530 (lookup_block_symbol): Ditto.
1531
b8b527c5
AC
15322003-05-16 Andrew Cagney <cagney@redhat.com>
1533
1534 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
1535 * gdbarch.h, gdbarch.c: Re-generate.
1536 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
1537 * TODO (REGISTER_BYTES): Delete reference.
1538 * alpha-tdep.c (alpha_gdbarch_init): Update.
1539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1540 * x86-64-tdep.c (x86_64_init_abi): Update.
1541 * vax-tdep.c (vax_gdbarch_init): Update.
1542 * v850-tdep.c (v850_gdbarch_init): Update.
1543 * sparc-tdep.c (sparc_gdbarch_init): Update.
1544 * sh-tdep.c (sh_gdbarch_init): Update.
1545 * s390-tdep.c (s390_gdbarch_init): Update.
1546 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1547 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1548 (ns32k_gdbarch_init_32382): Update.
1549 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1550 * mcore-tdep.c (mcore_gdbarch_init): Update.
1551 * m68k-tdep.c (m68k_gdbarch_init): Update.
1552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1553 * ia64-tdep.c (ia64_gdbarch_init): Update.
1554 * i386-tdep.c (i386_gdbarch_init): Update.
1555 * i386-linux-tdep.c (i386_linux_init_abi): Update.
1556 * hppa-tdep.c (hppa_gdbarch_init): Update.
1557 * h8300-tdep.c (h8300_gdbarch_init): Update.
1558 * frv-tdep.c (frv_gdbarch_init): Update.
1559 * cris-tdep.c (cris_gdbarch_init): Update.
1560 * avr-tdep.c (avr_gdbarch_init): Update.
1561 * arm-tdep.c (arm_gdbarch_init): Update.
1562 * sparc-tdep.c (sparc_pop_frame): Update.
1563 * rs6000-tdep.c (rs6000_pop_frame): Update.
1564 * remote.c (init_remote_state): Update.
1565 (remote_prepare_to_store): Update.
1566 * remote-vx.c (vx_prepare_to_store): Update.
1567 * remote-sds.c (sds_fetch_registers): Update.
1568 (sds_prepare_to_store): Update.
1569 * remote-array.c: Update.
1570 * regcache.c (init_legacy_regcache_descr): Update.
1571 (init_regcache_descr): Update.
1572 * mips-tdep.c (mips_eabi_extract_return_value): Update.
1573 (mips_o64_extract_return_value): Update.
1574 * irix5-nat.c (fetch_core_registers): Update.
1575 * irix4-nat.c (fetch_core_registers): Update.
1576 * i386-tdep.h: Update.
1577 * hppa-tdep.c (pa_do_registers_info): Update.
1578 (pa_do_strcat_registers_info): Update.
1579 * cris-tdep.c (cris_register_bytes_ok): Update.
1580 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1581 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
1582 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
1583 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
1584 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
1585 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
1586 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
1587 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
1588 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
1589 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
1590 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
1591 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
1592 (REGISTER_BYTES_OK): Update.
1593 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
1594 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
1595
ee2842e2
ILT
15962003-05-16 Ian Lance Taylor <ian@airs.com>
1597
1598 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
1599 (vax_print_insn, print_insn_arg): Remove static functions.
1600 (vax_gdbarch_init): Call set_gdbarch_print_insn with
1601 print_insn_vax from opcodes library.
1602 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
1603
973177d3
AC
16042003-05-15 Andrew Cagney <cagney@redhat.com>
1605
aaab4dba
AC
1606 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
1607 * target.h (memory_breakpoint_from_pc): Delete declaration.
1608 * mem-break.c (memory_breakpoint_from_pc): Delete function.
1609 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
1610 * monitor.c (monitor_insert_breakpoint): Use
1611 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
1612 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
1613 * gdbarch.h, gdbarch.c: Re-generate.
1614 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
1615 (sparc_gdbarch_init): Set breakpoint_from_pc to
1616 sparc_breakpoint_from_pc.
1617 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
1618 (BREAKPOINT_FROM_PC): Define.
1619 (sparc_breakpoint_from_pc): Declare.
1620 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
1621 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
1622 (BREAKPOINT_FROM_PC): Define.
1623 (BREAKPOINT): Delete macro.
1624 * target.h: Update comment.
1625 * s390-tdep.c (s390_gdbarch_init): Update comments.
1626 * remote.c: Update comments.
1627 * remote-mips.c: Update comments.
1628 * proc-api.c (write_with_trace): Do not check for a breakpoint.
1629 * mem-break.c: Update comment.
1630 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
1631 (ia64_memory_insert_breakpoint): Update.
1632 * config/sparc/tm-sparc.h: Update comment.
1633 * config/pa/tm-hppa64.h: Update comment.
1634 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
1635 (rs6000_breakpoint_from_pc): Update.
1636 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
1637 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
1638 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
1639 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
1640 (mips_breakpoint_from_pc): Update.
1641 (mips_dump_tdep): Update.
1642
e06963ff
AC
1643 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
1644 * minsyms.c (lookup_minimal_symbol): Inline
1645 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
1646
973177d3
AC
1647 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
1648 * p-valprint.c (pascal_object_print_value_fields): Ditto.
1649 * p-lang.c (pascal_printstr): Ditto.
1650 * objc-lang.c (objc_printstr): Ditto.
1651 * m2-lang.c (m2_printstr): Ditto.
1652 * jv-valprint.c (java_print_value_fields): Ditto.
1653 * f-lang.c (f_printstr): Ditto.
1654 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
1655 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
1656 for repeat_count_threshold.
1657 * Makefile.in (cp-valprint.o): Update dependencies.
1658
5ea2bd7f
JJ
16592003-05-15 Jeff Johnston <jjohnstn@redhat.com>
1660
1661 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
1662 (examine_prologue): Support looking through leaf functions, knowing
1663 they start with mov r2,r12. Support skipping over indirect stores
1664 of the input registers. Upon hitting a non-nop branch instruction
1665 or predicated instruction, bail out by setting lim_pc to the current
1666 pc value in the loop. At the end, if the lim_pc value is still
1667 beyond our calculated value and we have trust_limit set,
1668 use the lim_pc value.
1669
cc8c88f3
AC
16702003-05-15 Andrew Cagney <cagney@redhat.com>
1671
1672 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
1673 generic_find_dummy_frame.
1674 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
1675 (deprecated_generic_find_dummy_frame): Update.
1676 (deprecated_read_register_dummy): Update.
1677 * frame.c (deprecated_generic_get_saved_register): Update.
1678
909cd28e
TR
16792003-05-15 Theodore A. Roth <troth@openavr.org>
1680
1681 * avr-tdep.c (avr_breakpoint_from_pc): New function.
1682 (avr_gdbarch_init): Set breakpoint_from_pc method.
1683
b923b08d
AC
16842003-05-15 Andrew Cagney <cagney@redhat.com>
1685
1686 * regcache.c (build_regcache): Set deprecated_register_valid
1687 directly.
1688 (deprecated_grub_regcache_for_register_valid): Delete function.
1689 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
1690 declaration.
1691
ae2f03ac
EZ
16922003-05-15 David Carlton <carlton@bactrian.org>
1693
1694 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
1695 * symtab.c (lookup_symbol_aux): Delete calls to
1696 lookup_symbol_aux_minsyms.
1697 (lookup_symbol_aux_minsyms): Comment out function and
1698 prototype. Delete lookup by mangled name.
ae2f03ac 1699
18ec9831
KB
17002003-05-14 Kevin Buettner <kevinb@redhat.com>
1701
1702 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
1703 correctly indicate an empty stack and ``stack_allocated'' to the
1704 indicate the number of elements initially allocated.
1705 (dwarf_expr_grow_stack): Simplify method for computing new
1706 stack size. Don't loop infinitely if ``stack_len'' is zero.
1707 (execute_stack_op): Move ``ctx->in_reg'' initialization
1708 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
1709 be used in conjuction with DW_OP_piece. Revise error message
1710 accordingly.
1711
de18ac1f
TR
17122003-05-14 Theodore A. Roth <troth@openavr.org>
1713
1714 * MAINTAINERS: Update my email address.
1715 * avr-tdep.c: Ditto.
1716
176620f1
EZ
17172003-05-14 Elena Zannoni <ezannoni@redhat.com>
1718
1719 * symtab.h (enum domain_enum): Rename from namespace_enum.
1720 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
1721 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
1722 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
1723 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
1724 TYPES_NAMESPACE, METHODS_NAMESPACE.
1725 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
1726 (struct symbol, struct partial_symbol): Rename field
1727 'namespace_enum namespace' to 'domain_enum domain'.
1728 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
1729 Delete old define kludge for namespace.
1730
1731 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
1732 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
1733 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
1734 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
1735 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
1736 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
1737 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
1738 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
1739 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
1740 occurrences of the above.
1741
b7f31508
ILT
17422003-05-14 Ian Lance Taylor <ian@airs.com>
1743
1744 * Makefile.in (install-only): Use $(SHELL) when running
1745 mkinstalldirs.
1746
2fdbdd39
ILT
17472003-05-13 Ian Lance Taylor <ian@airs.com>
1748
a208d82c
ILT
1749 * MAINTAINERS (write after approval): Add myself.
1750
2fdbdd39
ILT
1751 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
1752 second and third arguments.
1753 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1754 * ser-unix.c (_initialize_ser_hardwire): Likewise.
1755
fbd9dcd3
AC
17562003-05-13 Andrew Cagney <cagney@redhat.com>
1757
1758 * defs.h (store_address): Delete declaration.
1759 findvar.c (store_address): Delete function.
1760 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
1761 store_unsigned_integer.
1762 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
1763 * v850-tdep.c (v850_push_arguments): Ditto.
1764 * sparc-tdep.c (sparc_get_saved_register): Ditto.
1765 * sh-tdep.c (sh64_get_saved_register): Ditto.
1766 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
1767 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
1768 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
1769 (mips_get_saved_register): Ditto.
1770 * ia64-tdep.c (ia64_get_saved_register): Ditto.
1771 (find_func_descr, ia64_push_arguments): Ditto.
1772 * i386-tdep.c (i386_push_arguments): Ditto.
1773 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1774 * frv-tdep.c (frv_push_arguments): Ditto.
1775 * frame.c (legacy_saved_regs_prev_register): Ditto.
1776 (deprecated_generic_get_saved_register): Ditto.
1777 * findvar.c (unsigned_address_to_pointer): Ditto.
1778 * dwarf2read.c (dwarf2_const_value): Ditto.
1779 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
1780 * alpha-tdep.c (alpha_push_arguments): Ditto.
1781
6760f9e6
JB
17822003-05-12 J. Brobecker <brobecker@gnat.com>
1783
1784 * NEWS: Mention that the hppa-hpux port has been partially
1785 multiarched (32bit ABIT only, so far).
1786
30e221b4
AC
17872003-05-11 Andrew Cagney <cagney@redhat.com>
1788
1789 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
1790 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
1791 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
1792 sim/testsuite/sim/arm/misaligned2.ms, and
1793 sim/testsuite/sim/arm/misaligned3.ms.
1794 * disasm.h (struct ui_file): Add opaque struct declaration.
1795 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
1796 * frame.h (struct ui_file): Ditto.
1797
dea7f9ba
MK
17982003-05-11 Mark Kettenis <kettenis@gnu.org>
1799
1800 * value.h: Pretty print.
1801
01986c48
MK
18022003-05-10 Mark Kettenis <kettenis@gnu.org>
1803
1804 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
1805
123a958e
AC
18062003-05-08 Andrew Cagney <cagney@redhat.com>
1807
1808 * regcache.h (max_register_size): Delete declaration.
1809 * regcache.c (max_register_size): Delete function.
1810 (struct regcache_descr): Delete field "max_register_size".
1811 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
1812 registers fit in MAX_REGISTER_SIZE.
1813 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
1814 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
1815 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
1816 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
1817 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
1818 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
1819 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
1820 * dve3900-rom.c, hppa-tdep.c: Ditto.
1821
eb294659
DC
18222003-05-08 David Carlton <carlton@math.stanford.edu>
1823
1824 * valops.c (push_word): Fix typo.
1825
d9d9c31f
AC
18262003-05-08 Andrew Cagney <cagney@redhat.com>
1827
1828 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
1829 * gdbarch.h: Re-generate.
1830 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
1831 (legacy_max_register_raw_size): Delete declaration.
1832 * regcache.c (legacy_max_register_raw_size): Delete function.
1833 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
1834 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
1835 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
1836 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
1837 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
1838 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
1839 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
1840 * findvar.c, dwarf2cfi.c: Ditto.
1841
22540ece
AC
18422003-05-08 Andrew Cagney <cagney@redhat.com>
1843
1844 * mips-tdep.c (read_signed_register): New function, moved to here
1845 from "regcache.c".
1846 (read_signed_register_pid): Ditto.
1847 * regcache.c (read_signed_register_pid): Delete function, moved to
1848 "mips-tdep.c".
1849 (read_signed_register): Ditto.
1850 * regcache.h (read_signed_register): Delete declaration.
1851 (read_signed_register_pid): Delete declaration.
1852
0c92afe8
AC
18532003-05-08 Andrew Cagney <cagney@redhat.com>
1854
1855 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
1856 * gdbarch.h: Re-generate.
1857 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
1858 (legacy_max_register_virtual_size): Delete declaration.
1859 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
1860 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1861 * tracepoint.c (memrange_sortmerge): Ditto.
1862 * sparc-tdep.c (sparc_print_registers): Ditto.
1863 * regcache.c (legacy_max_register_virtual_size): Delete function.
1864
6037b830
JB
18652002-05-08 J. Brobecker <brobecker@gnat.com>
1866
1867 * fork-child.c (escape_bang_in_quoted_argument): New function.
1868 (fork_inferior): Escape '!' characters in quoted arguments
1869 only when needed.
1870
5d62c8b1
JB
18712003-05-08 J. Brobecker <brobecker@gnat.com>
1872
1873 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
1874 the language of the CU is not currently supported by GDB.
1875
20a0e81d
JB
18762003-05-08 J. Brobecker <brobecker@gnat.com>
1877
1878 * defs.h (language): Add language_minimal enum value.
1879 * c-lang.c (minimal_language_defn): New language definition.
1880 (_initialize_c_language): Add the new minimal language to the list
1881 of languages known to GDB.
1882
710ee10a
KB
18832003-05-08 Kevin Buettner <kevinb@redhat.com>
1884
1885 * frame.c (get_frame_type): Don't attempt to lazily initialize
1886 frame's unwinder for legacy frames.
1887
1750fa04
AC
18882003-05-07 Andrew Cagney <cagney@redhat.com>
1889
1890 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
1891 and "regcache" parameters.
1892 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
1893
ddf9f258
JJ
18942003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1895
1896 * dwarf2read.c (dwarf_decode_lines): Only use output of
1897 check_cu_functions() when calling record_line(). Do not update
1898 the current address.
1899
87767c29
AC
19002003-05-07 Andrew Cagney <cagney@redhat.com>
1901
1902 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
1903 code.
1904
5e7b2f39
JB
19052003-05-07 Jim Blandy <jimb@redhat.com>
1906
1907 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
1908 'maint info symtabs' and 'maint info psymtabs'.
1909 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
1910 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
1911 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
1912 Declarations updated.
1913 * maint.c (maintenance_list_command): Delete.
1914 (_initialize_maint_cmds): Update calls to add_cmd.
1915 * gdbcmd.h (maintenancelistlist): Delete declaration.
1916 * cli/cli-cmds.c (maintenancelistlist): Delete.
1917 (init_cmd_lists): Don't initialize it.
1918 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
1919
f6684c31
AC
19202003-05-07 Andrew Cagney <cagney@redhat.com>
1921
1922 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
1923 "regcache".
1924 (d10v_print_registers_info): Update.
1925 (d10v_dmap_register, d10v_imap_register): Delete functions.
1926 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
1927 and "imap_register".
1928 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
1929 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
1930 * arch-utils.c (generic_remote_translate_xfer_address): Add
1931 "regcache" and "gdbarch" parameters.
1932 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
1933 parameter. Change class to multi-arch.
1934 * gdbarch.h, gdbarch.c: Re-generate.
1935 * remote.c (remote_xfer_memory): Use
1936 gdbarch_remote_translate_xfer_address.
1937
e4846b08
JJ
19382003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1939
1940 * infrun.c (prev_pc): Move declaration ahead of proceed().
1941 (proceed): Refresh prev_pc value before resuming.
1942 (stop_stepping): Remove code to refresh prev_pc.
1943
6b71b8ac
KW
19442003-05-06 Kris Warkentin <kewarken@qnx.com>
1945
1946 * nto-tdep.c: Removed stray comment.
1947
47979a4b
KW
19482003-05-06 Kris Warkentin <kewarken@qnx.com>
1949
1950 * i386-nto-tdep.c: Fix old K&R function definitions.
1951 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
1952 Also change add_show_from_set() call to add_setshow_cmd().
1953 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
1954
00905d52
AC
19552003-05-05 Andrew Cagney <cagney@redhat.com>
1956
1957 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
1958 (fprint_dummy_frames): New function.
1959 (maintenance_print_dummy_frames): New function.
1960 (_initialize_dummy_frame): Add command "maint print dummy-frames".
1961 * frame.c (fprint_frame_id): Make global.
1962 * frame.h (fprint_frame_id): Declare.
1963 * Makefile.in (dummy-frame.o): Update dependencies.
1964
b1e29e33
AC
19652003-05-05 Andrew Cagney <cagney@redhat.com>
1966
1967 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
1968 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
1969 SIZEOF_CALL_DUMMY_WORDS.
1970 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
1971 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
1972 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
1973 CALL_DUMMY_BREAKPOINT_OFFSET.
1974 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
1975 CALL_DUMMY_START_OFFSET.
1976 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
1977 * gdbarch.h, gdbarch.c: Re-generate.
1978 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
1979 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
1980 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
1981 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
1982 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
1983 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
1984 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1985 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
1986 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
1987 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
1988 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
1989 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
1990 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
1991 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
1992 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
1993
19942003-05-05 Kris Warkentin <kewarken@qnx.com>
1995
1996 * configure.tgt: Add i[3456]86-*-nto*.
1997 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
1998 * nto-tdep.c: New file. Neutrino target support routines.
1999 * nto-tdep.h: New file. Neutrino target header.
2000 * config/tm-qnxnto.h: New file.
2001 * config/i386/i386nto.mt: New file.
2002 * config/i386/tm-i386nto.h: New file.
b1e29e33 2003
0ce3d317
AC
20042003-05-04 Andrew Cagney <cagney@redhat.com>
2005
2006 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
2007 (load_infrun_state): Ditto.
2008 (struct thread_info): Drop "prev_func_name" field.
2009 * thread.c (load_infrun_state): Update.
2010 (save_infrun_state): Update.
2011 * infrun.c (prev_func_name): Delete variable.
2012 (init_wait_for_inferior): Do not clear prev_func_name.
2013 (stop_stepping, keep_going, context_switch): Do not swap
2014 prev_func_name.
2015 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
2016 instead of PC_IN_SIGTRAMP.
2017
46654a5b
AC
20182003-05-04 Andrew Cagney <cagney@redhat.com>
2019
2020 * sentinel-frame.c (sentinel_frame_prev_register): Replace
2021 REGISTER_BYTE with register_offset_hack.
2022 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
2023 that REGISTER_BYTE is consistent with the regcache.
2024 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
2025 * gdbarch.h, gdbarch.c: Regenerate.
2026
14b08c1b
MK
20272003-05-04 Mark Kettenis <kettenis@gnu.org>
2028
04c8243f
MK
2029 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
2030 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
2031
14b08c1b
MK
2032 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
2033
c7a11e01
JB
20342003-05-03 J. Brobecker <brobecker@gnat.com>
2035
2036 From Thierry Schneider <tpschneider1@yahoo.com>
2037 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
2038 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
2039 (mi-cmd-symbol.o): Add rule.
2040
7043d8dc
AC
20412003-05-03 Andrew Cagney <cagney@redhat.com>
2042
2043 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
2044 comments noteing that it replaces the old FIX_CALL_DUMMY code.
2045 * gdbarch.h, gdbarch.c: Re-generate.
2046 * d10v-tdep.c (d10v_push_dummy_code): New function.
2047 (d10v_gdbarch_init): Set push_dummy_code.
2048 * infcall.c (legacy_push_dummy_code): New function.
2049 (generic_push_dummy_code): New function.
2050 (push_dummy_code): New function.
2051 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
2052 instead of dummy_addr, to push_dummy_call. Move call to
2053 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
2054 switch.
2055 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
2056
92bf2b80
AC
20572003-05-03 Andrew Cagney <cagney@redhat.com>
2058
2059 * disasm.h (print_insn): Declare.
2060 * disasm.c (init_gdb_disassemble_info): New function.
2061 (gdb_disassembly): Call init_gdb_disassemble_info.
2062 (gdb_print_insn): New function.
2063 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
2064 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
2065 * mcore-tdep.c: Include "disasm.h"
2066 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
2067 * d10v-tdep.c: Include "disasm.h".
2068 (display_trace): Call gdb_print_insn, instead of print_insn.
2069 (print_insn): Delete function.
2070 * printcmd.c: Include "disasm.h".
2071 (print_insn): Delete function.
2072 (print_formatted): Call gdb_print_insn, instead of print_insn.
2073 * Makefile.in (printcmd.o): Update dependencies.
2074 (mcore-tdep.o, d10v-tdep.o): Ditto.
2075
27d94c49
AC
20762003-05-02 Andrew Cagney <cagney@redhat.com>
2077
82de1e5b
AC
2078 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
2079 PC_REGNUM, re-indent.
2080 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
2081 PC_REGNUM isn't set.
2082
27d94c49
AC
2083 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
2084 * gdbarch.h, gdbarch.c: Re-generate.
2085 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
2086 register_virtual_size, pc_regnum, or register_bytes.
2087 (D10V_PC_REGNUM): Rename _PC_REGNUM.
2088 (d10v_register_type): Use D10V_PC_REGNUM.
2089 (d10v_print_registers_info, d10v_read_pc): Ditto.
2090 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
2091 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
2092
a9c0dc7f
DC
20932003-05-02 David Carlton <carlton@bactrian.org>
2094
2095 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
2096 the name with mstrsave.
2097
e33d66ec
EZ
20982003-05-02 Elena Zannoni <ezannoni@redhat.com>
2099
2100 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
2101 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
2102 (host_charset_name, target_charset_name): New vars for use by
2103 set/show commands.
2104 (host_charset_enum, target_charset_enum): New enums for set/show
2105 commands.
2106 (set_charset_sfunc, set_host_charset_sfunc,
2107 set_target_charset_sfunc): New functions.
2108 (set_host_charset, set_target_charset): Make static.
2109 (list_charsets, set_host_charset_command,
2110 set_target_charset_command): Delete functions.
2111 (show_charset_command): Rewrite as....
2112 (show_charset): Hook this up with the set/show command mechanism.
2113 (_initialize_charset): Change names of charsets to match the
2114 set/show enums. Use host_charset_name and target_charset_name.
2115 Use set/show mechanism for charset, host-charset, target-charset
2116 commands. Do not make 'show host-charset' and 'show
2117 target-charset' be aliases of 'show charset'.
2118
2119 * charset.h (set_host_charset, set_target_charset): Don't export,
2120 they are not used outside the file.
2121
2b6fd0d8
AC
21222003-05-01 Andrew Cagney <cagney@redhat.com>
2123
2124 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
2125 (gdb_disassembly): Make "di" non static, always initialize and
2126 cleanup. Always use dis_asm_read_memory.
2127 (gdb_dis_asm_read_memory): Delete function.
2128
6ae2f580
AC
21292003-05-01 Andrew Cagney <cagney@redhat.com>
2130
2131 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
2132 (d10v_gdbarch_init): Set frame_align instead of stack_align.
2133
810ecf9f
AC
21342003-04-30 Andrew Cagney <cagney@redhat.com>
2135
2136 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
2137 "tm_print_insn_info".
2138 (TARGET_PRINT_INSN_INFO): Delete macro.
2139 (dis_asm_read_memory): Delete function declaration.
2140 (dis_asm_memory_error, dis_asm_print_address): Ditto.
2141 (tm_print_insn_info): Delete variable definition.
2142 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
2143 * gdbarch.h, gdbarch.c: Re-generate.
2144 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
2145 "deprecated_tm_print_insn_info".
2146 * mcore-tdep.c (mcore_dump_insn): Ditto.
2147 * mips-tdep.c (mips_gdbarch_init): Ditto.
2148 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
2149 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
2150 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
2151 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
2152 instead of TARGET_PRINT_INSN_INFO, add comment.
2153 * s390-tdep.c (s390_get_frame_info): Instead of
2154 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
2155 (s390_check_function_end, s390_is_sigreturn): Ditto.
2156 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
2157 (dis_asm_memory_error, dis_asm_print_address): Ditto.
2158 * disasm.c: Include "gdbcore.h".
2159 (_initialize_disasm): New function, initialize
2160 "deprecated_tm_print_insn_info".
2161 (deprecated_tm_print_insn_info): New variable.
2162 (dis_asm_read_memory): Moved from "corefile.c", made static.
2163 (dis_asm_print_address, dis_asm_memory_error): Ditto.
2164 * Makefile.in (disasm.o): Update dependencies.
2165
07020390
AC
21662003-04-30 Andrew Cagney <cagney@redhat.com>
2167
2168 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
2169
a9fa03de
AF
21702003-04-29 Adam Fedor <fedor@gnu.org>
2171
2172 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
2173 * infcall.c (find_function_addr): Make non-static.
2174 * infcall.h (find_function_addr): Declare.
2175 * Makefile.in (eval.o): Update dependencies.
2176
1bae87b9
AF
21772003-04-28 Adam Fedor <fedor@gnu.org>
2178
2179 * symtab.c (symbol_find_demangled_name): Check for and demangle
2180 ObjC symbols.
2181 (symbol_init_demangled_name): Init for language_objc as well.
2182
0ba6dca9
AC
21832003-04-28 Andrew Cagney <cagney@redhat.com>
2184
2185 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
2186 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
2187 * gdbarch.h, gdbarch.c: Re-generate.
2188 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
2189 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
2190 * inferior.h (deprecated_read_fp): Rename read_fp.
2191 (generic_target_read_fp): Delete declaration.
2192 * regcache.c (generic_target_read_fp): Delete function.
2193 (deprecated_read_fp): Replace read_fp, use
2194 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
2195 * d10v-tdep.c (d10v_read_fp): Delete function.
2196 (d10v_gdbarch_init): Do not set deprecated_read_fp.
2197
2198 * sparc-tdep.c (sparc_gdbarch_init): Do not set
2199 deprecated_target_read_fp to generic_target_read_fp.
2200 * sh-tdep.c (sh_gdbarch_init): Ditto.
2201 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2203 * frv-tdep.c (frv_gdbarch_init): Ditto.
2204
2205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
2206 deprecated_fp_regnum.
2207 * x86-64-tdep.c (x86_64_init_abi): Ditto.
2208 * vax-tdep.c (vax_gdbarch_init): Ditto.
2209 * v850-tdep.c (v850_gdbarch_init): Ditto.
2210 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2211 * sh-tdep.c (sh_gdbarch_init): Ditto.
2212 * s390-tdep.c (s390_gdbarch_init): Ditto.
2213 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2214 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2215 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2216 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2218 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2219 * i386-tdep.c (i386_gdbarch_init): Ditto.
2220 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2221 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2222 * frv-tdep.c (frv_gdbarch_init): Ditto.
2223 * cris-tdep.c (cris_gdbarch_init): Ditto.
2224 * avr-tdep.c (avr_gdbarch_init): Ditto.
2225 * arm-tdep.c (arm_gdbarch_init): Ditto.
2226 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2227
2228 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
2229 * v850-tdep.c (v850_gdbarch_init): Ditto.
2230 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2231 * sh-tdep.c (sh_gdbarch_init): Ditto.
2232 * s390-tdep.c (s390_gdbarch_init): Ditto.
2233 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2234 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2235 * mips-tdep.c (mips_gdbarch_init): Ditto.
2236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2237 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2238 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2239 * frv-tdep.c (frv_gdbarch_init): Ditto.
2240 * avr-tdep.c (avr_gdbarch_init): Ditto.
2241 * arm-tdep.c (arm_gdbarch_init): Ditto.
2242
2243 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
2244 DEPRECATED_FP_REGNUM.
2245 (vax_push_dummy_frame, vax_pop_frame): Ditto.
2246 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
2247 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2248 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
2249 (sparc32_register_virtual_type): Ditto.
2250 * sh-tdep.c (sh64_frame_chain): Ditto.
2251 (sh64_get_saved_register, sh64_pop_frame): Ditto.
2252 (sh_nofp_frame_init_saved_regs): Ditto.
2253 (sh64_nofp_frame_init_saved_regs): Ditto.
2254 (sh_fp_frame_init_saved_regs): Ditto.
2255 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2256 * remote-e7000.c (fetch_regs_from_dump): Ditto.
2257 * procfs.c (procfs_fetch_registers): Ditto.
2258 (procfs_store_registers): Ditto.
2259 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
2260 (store_inferior_registers, fetch_core_registers): Ditto.
2261 (fetch_kcore_registers, clear_regs): Ditto.
2262 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
2263 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
2264 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
2265 * nlm/i386.c (do_status): Ditto.
2266 * mipsv4-nat.c (supply_gregset): Ditto.
2267 * mips-tdep.c: Ditto for comments.
2268 * mips-nat.c (fetch_inferior_registers): Ditto.
2269 (store_inferior_registers, fetch_core_registers): Ditto.
2270 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
2271 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
2272 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
2273 (i386_do_pop_frame, i386_register_type): Ditto.
2274 * hppa-tdep.c (hppa_frame_chain): Ditto.
2275 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
2276 (hppa_pop_frame, hppa_read_fp): Ditto.
2277 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
2278 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
2279 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
2280 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
2281 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
2282 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
2283 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
2284 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
2285 * blockframe.c: Ditto for comments.
2286 * arch-utils.h: Ditto for comments.
2287 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
2288 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
2289 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
2290 * alpha-tdep.h: Ditto for comments.
2291 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
2292 (alpha_cannot_store_register): Ditto.
2293 (alpha_push_dummy_frame): Ditto.
2294 * alpha-nat.c (supply_gregset): Ditto.
2295
2296 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
2297 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
2298 * config/sparc/tm-sparc.h: Update comment.
2299
2300 * hppa-tdep.c (hppa_init_extra_frame_info): Use
2301 deprecated_read_fp instead of TARGET_READ_FP.
2302 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
2303 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
2304 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2305 deprecated_read_fp instead of read_fp.
2306 * s390-tdep.c (s390_push_arguments): Ditto.
2307 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2308 * frame.h: Ditto in comments.
2309 * frame.c (legacy_get_prev_frame): Ditto.
2310 * dummy-frame.c (dummy_frame_this_id): Ditto.
2311 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2312
d7a27068
AC
23132003-04-28 Andrew Cagney <cagney@redhat.com>
2314
2315 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
2316 * gdbarch.h, gdbarch.c: Re-generate.
2317 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
2318 * vax-tdep.c (_initialize_vax_tdep): Update.
2319 * v850-tdep.c (_initialize_v850_tdep): Update.
2320 * sparc-tdep.c (_initialize_sparc_tdep): Update.
2321 * s390-tdep.c (_initialize_s390_tdep): Update.
2322 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
2323 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
2324 * mips-tdep.c (_initialize_mips_tdep): Update.
2325 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2326 * m68k-tdep.c (_initialize_m68k_tdep): Update.
2327 * ia64-tdep.c (_initialize_ia64_tdep): Update.
2328 * hppa-tdep.c (_initialize_hppa_tdep): Update.
2329 * h8300-tdep.c (_initialize_h8300_tdep): Update.
2330 * frv-tdep.c (_initialize_frv_tdep): Update.
2331 * cris-tdep.c (cris_delayed_get_disassembler): Update.
2332 (_initialize_cris_tdep): Update.
2333 * arch-utils.c (legacy_print_insn): Update.
2334 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2335
d2630e69
AF
23362003-04-26 Adam Fedor <fedor@gnu.org>
2337
2338 * linespec.c (decode_objc): New function to decode ObjC calls
2339 (decode_line_1): Check for ObjC calls (using decode_objc)
2340 * Makefile (linespec.o): Update dependencies.
2341
3086aeae
DJ
23422003-04-26 Daniel Jacobowitz <drow@mvista.com>
2343
2344 * breakpoint.h (struct breakpoint_ops): New.
2345 (struct breakpoint): Add ops member.
2346
2347 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
2348 (mention): Use new breakpoint ops member.
2349 (set_raw_breakpoint): Initialize ops field to NULL.
2350 (print_exception_catchpoint, print_one_exception_catchpoint)
2351 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
2352 (gnu_v3_exception_catchpoint_ops): New.
2353 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
2354
1fbec6c3
AF
23552003-04-25 Adam Fedor <fedor@gnu.org>
2356
2357 * Makefile.in (COMMON_OBS): Add objc-lang.o
2358
0ef21242
AC
23592003-04-25 Andrew Cagney <cagney@redhat.com>
2360
2361 * d10v-tdep.c (print_insn): Delete function.
2362 (display_trace): Use TARGET_PRINT_INSN.
2363 (_initialize_d10v_tdep): Do not set tm_print_insn.
2364 (d10v_gdbarch_init): Set print_insn.
2365
f75493ed
AC
23662003-04-25 Andrew Cagney <cagney@redhat.com>
2367
2368 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
2369 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
2370 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
2371 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
2372 (nr_dmap_regs, a0_regnum): ... new functions.
2373 (d10v_print_registers_info): Use a0_regnum, use register_size.
2374 (d10v_register_byte): Delete function.
2375 (d10v_register_raw_size): Delete function.
2376 (d10v_register_type): Use a0_regnum.
2377 (d10v_print_registers_info): Use a0_regnum.
2378 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
2379 (d10v_gdbarch_init): Do not set register_byte or
2380 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
2381 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
2382 extract_address.
2383 (trace_command): Use XCALLOC.
2384 (print_insn): Delete reference to tm_print_insn.
2385 (saved_regs_unwinder): Use store_unsigned_integer instead of
2386 store_address.
2387 * frame.h (FRAME_OBSTACK_CALLOC): Define
2388
2202b100
DC
23892003-04-25 David Carlton <carlton@bactrian.org>
2390
2391 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
2392
4e45ca2e
AF
23932003-04-24 Adam Fedor <fedor@gnu.org>
2394
2395 * objc-lang.c: Include "valprint.h"
2396 * Makefile.in (objc-lang.o): Update dependencies.
2397
93de3e7f
AF
23982003-04-24 Adam Fedor <fedor@gnu.org>
2399
2400 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
2401 architecture dependant compilation and mark as unimplemented
2402 (until they get put in the gdbarch vector).
2403
0f20eeea
DC
24042003-04-23 David Carlton <carlton@bactrian.org>
2405
2406 * cp-support.c (cp_find_first_component): Accept 'operator' in
2407 more locations.
2408
74cfe982
AC
24092003-04-23 Andrew Cagney <cagney@redhat.com>
2410
2411 * infcall.c (call_function_by_hand): Eliminate redundant
2412 indentation. Move "saved_async" and "old_cleanups" to where they
2413 are needed.
2414
52557533
AC
24152003-04-23 Andrew Cagney <cagney@redhat.com>
2416
2417 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
2418 and "buffer". Move the "name" code to where it is needed.
2419
158775de
AC
24202003-04-23 Andrew Cagney <cagney@redhat.com>
2421
2422 * infcall.c (call_function_by_hand): Move variables "start_sp",
2423 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
2424 code to ON_STACK switch branch.
2425
ebc7896c
AC
24262003-04-23 Andrew Cagney <cagney@redhat.com>
2427
2428 * infcall.c (call_function_by_hand): Make declaration of "i",
2429 "sal", "bpt" and "old_sp" more local to their use. Delete #if
2430 lint.
2431
d727590f
AC
24322003-04-23 Andrew Cagney <cagney@redhat.com>
2433
2434 * infcall.c (call_function_by_hand): Delete variable
2435 "n_method_args". Localize "param_type"'s declaration to the loop
2436 that it is used. Reinstate code assigning to said variable -
2437 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
2438 Rationalize code using "param_type".
2439
d585e13a
AC
24402003-04-22 Andrew Cagney <cagney@redhat.com>
2441
2442 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
2443 compute the breakpoint address. Only call FIX_CALL_DUMMY when
2444 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
2445 to DEPRECATED_PUSH_RETURN_ADDRESS.
2446
051caad9
KB
24472003-04-22 Kevin Buettner <kevinb@redhat.com>
2448
2449 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
2450 on the DWARF2 register number prior to fetching a register.
2451
77296879
JB
24522003-04-22 J. Brobecker <brobecker@gnat.com>
2453
2454 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
2455 Update all the tests using SOFT_FLOAT considering the fact that
2456 this macro was always set to 0.
2457 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
2458 considering the fact that this macro was always set to 0.
2459 * hppa-tdep.h (hppa_store_return_value): Likewise.
2460 (hppa_extract_return_value): Likewise.
2461
4252f1df
JB
24622003-04-22 J. Brobecker <brobecker@gnat.com>
2463
2464 * config/pa/tm-hppa.h: Remove obsolete code, was used by
2465 the hppa-pro target only.
2466
14604c6b
JB
24672003-04-21 J. Brobecker <brobecker@gnat.com>
2468
2469 Ongoing multi-arch conversion effort for HP/UX:
2470 * config/pa/tm-hppa.h: Move all macro that are no longer
2471 defined now that GDB_MULTI_ARCH is now set to 1 from here...
2472 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
2473
77eb01d1
JB
24742003-04-21 J. Brobecker <brobecker@gnat.com>
2475
2476 * config/pa/tm-hppa.h: Obsolete a section that was only used
2477 for hppa-pro.
2478
61995b3b
JB
24792003-04-21 J. Brobecker <brobecker@gnat.com>
2480
2481 Ongoing multi-arch conversion for HP/UX.
2482 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
2483 if already defined (allows hppa64 to stay non-multiarched for now).
2484 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
2485
4aa79dcc
AC
24862003-04-21 Andrew Cagney <cagney@redhat.com>
2487
2488 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
2489
0f751ff2
AC
24902003-04-21 Andrew Cagney <cagney@redhat.com>
2491
2492 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
2493 "i386_num_mmx_regs".
2494
04714b91
AC
24952003-04-21 Andrew Cagney <cagney@redhat.com>
2496
2497 * infcall.c: New file.
2498 * infcall.h: New file.
2499 * valarith.c: Include "infcall.h".
2500 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
2501 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
2502 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
2503 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
2504 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
2505 (SFILES): Add "infcall.c"
2506 (COMMON_OBS): Add "infcall.o".
2507 (infcall.o): Specify dependencies.
2508 * value.h (call_function_by_hand): Delete declaration.
2509 * inferior.h (run_stack_dummy): Delete declaration.
2510 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
2511 (run_stack_dummy): Move to "infcall.c", merged into
2512 call_function_by_hand.
2513 * valops.c (call_function_by_hand): Moved to "infcall.c".
2514 (find_function_addr, value_arg_coerce): Ditto.
2515 (unwindonsignal_p, coerce_float_to_double): Ditto.
2516 (_initialize_valops): Move "set/show coerce-float-to-double", and
2517 "set/show unwindonsignal" commands to "infcall.c".
2518 * v850-tdep.c, target.h: Update comments.
2519 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
2520 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
2521 (sh64_init_extra_frame_info): Update comments.
2522 * mn10300-tdep.c: Update comments.
2523 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
2524 * config/sparc/tm-sparc.h: Update comments.
2525 * breakpoint.h: Update comments.
2526 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
2527 * arm-tdep.c: Update comment.
2528
f9d3c2a8
MK
25292003-04-19 Mark Kettenis <kettenis@gnu.org>
2530
c40e1eab
MK
2531 * i386-tdep.c (i386_num_register_names): New variable.
2532 (i386_num_mmx_regs): Renamed from mmx_num_regs.
2533 (MM0_REGNUM): Remove redundant parentheses in define.
2534 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
2535 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
2536 i386_mxcsr_regnum_p): Remove redundant parentheses.
2537 (i386_register_name): Use i386_num_register_names.
2538
94ea66b3
MK
2539 * i386-tdep.c (i386_extract_return_value,
2540 i386_store_return_value): Correct check for availability of
2541 floating-point registers.
2542
54299a1d
MK
2543 * i386-tdep.c (i386_frame_num_args): Remove function.
2544 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
2545
c86c27af
MK
2546 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
2547 mmx_regnum_to_fp_regnum. Adjust all callers.
2548
f9d3c2a8
MK
2549 * i386-tdep.c (i386_get_longjmp_target): Use
2550 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
2551 and TARGET_CHAR_BIT. Use extract_typed_address instead of
2552 extract_address.
2553
94ba74a9
MK
25542003-04-19 Mark Kettenis <kettenis@gnu.org>
2555
2556 * core-regset.c: Update comments to reflect reality. Re-order
2557 includes.
2558 (fetch_core_registers): Use switch instead of if. Remove
2559 redundant prototype.
2560
4074e13c
JB
25612003-04-18 Jim Blandy <jimb@redhat.com>
2562
2563 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 2564 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 2565
e3ab4aba
RH
25662003-04-17 Richard Henderson <rth@redhat.com>
2567
2568 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
2569
627bf7c1
EZ
25702003-04-17 Michael Snyder <msnyder@redhat.com>
2571 Karen Bennet <bennet@redhat.com>
2572
2573 Committed by Elena Zannoni <ezannoni@redhat.com>
2574 * gdb_gcore.sh: New script to create a core dump of a process.
2575
514621a9
EZ
25762003-04-17 Elena Zannoni <ezannoni@redhat.com>
2577
2578 * values.c (value_being_returned): Don't fetch the return
fbe586ae 2579 value if the return type is void.
514621a9 2580
b4acd559
JJ
25812003-04-17 Jeff Johnston <jjohnstn@redhat.com>
2582
2583 * thread-db.c: Reindented.
2584
530b167e
JJ
25852003-04-17 Jeff Johnston <jjohnstn@redhat.com>
2586
2587 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
2588 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
2589 as types.
2590
0a48e7e8
MS
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
ab9fe00e
KB
26152003-04-16 Kevin Buettner <kevinb@redhat.com>
2616
610a3745 2617 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
2618 the size of ``long double'' to 16, instead of 8.
2619
e64a344c
MK
26202003-04-16 Mark Kettenis <kettenis@gnu.org>
2621
2622 * i386-linux-nat.c: Add some whitespace to make things more
2623 readable.
2624 (fetch_register, store_register, fetch_inferior_registers,
2625 store_inferior_registers): Get rid of assignment in if-statement.
2626 (store_register): Fix typo in error message.
2627
25d41031
AC
26282003-04-16 Andrew Cagney <cagney@redhat.com>
2629
2630 * utils.c (xmmalloc): Always allocate something, matches
2631 libiberty/xmalloc's semantics.
2632 (xmrealloc, xmcalloc): Ditto.
2633
c50901fd
AC
26342003-04-16 Andrew Cagney <cagney@redhat.com>
2635
2636 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
2637 update comments.
2638 (get_frame_type): Initialize unwind and type when needed.
2639 (get_frame_id, frame_register_unwind): Ditto.
2640
f81824a9
AC
26412003-04-16 Andrew Cagney <cagney@redhat.com>
2642
2643 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
2644 obsolete.
2645 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
2646 * sparcl-stub.c: Obsolete file.
2647 * config/sparc/tm-sparclet.h: Obsolete file.
2648 * sparclet-stub.c: Obsolete file.
2649 * sparclet-rom.c: Obsolete file.
2650 * sparcl-tdep.c: Obsolete file.
2651 * config/sparc/tm-sparclite.h: Obsolete file.
2652 * config/sparc/sparclite.mt: Obsolete file.
2653 * config/sparc/sparclet.mt: Obsolete file.
2654 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
2655 sparc86x-*-* obsolete.
2656
9219021c
DC
26572003-04-15 David Carlton <carlton@math.stanford.edu>
2658
2659 * Makefile.in (SFILES): Add cp-namespace.c.
2660 (COMMON_OBS): Add cp-namespace.o.
2661 (block.o): Depend on gdb_obstack_h and cp_support_h.
2662 (buildsym.o): Depend on cp_support_h.
2663 (cp-namespace.o): New.
2664 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
2665 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
2666 (dwarf2read.o): Depend on cp_support_h.
2667 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
2668 * dwarf2read.c (process_die): Set processing_has_namespace_info,
2669 processing_current_namespace.
2670 (read_namespace): Update processing_current_namespace; check for
2671 anonymous namespaces.
2672 (dwarf2_name): New function.
2673 (dwarf2_extension): Ditto.
2674 * cp-support.h: Update copyright, contributors.
2675 Add inclusion guards.
2676 Add opaque declaration for structs obstack, block, symbol.
2677 (struct using_direct): New struct.
2678 Add declarations for cp_find_first_component,
2679 cp_entire_prefix_len, processing_has_namespace_info,
2680 processing_current_namespace, cp_is_anonymous,
2681 cp_add_using_directive, cp_initialize_namespace,
2682 cp_finalize_namespace, cp_set_block_scope,
2683 cp_scan_for_anonymous_namespaces.
2684 * cp-namespace.c: New file.
2685 * cp-support.c: Update copyright.
2686 Include ctype.h, gdb_assert.h, gdbcmd.h.
2687 New variable maint_cplus_cmd_list.
2688 (cp_find_first_component): New function.
2689 (cp_entire_prefix_len, maint_cplus_command)
2690 (first_component_command, _initialize_cp_support): Ditto.
2691 * buildsym.c: Include cp-support.h.
2692 New variable using_list.
2693 (add_symbol_to_list): Check for anonymous namespaces.
2694 (finish_block): Set block's scope.
2695 (start_symtab): Initialize C++ namespace support.
2696 (end_symtab): Finalize C++ namespace support.
2697 * block.h: Add opaque declarations for structs
2698 block_namespace_info, using_direct, and obstack.
2699 Add declarations for block_set_scope and block_set_using.
2700 (struct block): Add 'language_specific' member.
2701 (BLOCK_NAMESPACE): New macro.
2702 * block.c: Include gdb_obstack.h and cp-support.h.
2703 (struct block_namespace_info): New struct.
2704 (block_set_scope): New function.
2705 (block_set_using, block_initialize_namespace): Ditto.
2706
d5a921c9
KB
27072003-04-14 Kevin Buettner <kevinb@redhat.com>
2708
2709 * solib-svr4.c (svr4_have_link_map_offsets): New function.
2710 (locate_base): Return early if there aren't any link map offsets.
2711 (svr4_solib_create_inferior_hook): Warn if shared library support
2712 is unavailable.
2713
d2a52b27
DC
27142003-04-14 David Carlton <carlton@math.stanford.edu>
2715
2716 * symtab.c (symbol_set_names): Add prefix when storing Java names
2717 in hash table. Fix for PR java/1039.
2718
980cae7a
DC
27192003-04-14 David Carlton <carlton@math.stanford.edu>
2720
2721 * symtab.c (symbol_set_names): Rename 'name' arg to
2722 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
2723 * symtab.h: Change 'name' argument in declaration of
2724 symbol_set_names to 'linkage_name'.
2725 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
2726
e227b13c
AC
27272003-04-14 Andrew Cagney <cagney@redhat.com>
2728
2729 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
2730 return the fully sign-extended register value.
2731 (get_frame_pointer): Ditto.
2732 (mips_pop_frame): Initialize "proc_desc" after checking for a
2733 dummy frame.
2734
36712a20
AC
27352003-04-14 Andrew Cagney <cagney@redhat.com>
2736
2737 * mips-tdep.c (mips_push_dummy_frame): Delete function.
2738 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
2739 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
2740 (mips_push_register): Delete function.
2741 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
2742 PUSH_FP_REGNUM.
2743
44ea7b70
JB
27442003-04-14 Jim Blandy <jimb@redhat.com>
2745
2746 * symmisc.c: #include "gdb_regex.h".
2747 (maintenance_list_symtabs, maintenance_list_psymtabs): New
2748 functions.
2749 * maint.c (maintenance_list_command): New function.
2750 (_initialize_maint_cmds): Register the above as commands.
2751 * symtab.h (maintenance_list_symtabs,
2752 maintenance_list_psymtabs): New declarations.
2753 * cli/cli-cmds.c (maintenancelistlist): New variable.
2754 (init_cmd_lists): Initialize it.
2755 * cli/cli-cmds.h (maintenancelistlist): New declaration.
2756 * gdbcmd.h (maintenancelistlist): New declaration.
2757 * Makefile.in (symmisc.o): Update dependencies.
2758
2d0c7962
EZ
27592003-04-14 Elena Zannoni <ezannoni@redhat.com>
2760
2761 * s390-nat.c: Include asm/types.h for addr_t.
2762
1947a811
CV
27632003-04-14 Corinna Vinschen <vinschen@redhat.com>
2764
2765 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
2766 actually incoming type.
2767
adb616d7
AC
27682003-04-13 Andrew Cagney <cagney@redhat.com>
2769
2770 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
2771 get_next_frame and get_frame_saved_regs.
2772
9b5e151c
AC
27732003-04-13 Andrew Cagney <cagney@redhat.com>
2774
2775 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
2776 of gdbarch_num_regs.
2777
ef6e7e13
AC
27782003-04-13 Andrew Cagney <cagney@redhat.com>
2779
2780 * frame.h: Mention what replaced what in "struct frame_info".
2781 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
2782 deprecated_update_frame_base_hack and
2783 deprecated_update_frame_pc_hack.
2784 * hppa-tdep.c: Ditto.
2785
61fbb938
DJ
27862003-04-13 Daniel Jacobowitz <drow@mvista.com>
2787
2788 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
2789 to read_reg and update its comment. Remove regnum member.
2790 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
2791 Don't call read_reg when setting in_reg. Call read_reg to get
2792 the frame base if it's in a register. Return the register number
2793 on the stack instead of in the context. Remove extra arguments
2794 to read_reg.
2795 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
2796 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
2797 the register number on the expression stack.
2798 (needs_frame_read_reg): Remove extra arguments.
2799
0d53c4c4
DJ
28002003-04-13 Daniel Jacobowitz <drow@mvista.com>
2801
2802 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
2803 made non-static.
2804 (execute_stack_op): All callers updated.
2805 * dwarf2expr.h: Add prototype for dwarf2_read_address.
2806 * dwarf2loc.c (find_location_expression): New function.
2807 (dwarf_expr_frame_base): Call it.
2808 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
2809 (dwarf2_tracepoint_var_ref): New function, broken out from
2810 locexpr_tracepoint_var_ref.
2811 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
2812 Make static.
2813 (loclist_read_variable, loclist_read_needs_frame): New functions.
2814 (loclist_describe_location, loclist_tracepoint_var_ref): New
2815 functions.
2816 (dwarf2_loclist_funcs): New struct location_funcs.
2817 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
2818 (struct dwarf2_locexpr_baton): Add comments.
2819 (dwarf2_loclist_funcs): New extern.
2820 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
2821 base_address and base_known.
2822 (dwarf_loc_buffer): New variable.
2823 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
2824 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
2825 (dwarf2_has_info): Initialize dwarf_loc_offset.
2826 (dwarf2_build_psymtabs): Read in .debug_loc.
2827 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
2828 DWARF_LOC_SIZE.
2829 (psymtab_to_symtab_1): Likewise. Move base address calculation
2830 here, from...
2831 (dwarf2_get_pc_bounds): ... here. Use the base address from
2832 cu_header.
2833 (dwarf2_symbol_mark_computed): Handle location lists.
2834
6aca59a3
DJ
28352003-04-13 Daniel Jacobowitz <drow@mvista.com>
2836
2837 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
2838 if the linkage name demangled successfully.
2839
aca1fcd0
MK
28402003-04-13 Mark Kettenis <kettenis@gnu.org>
2841
97095916
MK
2842 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
2843 disassmbly_flavour): Removed.
2844
aca1fcd0
MK
2845 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
2846
562a961f
MK
28472003-04-13 Mark Kettenis <kettenis@gnu.org>
2848
2849 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
2850
bd013d54
AC
28512003-04-12 Andrew Cagney <cagney@redhat.com>
2852
2853 * frame.h (struct frame_info): Move definition from here ...
2854 * frame.c (struct frame_info): ... to here.
2855
167ef8b1
AC
28562003-04-12 Andrew Cagney <cagney@redhat.com>
2857
2858 * gdbthread.h (save_infrun_state): Delete parameter
2859 "prev_func_start".
2860 (struct thread_info): Delete field "prev_func_start".
2861 (load_infrun_state): Ditto.
2862 * thread.c (load_infrun_state, save_infrun_state): Update.
2863 * infrun.c (prev_func_start): Delete variable.
2864 (context_switch, init_wait_for_inferior): Update.
2865 (stop_stepping, keep_going): Update.
2866
da3331ec
AC
28672003-04-12 Andrew Cagney <cagney@redhat.com>
2868
2869 * gdbarch.sh: Add missing opaque declarations.
2870 * gdbarch.h: Regnerate.
2871 * symtab.h: Add missing opaque declarations.
2872 * value.h, target.h, symfile.h, stabsread.h: Ditto.
2873 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
2874 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
2875 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
2876 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
2877 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
2878 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
2879 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
2880 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
2881 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
2882 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
2883 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
2884 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
2885
18adea3f
AC
28862003-04-11 Andrew Cagney <cagney@redhat.com>
2887
2888 * frame.c (get_frame_id): Return this frame's "id".
2889 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
2890 function start.
2891 (legacy_saved_regs_this_id): Replace function body with
2892 internal-error.
2893 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
2894 FRAME_OBSTACK_ZALLOC.
2895 (create_new_frame): Mark the frame ID as valid.
2896
2252e863
AO
28972003-04-11 Alexandre Oliva <aoliva@redhat.com>
2898
2899 * Makefile.in (libbfd_h): Added missing setting.
2900 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
2901 according to the selected ABI.
2902
a8245ab8
JJ
29032003-04-11 Jeff Johnston <jjohnstn@redhat.com>
2904
2905 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
2906
6913c89a
AC
29072003-04-11 Andrew Cagney <cagney@redhat.com>
2908
2909 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
2910 SAVED_PC_AFTER_CALL.
2911 * gdbarch.h, gdbarch.c: Regenerate.
2912 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2913 * x86-64-tdep.c (x86_64_init_abi): Update.
2914 * vax-tdep.c (vax_gdbarch_init): Update.
2915 * v850-tdep.c (v850_gdbarch_init): Update.
2916 * sparc-tdep.c (sparc_gdbarch_init): Update.
2917 * sh-tdep.c (sh_gdbarch_init): Update.
2918 * s390-tdep.c (s390_gdbarch_init): Update.
2919 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2920 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2921 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2922 * mips-tdep.c (mips_gdbarch_init): Update.
2923 * mcore-tdep.c (mcore_gdbarch_init): Update.
2924 * m68k-tdep.c (m68k_gdbarch_init): Update.
2925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2926 * ia64-tdep.c (ia64_gdbarch_init): Update.
2927 (ia64_saved_pc_after_call): Update declaration.
2928 * i386ly-tdep.c (i386lynx_init_abi): Update.
2929 * i386-tdep.c (i386_gdbarch_init): Update.
2930 * hppa-tdep.c (hppa_gdbarch_init): Update.
2931 * h8300-tdep.c (h8300_gdbarch_init): Update.
2932 * frv-tdep.c (frv_gdbarch_init): Update.
2933 * cris-tdep.c (cris_gdbarch_init): Update.
2934 * avr-tdep.c (avr_gdbarch_init): Update.
2935 * arm-tdep.c (arm_gdbarch_init): Update.
2936 * alpha-tdep.c (alpha_gdbarch_init): Update.
2937 * ns32knbsd-nat.c (frame_num_args): Update.
2938 * ns32k-tdep.c (umax_frame_num_args): Update.
2939 * mips-tdep.c (mips_init_frame_pc_first): Update.
2940 * infrun.c (step_over_function): Update.
2941 * i386-linux-tdep.c (skip_hurd_resolver): Update.
2942 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
2943 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2944 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2945 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2946 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2947 * arm-linux-tdep.c (skip_hurd_resolver): Update.
2948 * arch-utils.c (init_frame_pc_default): Update.
2949 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2950 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
2951 declaration.
2952
38edeab8
AC
29532003-04-11 Andrew Cagney <cagney@redhat.com>
2954
2955 * i387-tdep.c: Update copyright.
2956 (i387_to_double): Delete function.
2957 (double_to_i387): Delete function.
2958
81f8a206
AC
29592003-04-10 Andrew Cagney <cagney@redhat.com>
2960
2961 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
2962 frame's function's address. Simplify.
2963 (d10v_frame_unwind_cache): Check that the frame's function is
2964 non-zero.
2965
6e691f7a
JB
29662003-04-10 Jim Blandy <jimb@redhat.com>
2967
2968 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
2969 call to set_gdbarch_deprecated_push_arguments.
2970
7f78e237
AC
29712003-04-10 Andrew Cagney <cagney@redhat.com>
2972
2973 * frame.c (fprint_frame_id): New function.
2974 (fprint_frame_type, fprint_frame): New function.
2975 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
2976 (create_sentinel_frame, get_frame_id): Ditto.
2977 (frame_id_p, frame_id_eq): Ditto.
2978 (frame_id_inner, create_new_frame): Ditto.
2979 (legacy_get_prev_frame, get_prev_frame): Ditto.
2980 (deprecated_update_frame_pc_hack): Ditto.
2981 (frame_register_unwind): Ditto.
2982 (deprecated_update_frame_base_hack): Ditto.
2983
f870b49b
CV
29842003-04-10 Corinna Vinschen <vinschen@redhat.com>
2985
2986 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
2987 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
2988 frame_chain function.
2989 * Makefile.in: Add dependencies due to above change.
2990
7c86889b
CV
29912003-04-10 Corinna Vinschen <vinschen@redhat.com>
2992
2993 * blockframe.c (legacy_frame_chain_valid): Move call to
2994 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
2995 inside_entry_file.
2996
d0a55772
AC
29972003-04-09 Andrew Cagney <cagney@redhat.com>
2998
2999 * frame.h (struct frame_id): Replace "pc" and "base" with
3000 "stack_addr" and "code_addr". Update comments.
3001 (frame_id_build): Update parameter names and comment.
3002 (struct frame_info): Replace "id_p" and "id" with "this_id".
3003 * dummy-frame.c (dummy_frame_this_id): Update.
3004 * breakpoint.c (print_one_breakpoint): Update.
3005 * frame.c (get_frame_id): Update.
3006 (get_frame_base, frame_id_build): Update.
3007 (create_sentinel_frame, legacy_get_prev_frame): Update.
3008 (deprecated_update_frame_base_hack): Update.
3009 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
3010 (frame_id_inner): Ditto.
3011
ac16bf07
AC
30122003-04-09 Andrew Cagney <cagney@redhat.com>
3013
3014 * defs.h (gdb_print_host_address): Make "addr" parameter a
3015 pointer constant.
3016 * utils.c (gdb_print_host_address): Update.
3017
366cfc9e
KB
30182003-04-09 Kevin Buettner <kevinb@redhat.com>
3019
3020 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
3021 register number for R0 is 0.
3022
cd983b5c
JB
30232003-04-09 J. Brobecker <brobecker@gnat.com>
3024
3025 * frame.h (struct gdbarch): Add opaque structure definition
3026 to avoid a compilation warning on LynxOS 4.0.
3027
d1340264
AC
30282003-04-09 Andrew Cagney <cagney@redhat.com>
3029
3030 * frame.h (struct frame_info): Delete field "pc". Replace
3031 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
3032 structure.
3033 * frame.c (frame_pc_unwind): Update.
3034 (create_sentinel_frame): Do not set "pc".
3035 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
3036 (get_frame_pc): Call frame_pc_unwind.
3037 (deprecated_update_frame_pc_hack): Update.
3038 (create_new_frame): Use "pc" not "->pc".
3039
90a6fffb
AC
30402003-04-09 Andrew Cagney <cagney@redhat.com>
3041
3042 * frame.c (get_frame_id): Eliminate code updating "frame".
3043 (legacy_get_prev_frame): Ditto.
3044 (get_frame_base): Return id.base directly.
3045 (deprecated_update_frame_base_hack): Update "id.base".
3046 * frame.h (struct frame_info): Delete field "frame".
3047
2fbce691
AC
30482003-04-09 Andrew Cagney <cagney@redhat.com>
3049
3050 * NEWS: Mention that the "Sequent family" is obsolete.
3051 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
3052 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
3053 * configure.host: Obsolete i[3456]86-sequent-bsd*,
3054 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
3055 * config/i386/tm-ptx4.h: Obsolete file.
3056 * config/i386/tm-ptx.h: Obsolete file.
3057 * symm-tdep.c: Obsolete file.
3058 * config/i386/symmetry.mt: Obsolete file.
3059 * config/i386/tm-symmetry.h: Obsolete file.
3060 * symm-nat.c: Obsolete file.
3061 * config/i386/nm-symmetry.h: Obsolete file.
3062 * config/i386/xm-symmetry.h: Obsolete file.
3063 * config/i386/symmetry.mh: Obsolete file.
3064 * config/i386/nm-ptx4.h: Obsolete file.
3065 * config/i386/ptx4.mh: Obsolete file.
3066 * config/i386/ptx.mt: Obsolete file.
3067 * config/i386/ptx.mh: Obsolete file.
3068 * config/i386/xm-ptx4.h: Obsolete file.
3069 * config/i386/xm-ptx.h: Obsolete file.
3070
78c43945
AC
30712003-04-09 Andrew Cagney <cagney@redhat.com>
3072
3073 Obsolete mips*-*-mach3*.
3074 * NEWS: Mention that mips*-*-mach3* is obsolete.
3075 * m3-nat.c: Obsolete file.
3076 * config/nm-m3.h: Obsolete file.
3077 * config/mips/tm-mipsm3.h: Obsolete file.
3078 * config/mips/mipsm3.mt: Obsolete file.
3079 * config/mips/mipsm3.mh: Obsolete file.
3080 * config/mips/xm-mipsm3.h: Obsolete file.
3081 * mipsm3-nat.c: Obsolete file.
3082 * configure.host: Obsolete mips-dec-mach3*.
3083 * configure.tgt: Obsolete mips*-*-mach3*.
3084
f1908289
AC
30852003-04-09 Andrew Cagney <cagney@redhat.com>
3086
3087 * doublest.h: Update copyright.
3088 (deprecated_store_floating, deprecated_extract_floating): Rename
3089 store_floating and extract_floating. Update comments.
3090 * doublest.c: Update copyright.
3091 (extract_floating_by_length): Replace extract_floating.
3092 (store_floating_by_length): Replace store_floating.
3093 (deprecated_extract_floating): New function.
3094 (deprecated_store_floating): New function.
3095 (extract_typed_floating): Call extract_floating_by_length.
3096 (store_typed_floating): Call store_floating_by_length.
3097 * x86-64-tdep.c (x86_64_store_return_value): Update.
3098 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
3099 (sh64_extract_return_value): Update.
3100 (sh_sh4_register_convert_to_virtual): Update.
3101 (sh_sh64_register_convert_to_virtual): Update.
3102 (sh_sh4_register_convert_to_raw): Update.
3103 (sh_sh64_register_convert_to_raw): Update.
3104 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
3105 (rs6000_register_convert_to_raw): Update.
3106 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
3107 (ia64_register_convert_to_raw): Update.
3108 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
3109 (REGISTER_CONVERT_TO_VIRTUAL): Update.
3110 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
3111 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
3112 (alpha_register_convert_to_raw): Update.
3113
4443bd83
AC
31142003-04-08 Andrew Cagney <cagney@redhat.com>
3115
3116 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
3117 * gdbarch.h, gdbarch.c: Re-generate.
3118 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
3119 (d10v_gdbarch_init): Do not set saved_pc_after_call.
3120 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
3121 conditionally, use frame_pc_unwind as an alternative. Add
3122 comments.
3123 * arch-utils.c (init_frame_pc_default): Only call
3124 SAVED_PC_AFTER_CALL when available.
3125
c0236d92
EZ
31262003-04-08 Elena Zannoni <ezannoni@redhat.com>
3127
fbe586ae 3128 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
3129 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
3130 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
3131 (start_remote): Ditto.
3132 (handle_inferior_event): Ditto.
3133 (save_inferior_status): Ditto.
3134 (restore_inferior_status): Ditto.
3135 * infcmd.c (attach_command): Ditto.
3136 * fork-child.c (startup_inferior): Ditto.
fbe586ae 3137 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
3138 * alpha-tdep.c (heuristic_proc_start): Ditto.
3139 * mips-tdep.c (heuristic_proc_start): Ditto.
3140 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
3141 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
3142 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
3143 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
3144 * remote-vx.c (vx_create_inferior): Ditto.
3145
31462003-04-08 Elena Zannoni <ezannoni@redhat.com>
3147
3148 * infrun.c (stop_soon_quietly): Make it an enum, to better
3149 override the default behavior of handle_inferior_event.
3150 (clear_proceed_status): Update uses of stop_soon_quietly to
3151 reflect that it is now an enum.
3152 (start_remote): Ditto.
3153 (handle_inferior_event): Change logic a bit if stop_soon_quietly
3154 is set to handle the new GNU/Linux kernel behavior for
3155 attach/sigstop. Update uses of stop_soon_quietly.
3156 * inferior.h (enum stop_kind): New enum.
3157 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
3158 Reset normal handle_inferior_event behavior, afterwards.
3159 * fork-child.c (startup_inferior): Update.
3160 * alpha-tdep.c (heuristic_proc_start): Update.
3161 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3162 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
3163 * solib-osf.c (osf_solib_create_inferior_hook): Update.
3164 * solib-irix.c (irix_solib_create_inferior_hook): Update.
3165 * remote-vx.c (vx_create_inferior): Update.
3166 * mips-tdep.c (heuristic_proc_start): Update.
3167
1211bce3
EZ
31682003-04-07 Elena Zannoni <ezannoni@redhat.com>
3169
3170 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 3171 be freed more than once, causing wild memory corruptions.
1211bce3 3172 (gdb_disassembly): Look for the substring "-thread",
fbe586ae
RH
3173 instead of "-threads" in the target name, to make sure to find
3174 the 'multi-thread' target. Also, make sure we do the right thing
3175 with the "core" target.
1211bce3 3176
f0ef6b29
KB
31772003-04-07 Kevin Buettner <kevinb@redhat.com>
3178
3179 * mips-tdep.c (mips_print_fp_register): New function, created from
3180 do_fp_register_row(). Registers are now (also) printed as hex.
3181 Only one register is printed per row.
3182 (mips_print_register, do_fp_register_row): Print floating point
3183 registers with mips_print_fp_register().
3184
8cf71652
AC
31852003-04-06 Andrew Cagney <cagney@redhat.com>
3186
5e488a7b
AC
3187 * valprint.h (inspect_it): Add extern declaration.
3188 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
3189 (selectors_info, classes_info): Ditto.
3190 (find_objc_msgcall): Fix indentation.
3191 (objc_printstr): Delete extern declarations.
3192
8cf71652
AC
3193 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
3194
e6ba3bc9
AC
31952003-04-06 Andrew Cagney <cagney@redhat.com>
3196
3197 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
3198 Update comment.
3199 * frame.c (legacy_saved_regs_this_id): Update.
3200 (legacy_get_prev_frame): Update.
3201 * xstormy16-tdep.c: Update comment.
3202 * sparc-tdep.c (sparc_frame_chain): Update comment.
3203 * blockframe.c (legacy_frame_chain_valid): Update.
3204
55e1d7e7
AC
32052003-04-06 Andrew Cagney <cagney@redhat.com>
3206
996179ee
AC
3207 * valprint.c (val_print_type_code_int): Delete #ifdef
3208 PRINT_TYPELESS_INTEGER code.
3209
55e1d7e7
AC
3210 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
3211 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
3212 multi-arch definition.
3213 * gdbarch.h: Re-generate.
3214
43bd9a9e
AC
32152003-04-05 Andrew Cagney <cagney@redhat.com>
3216
3217 Eliminate FRAME_FIND_SAVED_REGS.
3218 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
3219 Change FSR parameter to a pointer.
3220 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
3221 Assume FSR parameter is a pointer.
3222 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
3223 Make fsr a pointer.
3224 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
3225 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
3226 saved_regs a pointer.
3227 (hppa_frame_saved_pc): Ditto.
3228 (find_dummy_frame_regs): Make frame_saved_regs a pointer
3229 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
3230 pointer.
3231 (restore_pc_queue): Make fsr a pointer.
3232 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
3233 (hppa_frame_chain): Make saved_regs a pointer, call
3234 hppa_frame_init_saved_regs.
3235 * sparc-tdep.c: Include "gdb_assert.h".
3236 (sparc_frame_find_saved_regs): Replace internal_error with
3237 gdb_assert.
3238 * remote-vxsparc.c (vx_read_register): Delete reference to
3239 FRAME_FIND_SAVED_REGS.
3240 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
3241 * gdbarch.h: Regenerate.
3242 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
3243 (deprecated_get_frame_saved_regs): Delete declaration.
3244 (struct frame_saved_regs): Delete definition.
3245 * frame.c (deprecated_get_frame_saved_regs): Delete function.
3246 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
3247 (hppa_frame_find_saved_regs): Delete declaration.
3248 (FRAME_FIND_SAVED_REGS): Delete macro.
3249 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
3250 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
3251 FRAME_FIND_SAVED_REGS in comment.
3252
be41e9f4
AC
32532003-04-05 Andrew Cagney <cagney@redhat.com>
3254
3255 * frame.c (frame_func_unwind, get_frame_func): New functions.
3256 * frame.h (get_frame_func, frame_func_unwind): Declare.
3257 (struct frame_info): Add field "prev_func" for caching the
3258 previous frame's function address.
3259 * arm-tdep.c (arm_frameless_function_invocation): Combine
3260 get_pc_function_start and get_frame_pc into get_frame_func.
3261 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3262 (sh64_nofp_frame_init_saved_regs): Ditto.
3263 * s390-tdep.c (s390_function_start): Ditto.
3264 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
3265 (rs6000_frameless_function_invocation): Ditto.
3266 (rs6000_frame_saved_pc): Ditto.
3267 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
3268 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
3269 * i386-tdep.c (i386_frameless_signal_p): Ditto.
3270 (i386_frame_init_saved_regs): Ditto.
3271 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
3272 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
3273 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
3274 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3275 * blockframe.c (frameless_look_for_prologue): Ditto.
3276
a01dd7cc
AC
32772003-04-05 Andrew Cagney <cagney@redhat.com>
3278
3279 * frame.c (legacy_get_prev_frame): Link prev to next at the
3280 function start. Update comments.
3281
5e5592e6
AC
32822003-04-05 Andrew Cagney <cagney@redhat.com>
3283
3284 * frame.c (get_frame_id): Update comment.
3285 (legacy_get_prev_frame): Update comment.
3286 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
3287 * gdbarch.h: Regenerate.
3288 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
3289 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
3290
6fba5002
AC
32912003-04-05 Andrew Cagney <cagney@redhat.com>
3292
3293 * stack.c (print_frame_info): Use get_frame_pc.
3294
7df05f2b
AC
32952003-04-04 Andrew Cagney <cagney@redhat.com>
3296
3297 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
3298 the frame's type from the unwinder.
3299 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
3300 (create_new_frame, legacy_get_prev_frame): When the unwinder's
3301 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
3302 (get_frame_base_address): Use get_frame_type.
3303 (get_frame_locals_address, get_frame_args_address): Ditto.
3304 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
3305 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
3306 (struct frame_info): Add comment explaining why the frame contains
3307 a "type" field.
3308 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
3309 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
3310 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
3311 NORMAL_FRAME.
3312 * frame-unwind.h: Include "frame.h".
3313 (struct frame_unwind): Add "type" field.
3314 * Makefile.in (frame_unwind_h): Add $(frame_h).
3315
11889732
AC
33162003-04-04 Andrew Cagney <cagney@redhat.com>
3317
3318 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
3319 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
3320 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
3321 get_frame_base.
3322 (d10v_unwind_dummy_id): Use frame_id_build.
3323 * frame.c (find_frame_sal): Use get_frame_pc.
3324 (create_new_frame): Use deprecated_update_frame_pc_hack and
3325 deprecated_update_frame_base_hack.
3326 (create_sentinel_frame): Add comment about ->pc going away.
3327 (get_prev_frame): Add comment about ->pc going away.
3328 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
3329 frame_id_build, deprecated_update_frame_pc_hack and
3330 deprecated_update_frame_base_hack.
3331 (select_frame): Use get_frame_pc.
3332 (legacy_saved_regs_this_id): Use frame_id_build.
3333
50c46a0d
EZ
33342003-04-04 Elena Zannoni <ezannoni@redhat.com>
3335
fbe586ae
RH
3336 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
3337 signed integer case.
3338 (classify_argument): Handle enumerations and references.
50c46a0d 3339
50bbdbd9
AC
33402003-04-04 Andrew Cagney <cagney@redhat.com>
3341
3342 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
3343 ID to NULL.
3344
36018d2e
AF
33452003-04-01 Adam Fedor <fedor@gnu.org>
3346
3347 * gdb/objc-lang.c (selectors_info): Replace calls to
3348 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
3349 SYMBOL_NATURAL_NAME.
3350 (classes_info, find_methods): Likewise.
3351
35cec841
KB
33522003-04-03 Kevin Buettner <kevinb@redhat.com>
3353
3354 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
3355 ``mach'' to the value determined by bfd_default_set_arch_mach().
3356
43136899
BR
33572003-04-02 Bob Rossi <bob_rossi@cox.net>
3358
3359 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
3360 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
3361 (mi-cmd-file.o): Update dependencies.
3362
040b99fd
KB
33632003-04-01 Kevin Buettner <kevinb@redhat.com>
3364
3365 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3366 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
3367
9a3d7dfd
AF
33682003-04-01 Adam Fedor <fedor@gnu.org>
3369
3370 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
3371 * language.h (struct language_defn): Add la_demangle.
3372 (language_demangle): Declare.
3373 * language.c (language_demangle): New function.
3374 (unk_lang_demangle): Likewise.
3375 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 3376 Add ukn_lang_demangle.
9a3d7dfd 3377 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 3378 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
3379 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
3380 (cplus_language_defn): Add cplus_demangle for la_demangle element.
3381 * jv-lang.c (java_demangle): New function
3382 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
3383 * objc-lang.c (objc_demangle): Add options argument
3384 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
3385 * maint.c (maintenance_demangle): Replace switch with
3386 call to language_demangle.
3387 * utils.c (fprintf_symbol_filtered): Likewise.
3388
5e074003
AC
33892003-04-01 Andrew Cagney <cagney@redhat.com>
3390
3391 * printcmd.c (print_frame_nameless_args): Delete #ifdef
3392 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
3393 PRINT_TYPELESS_INTEGER.
3394 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
3395 PUSH_RETURN_ADDRESS.
3396
270cb5d6
AC
33972003-04-01 Andrew Cagney <cagney@redhat.com>
3398
3399 * Makefile.in (d10v-tdep.o): Update dependencies.
3400 * d10v-tdep.c: Include "frame-base.h".
3401 (d10v_frame_unwind): Make constant.
3402 (d10v_frame_base_address): New function.
3403 (d10v_frame_base): New variable.
3404 (d10v_gdbarch_init): Set frame_base default.
3405 (struct d10v_unwind_cache): Add the field "prev_sp". Update
3406 comment for base.
3407 (d10v_frame_unwind_cache): Set and use "prev_sp".
3408 (d10v_frame_this_id): Use the previous frame's inner most stack
3409 address and this frame's func address for the frame ID. Use
3410 frame_id_build. Don't analyze beyond the current instruction.
3411
6bfb3e36
AC
34122003-04-01 Andrew Cagney <cagney@redhat.com>
3413
3414 * frame.h (get_frame_locals_address, get_frame_args_address):
3415 Refer to the base address, instead of the address of the first
3416 local or parameter.
3417
da62e633
AC
34182003-04-01 Andrew Cagney <cagney@redhat.com>
3419
3420 Add frame debug info addresses:
3421 * frame-base.c: New file.
3422 * frame-base.h: New file.
3423 * frame.h (struct frame_base): Add opaque declaration.
3424 (get_frame_base): Update comment.
3425 (get_frame_base_address): Declare.
3426 (get_frame_locals_address): Declare.
3427 (get_frame_args_address): Declare.
3428 (struct frame_info): Add "base" and "base_cache". Update
3429 comments on the unwinder.
3430 * frame.c: Include "frame-base.h".
3431 (get_frame_locals_address): New function.
3432 (get_frame_base_address): New function.
3433 (get_frame_args_address): New function.
3434 * findvar.c (read_var_value): Use get_frame_locals_address and
3435 get_frame_args_address.
3436 * stack.c (frame_info): Use get_frame_locals_address and
3437 get_frame_args_address.
3438 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
3439 moved to "frame-base.c".
3440 * printcmd.c (print_frame_nameless_args): Ditto.
3441 * symtab.h (address_class): Update comments.
3442 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
3443 get_frame_base_address.
3444 * dwarf2expr.c (execute_stack_op): Ditto.
3445 * Makefile.in (frame_base_h): Define.
3446 (frame.o): Update dependencies.
3447 (frame-base.o): Add dependencies.
3448 (SFILES): Add frame-base.c.
3449 (COMMON_OBS): Add frame-base.o.
3450
3d30e9c2
AC
34512003-04-01 Andrew Cagney <cagney@redhat.com>
3452
3453 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
3454 CALL_DUMMY_LENGTH): Ditto.
3455 * gdbarch.c: Re-generate.
3456 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
3457 (CALL_DUMMY_LENGTH): Delete macro.
3458 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
3459 * arm-tdep.c (arm_gdbarch_init): Ditto.
3460 * avr-tdep.c (avr_gdbarch_init): Ditto.
3461 * cris-tdep.c (cris_gdbarch_init): Ditto.
3462 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3463 * frv-tdep.c (frv_gdbarch_init): Ditto.
3464 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3465 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3466 * i386-tdep.c (i386_gdbarch_init): Ditto.
3467 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3468 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3469 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3470 * mips-tdep.c (mips_gdbarch_init): Ditto.
3471 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3472 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3473 * s390-tdep.c (s390_gdbarch_init): Ditto.
3474 * sh-tdep.c (sh_gdbarch_init): Ditto.
3475 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3476 * v850-tdep.c (v850_gdbarch_init): Ditto.
3477 * vax-tdep.c (vax_gdbarch_init): Ditto.
3478 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3479
ce0c7262
CV
34802003-04-01 Corinna Vinschen <vinschen@redhat.com>
3481
3482 * frame.c (get_prev_frame): Disable call to inside_entry_file().
3483
73dd234f
AC
34842003-04-01 Andrew Cagney <cagney@redhat.com>
3485
3486 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
3487 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3488 * gdbarch.h, gdbarch.c: Re-generate.
3489 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3490 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3491 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3492 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3493 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3494 * infcmd.c (run_stack_dummy): Simplify assuming
3495 CALL_DUMMY_BREAKPOINT_OFFSET_P.
3496 * infrun.c (handle_inferior_event): Ditto.
3497 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3498 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
3499 * arm-tdep.c (arm_gdbarch_init): Ditto.
3500 * avr-tdep.c (avr_gdbarch_init): Ditto.
3501 * cris-tdep.c (cris_gdbarch_init): Ditto.
3502 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3503 * frv-tdep.c (frv_gdbarch_init): Ditto.
3504 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3505 * i386-tdep.c (i386_gdbarch_init): Ditto.
3506 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3508 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3509 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3510 * mips-tdep.c (mips_gdbarch_init): Ditto.
3511 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3512 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3513 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3514 * s390-tdep.c (s390_gdbarch_init): Ditto.
3515 * sh-tdep.c (sh_gdbarch_init): Ditto.
3516 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3517 * v850-tdep.c (v850_gdbarch_init): Ditto.
3518 * vax-tdep.c (vax_gdbarch_init): Ditto.
3519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3520
97606a13
DJ
35212003-04-01 Daniel Jacobowitz <drow@mvista.com>
3522
3523 * symfile.c (symfile_relocate_debug_section): Update call to
3524 bfd_simple_get_relocated_section_contents.
3525
e8ab51f7
AC
35262003-03-31 Andrew Cagney <cagney@redhat.com>
3527
3528 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
3529 * gdbarch.h, gdbarch.c: Regenerate.
3530 * inferior.h (FIX_CALL_DUMMY): Delete macro.
3531 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
3532 available.
3533 * frame.h (generic_fix_call_dummy): Delete declaration.
3534 * dummy-frame.h: Update comment.
3535 * dummy-frame.c (generic_fix_call_dummy): Delete function.
3536 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3537 fix_call_dummy.
3538 * sh-tdep.c (sh_gdbarch_init): Ditto.
3539 * s390-tdep.c (s390_gdbarch_init): Ditto.
3540 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3541 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3543 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3544 * i386-tdep.c (i386_gdbarch_init): Ditto.
3545 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3546 * frv-tdep.c (frv_gdbarch_init): Ditto.
3547 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3548 * cris-tdep.c (cris_gdbarch_init): Ditto.
3549 * avr-tdep.c (avr_gdbarch_init): Ditto.
3550 * arm-tdep.c (arm_gdbarch_init): Ditto.
3551
018d1b48
JB
35522003-03-31 J. Brobecker <brobecker@gnat.com>
3553
3554 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
3555 (INIT_FRAME_AP): Likewise.
3556 (EXTRA_FRAME_INFO): Likewise.
3557
e9a2674e
AC
35582003-03-31 Andrew Cagney <cagney@redhat.com>
3559
3560 * gdbarch.sh: Include "symfile.h".
3561 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
3562 * gdbarch.h, gdbarch.c: Re-generate.
3563 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
3564 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3565 call_dummy_address, the default is at entry_point_address.
3566 * v850-tdep.c (v850_gdbarch_init): Ditto.
3567 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3568 * sh-tdep.c (sh_gdbarch_init): Ditto.
3569 * s390-tdep.c (s390_gdbarch_init): Ditto.
3570 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3571 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3572 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3573 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3574 * i386-tdep.c (i386_gdbarch_init): Ditto.
3575 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3576 * frv-tdep.c (frv_gdbarch_init): Ditto.
3577 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3578 * cris-tdep.c (cris_gdbarch_init): Ditto.
3579 * arm-tdep.c (arm_gdbarch_init): Ditto.
3580
e8a8712a
AC
35812003-03-31 Andrew Cagney <cagney@redhat.com>
3582
3583 * gdbarch.sh (CALL_DUMMY_P): Delete.
3584 * gdbarch.h, gdbarch.c: Re-generate.
3585 * inferior.h (CALL_DUMMY_P): Delete macro.
3586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3587 * vax-tdep.c (vax_gdbarch_init): Update.
3588 * v850-tdep.c (v850_gdbarch_init): Update.
3589 * sparc-tdep.c (sparc_gdbarch_init): Update.
3590 * sh-tdep.c (sh_gdbarch_init): Update.
3591 * s390-tdep.c (s390_gdbarch_init): Update.
3592 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3593 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3594 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3595 * mips-tdep.c (mips_gdbarch_init): Update.
3596 * mcore-tdep.c (mcore_gdbarch_init): Update.
3597 * m68k-tdep.c (m68k_gdbarch_init): Update.
3598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3599 * ia64-tdep.c (ia64_gdbarch_init): Update.
3600 * i386-tdep.c (i386_gdbarch_init): Update.
3601 * h8300-tdep.c (h8300_gdbarch_init): Update.
3602 * frv-tdep.c (frv_gdbarch_init): Update.
3603 * d10v-tdep.c (d10v_gdbarch_init): Update.
3604 * cris-tdep.c (cris_gdbarch_init): Update.
3605 * breakpoint.c (deprecated_frame_in_dummy): Update.
3606 * avr-tdep.c (avr_gdbarch_init): Update.
3607 * alpha-tdep.c (alpha_gdbarch_init): Update.
3608 * arm-tdep.c (arm_gdbarch_init): Update.
3609 * dummy-frame.c (dummy_frame_this_id): Update comments.
3610 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
3611 * frame.c (legacy_get_prev_frame): Ditto.
3612 * valops.c (call_function_by_hand): Delete function.
3613 (hand_function_call): Rename to call_function_by_hand
3614
ed234cf8
AC
36152003-03-30 Andrew Cagney <cagney@redhat.com>
3616
3617 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 3618 * value.h (struct value): Update comment.
ed234cf8 3619
06c77151
AC
36202003-03-30 Andrew Cagney <cagney@redhat.com>
3621
6c2b5168
AC
3622 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
3623 D10V_FP_REGNUM.
3624 (d10v_gdbarch_init): Do not set fp_regnum.
3625
06c77151
AC
3626 * frame.c (get_frame_base): Force ID initialization.
3627 (get_prev_frame): Move computation of the frame ID from here ...
3628 (get_frame_id): ... to here.
3629 (legacy_get_prev_frame): Mark the frame ID as valid.
3630 * frame.h (struct frame_info): Add field "id_p".
3631
97a1a11c
MK
36322003-03-30 Mark Kettenis <kettenis@gnu.org>
3633
3634 * i386-tdep.c (i386_store_struct_return): Removed.
3635 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
3636
6c0e89ed
AC
36372003-03-30 Andrew Cagney <cagney@redhat.com>
3638
3639 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
3640 * gdbarch.h, gdbarch.c: Regenerate.
3641 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
3642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3643 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3644 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3645 * i386-tdep.c (i386_gdbarch_init): Ditto.
3646 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3647 * cris-tdep.c (cris_gdbarch_init): Ditto.
3648 * vax-tdep.c (vax_gdbarch_init): Ditto.
3649 * s390-tdep.c (s390_gdbarch_init): Ditto.
3650 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3651 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3652 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3653 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
3654 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3655 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
3656 * sparc-tdep.c (sparc_gdbarch_init): Update.
3657 * sh-tdep.c (sh_gdbarch_init): Update.
3658 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3659 * mips-tdep.c (mips_gdbarch_init): Update.
3660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3661 * ia64-tdep.c (ia64_gdbarch_init): Update.
3662 * frv-tdep.c (frv_gdbarch_init): Update.
3663 * avr-tdep.c (avr_gdbarch_init): Update.
3664 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
3665 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
3666 instead of when push_dummy_call is not available.
3667
f7dd6af2
AC
36682003-03-30 Andrew Cagney <cagney@redhat.com>
3669
3670 * infttrace.c: Include "gdbthread.h".
3671 (parent_attach_all): Fix function signature.
3672 (call_ptrace): Update call.
3673 * Makefile.in (infttrace.o): Update dependencies.
3674
28f617b3
AC
36752003-03-30 Andrew Cagney <cagney@redhat.com>
3676
3677 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
3678 PUSH_RETURN_ADDRESS.
3679 * gdbarch.h, gdbarch.c: Regenerate.
3680 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3681 * x86-64-tdep.c (x86_64_init_abi): Update.
3682 * v850-tdep.c (v850_gdbarch_init): Update.
3683 * sparc-tdep.c (sparc_gdbarch_init): Update.
3684 * sh-tdep.c (sh_gdbarch_init): Update.
3685 * s390-tdep.c (s390_gdbarch_init): Update.
3686 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3687 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3688 * mips-tdep.c (mips_gdbarch_init): Update.
3689 * mcore-tdep.c (mcore_gdbarch_init): Update.
3690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3691 * ia64-tdep.c (ia64_gdbarch_init): Update.
3692 * i386-tdep.c (i386_gdbarch_init): Update.
3693 * h8300-tdep.c (h8300_gdbarch_init): Update.
3694 * frv-tdep.c (frv_gdbarch_init): Update.
3695 * cris-tdep.c (cris_gdbarch_init): Update.
3696 * avr-tdep.c (avr_gdbarch_init): Update.
3697 * arm-tdep.c (arm_gdbarch_init): Update.
3698 * valops.c (hand_function_call): Update.
3699
4d628cd7
AC
37002003-03-29 Andrew Cagney <cagney@redhat.com>
3701
3702 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
3703 sizeof_call_dummy_words.
3704 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
3705 define.
3706 * gdbarch.h: Regenerate.
3707
65e82032
AC
37082003-03-29 Andrew Cagney <cagney@redhat.com>
3709
3710 * infttrace.h: New file.
3711 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
3712 (hpread_get_textlow): Detect an uninitialized dn_bufp.
3713 (hpread_read_doc_function_type): Detect an initialized type1.
3714 (hpread_quick_traverse): Initialize mod_name_string.
3715 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
3716 (som_solib_get_solib_by_pc): Declare.
3717 (so_lib_thread_start_addr): Declare.
3718 (no_shared_libraries): Declare.
3719 * somread.c (init_import_symbols): Make static. Add forward
3720 declaration.
3721 * config/pa/nm-hppah.h: Include "infttrace.h" for
3722 parent_attach_all.
3723 (hppa_insert_hw_watchpoint): Declare.
3724 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
3725 * hppah-nat.c: Include "gdb_string.h".
3726 (parent_attach_all): Delete extern declaration, moved to
3727 "infttrace.h".
3728 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
3729 int.
3730 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
3731 * Makefile.in (infttrace_h): Define.
3732 (hpread.o): Update dependencies.
3733 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
3734 * hppa-hpux-tdep.c: Include "gdb_string.h".
3735 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
3736 * infrun.c (handle_inferior_event): Always initialize
3737 stepped_after_stopped_by_watchpoint. Add default and remove
3738 fallthrough in switch statement.
3739 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
3740 parameter to int.
3741 (hppa_remove_hw_watchpoint): Ditto.
3742
2c3bbe77
AC
37432003-03-29 Andrew Cagney <cagney@redhat.com>
3744
3745 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
3746 offset.
3747
2dd604e7
RE
37482003-03-29 Richard Earnshaw <rearnsha@arm.com>
3749
3750 * arm-tdep.c (arm_push_arguments): Delete.
3751 (struct stack_item): New type.
3752 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
3753 (arm_store_struct_return): Delte.
3754 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
3755 arm_push_arguments or arm_store_struct_return.
3756
e8933a55
AC
37572003-03-28 Andrew Cagney <cagney@redhat.com>
3758
3759 * Makefile.in (d10v-tdep.o): Update dependencies.
3760 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
3761 * d10v-tdep.c: Include "remote.h".
3762 (target_resume_hook): Delete extern declaration.
3763 (target_wait_loop_hook): Ditto.
3764 (tdisassemble_command): Eliminate assignment in "if" conditional.
3765 (d10v_ts2_register_sim_regno): Eliminate call to
3766 legacy_register_sim_regno.
3767 (d10v_ts3_register_sim_regno): Ditto.
3768
6949171e
JJ
37692003-03-28 Jeff Johnston <jjohnstn@redhat.com>
3770
3771 * thread.c: Reindented.
3772 * lin-lwp.c: Ditto.
3773 * linux-proc.c: Ditto.
3774
98c7071f
BR
37752003-03-28 Bob Rossi <bob_rossi@cox.net>
3776
fbe586ae 3777 * MAINTAINERS (write after approval): Add myself.
98c7071f 3778
5edc9ca6
TR
37792003-03-27 Theodore A. Roth <troth@openavr.org>
3780
3781 * objc-exp.y: Add missing semi-colons.
3782
378bfd1b
AC
37832003-03-27 Andrew Cagney <cagney@redhat.com>
3784
3785 * regcache.c (write_sp): Delete function and references.
3786 * inferior.h (write_sp): Delete declaration.
3787 * valops.c (hand_function_call): Replace write_sp with
3788 TARGET_WRITE_SP.
3789 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
3790 (sparc_pop_frame): Ditto.
3791
56056df7
AC
37922003-03-27 Andrew Cagney <cagney@redhat.com>
3793
3794 * NEWS: Mention removal of support for hppa*-*-bsd* and
3795 hppa*-*-osf* natives, and hppa*-*-pro* target.
3796 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
3797 * config/pa/xm-pa.h: Obsolete file.
3798 * config/pa/xm-hppab.h: Obsolete file.
3799 * config/pa/nm-hppab.h: Obsolete file.
3800 * config/pa/tm-hppab.h: Obsolete file.
3801 * config/pa/tm-hppao.h: Obsolete file.
3802 * config/pa/nm-hppao.h: Obsolete file.
3803 * config/pa/tm-pro.h: Obsolete file.
3804 * config/pa/hppaosf.mt: Obsolete file.
3805 * config/pa/hppaosf.mh: Obsolete file.
3806 * config/pa/hppapro.mt: Obsolete file.
3807 * config/pa/hppabsd.mt: Obsolete file.
3808 * config/pa/hppabsd.mh: Obsolete file.
3809 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
3810 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
3811 hppa*-*-osf*.
3812
5873a88d
AC
38132003-03-27 Andrew Cagney <cagney@redhat.com>
3814
3815 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
3816 push_arguments. Don't set push_return_address or write_sp.
3817 (d10v_push_dummy_call): Replace d10v_push_arguments.
3818 (d10v_push_return_address, d10v_write_sp): Delete function,
3819 handled by push_dummy_call.
3820
b81774d8
AC
38212003-03-26 Andrew Cagney <cagney@redhat.com>
3822
3823 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
3824 (push_dummy_call): New pure multi-arch replacement with gdbarch,
3825 regcache and dummy_addr parameters.
3826 * gdbarch.h, gdbarch.c: Re-generate.
3827 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
3828 available; assume it will handle stack alignment and return
3829 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
3830 legacy_push_arguments.
3831 (legacy_push_arguments): Rename default_push_arguments.
3832 * value.h (legacy_push_arguments): Rename default_push_arguments.
3833 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
3834 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3835 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3836 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3837 * config/i386/tm-symmetry.h: Update.
3838 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3839 * x86-64-tdep.c (x86_64_init_abi): Update.
3840 * v850-tdep.c (v850_gdbarch_init): Update.
3841 * sparc-tdep.c (sparc_gdbarch_init): Update.
3842 * sh-tdep.c (sh_gdbarch_init): Update.
3843 * s390-tdep.c (s390_gdbarch_init): Update.
3844 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3845 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3846 * mips-tdep.c (mips_gdbarch_init): Update.
3847 * mcore-tdep.c (mcore_gdbarch_init): Update.
3848 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3849 * ia64-tdep.c (ia64_gdbarch_init): Update.
3850 * i386-tdep.c (i386_gdbarch_init): Update.
3851 * hppa-tdep.c (hppa_gdbarch_init): Update.
3852 * h8300-tdep.c (h8300_gdbarch_init): Update.
3853 * frv-tdep.c (frv_gdbarch_init): Update.
3854 * d10v-tdep.c (d10v_gdbarch_init): Update.
3855 * cris-tdep.c (cris_gdbarch_init): Update.
3856 * avr-tdep.c (avr_gdbarch_init): Update.
3857 * arm-tdep.c (arm_gdbarch_init): Update.
3858 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3859 * alpha-tdep.c (alpha_gdbarch_init): Update.
3860
f541410f
DJ
38612003-03-26 Daniel Jacobowitz <drow@mvista.com>
3862
3863 * signals/signals.c (do_target_signal_to_host): Correct realtime
3864 signal range test.
3865
69f567ae
DJ
38662003-03-26 Daniel Jacobowitz <drow@mvista.com>
3867
3868 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
3869 (struct sal_chain, map_catch_names): Remove.
3870 (catch_exception_command_1): Don't call
3871 handle_gnu_4_16_catch_command.
3872
d5d14a5a
DJ
38732003-03-26 Daniel Jacobowitz <drow@mvista.com>
3874
3875 From Mark Dettinger <dettinge@de.ibm.com>:
3876 * dwarf2cfi.c (read_2u): Increment pointer by two.
3877
bdd73e22
DJ
38782003-03-26 Daniel Jacobowitz <drow@mvista.com>
3879
3880 * signals/signals.c: Fix typos in last change.
3881
960cb555
DJ
38822003-03-26 Daniel Jacobowitz <drow@mvista.com>
3883
3884 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
3885 not already defined. Use __SIGRTMIN if available.
3886 (target_signal_from_host): Remove SIGRTMIN block.
3887 (do_target_signal_to_host): Remove SIGRTMIN block; check that
3888 the signal is within the realtime range.
3889
f636b87d
AF
38902003-03-25 Adam Fedor <fedor@gnu.org>
3891
3892 * Makefile.in (infrun.o): Add $(language_h)
3893 * infrun.c (handle_inferior_event): Use skip_language_trampoline
3894 for language specific trampolines.
3895 * language.h (struct language_defn): Add skip_trampoline.
3896 (skip_language_trampoline): Declare.
3897 * language.c (unk_lang_trampoline, skip_language_trampoline):
3898 New functions.
3899 (unknown_language_defn, auto_language_defn, local_language_defn):
3900 Add ukn_lang_trampoline.
3901 * ada-lang.c (ada_language_defn): Add NULL for language
3902 specific skip_trampoline.
3903 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
3904 scm-lang.c: Likewise.
3905 * objc-lang.c (objc_skip_trampoline): New function.
3906 (objc_language_defn): Add objc_skip_trampoline.
3907
28f617b3 39082003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
3909
3910 * frame.c (get_prev_frame): Delay validating a frame's ID -
3911 non-NULL, didn't go backwards - until an attempt to unwind it to
3912 the previous frame.
3913
f933a9c5
AC
39142003-03-25 Andrew Cagney <cagney@redhat.com>
3915
3916 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
3917 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
3918 * gdbarch.h, gdbarch.c: Re-generate.
3919 * config/sparc/tm-sparc.h
3920 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
3921 * sparc-tdep.c (sparc_gdbarch_init): Set
3922 deprecated_extra_stack_alignment_needed.
3923 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
3924 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
3925 extra_stack_alignment_needed.
3926 * v850-tdep.c (v850_gdbarch_init): Ditto.
3927 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3928 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3929 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3930 * cris-tdep.c (cris_gdbarch_init): Ditto.
3931 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3932 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3933
4183d812
AC
39342003-03-25 Andrew Cagney <cagney@redhat.com>
3935
3936 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
3937 STORE_STRUCT_RETURN.
3938 * gdbarch.h, gdbarch.c: Regenerate.
3939 * d10v-tdep.c (d10v_store_struct_return): Delete function.
3940 (d10v_push_arguments): Set the struct return register.
3941 (d10v_gdbarch_init): Update.
3942 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3943 * x86-64-tdep.c (x86_64_init_abi): Update.
3944 * vax-tdep.c (vax_gdbarch_init): Update.
3945 * v850-tdep.c (v850_gdbarch_init): Update.
3946 * sparc-tdep.c (sparc_gdbarch_init): Update.
3947 * sh-tdep.c (sh_gdbarch_init): Update.
3948 * s390-tdep.c (s390_gdbarch_init): Update.
3949 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3950 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3951 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3952 * mips-tdep.c (mips_gdbarch_init): Update.
3953 * mcore-tdep.c (mcore_gdbarch_init): Update.
3954 * m68k-tdep.c (m68k_gdbarch_init): Update.
3955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3956 * ia64-tdep.c (ia64_gdbarch_init): Update.
3957 * i386-tdep.c (i386_gdbarch_init): Update.
3958 * hppa-tdep.c (hppa_gdbarch_init): Update.
3959 * h8300-tdep.c (h8300_gdbarch_init): Update.
3960 * frv-tdep.c (frv_gdbarch_init): Update.
3961 * cris-tdep.c (cris_gdbarch_init): Update.
3962 * avr-tdep.c (avr_gdbarch_init): Update.
3963 * arm-tdep.c (arm_gdbarch_init): Update.
3964 * alpha-tdep.c (alpha_gdbarch_init): Update.
3965
1bf6d5cc
AC
39662003-03-25 Andrew Cagney <cagney@redhat.com>
3967
3968 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
3969 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
3970 CALL_DUMMY_STACK_ADJUST with a predicate variable.
3971 * gdbarch.h, gdbarch.c: Regenerate.
3972 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3973 call_dummy_stack_adjust_p.
3974 * vax-tdep.c (vax_gdbarch_init): Ditto.
3975 * v850-tdep.c (v850_gdbarch_init): Ditto.
3976 * sh-tdep.c (sh_gdbarch_init): Ditto.
3977 * s390-tdep.c (s390_gdbarch_init): Ditto.
3978 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3979 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3980 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3981 * mips-tdep.c (mips_gdbarch_init): Ditto.
3982 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3983 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3984 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3985 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3986 * i386-tdep.c (i386_gdbarch_init): Ditto.
3987 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3988 * frv-tdep.c (frv_gdbarch_init): Ditto.
3989 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3990 * cris-tdep.c (cris_gdbarch_init): Ditto.
3991 * avr-tdep.c (avr_gdbarch_init): Ditto.
3992 * arm-tdep.c (arm_gdbarch_init): Ditto.
3993 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3994 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3995 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
3996 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3997 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
3998 call_dummy_stack_adjust_p.
3999 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
4000 (CALL_DUMMY_STACK_ADJUST): Delete macro.
4001 * sparc-tdep.c (sparc32_push_arguments): Update.
4002 * valops.c (hand_function_call): Update.
4003
71c08af0
CV
40042003-03-25 Corinna Vinschen <vinschen@redhat.com>
4005
4006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
4007 set_gdbarch_char_signed.
4008
30757f90
RE
40092003-03-25 Richard Earnshaw <rearnsha@arm.com>
4010
4011 PR cli/548
4012 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
4013
03d48a7d
RE
40142003-03-25 Richard Earnshaw <rearnsha@arm.com>
4015
4016 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
4017 (_initialize_arm_tdep): Don't set tm_print_insn.
4018
2cf6873c
AF
40192003-03-24 Adam Fedor <fedor@gnu.org>
4020
4021 * Makefile.in (YYOBJ): Add objc-exp.tab.o
4022 * objc-lang.h: Add multiple inclusion protection.
4023 (start_msglist, add_msglist, end_msglist): Additional declarations.
4024
17c0759e
RE
40252003-03-24 Richard Earnshaw <rearnsha@arm.com>
4026
4027 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
4028 value was renamed to ARM_FLOAT_SOFT_FPA.
4029
618ce49f
AC
40302003-03-23 Andrew Cagney <cagney@redhat.com>
4031
4032 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
4033 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
4034 * gdbarch.h, gdbarch.c: Regenerate.
4035 * valops.c (hand_function_call): Update.
4036 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
4037 * frame.c (legacy_saved_regs_this_id): Update.
4038 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
4039 * dummy-frame.h: Update.
4040 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
4041 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
4042 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
4043 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
4044 * config/m68k/tm-sun3.h: Update.
4045 * blockframe.c (inside_main_func, frame_chain_valid): Update.
4046 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4047 * x86-64-tdep.c (x86_64_init_abi): Update.
4048 * vax-tdep.c (vax_gdbarch_init): Update.
4049 * v850-tdep.c (v850_gdbarch_init): Update.
4050 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
4051 * sh-tdep.c (sh_gdbarch_init): Update.
4052 * s390-tdep.c (s390_gdbarch_init): Update.
4053 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4054 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
4055 (frame_get_saved_regs): Update.
4056 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4057 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4058 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4059 * mips-tdep.c (mips_gdbarch_init): Update.
4060 * mcore-tdep.c (mcore_gdbarch_init): Update.
4061 * m68k-tdep.c (m68k_gdbarch_init): Update.
4062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4063 * ia64-tdep.c (ia64_gdbarch_init): Update.
4064 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
4065 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4066 (i386_interix_back_one_frame): Update.
4067 * hppa-tdep.c (hppa_gdbarch_init): Update.
4068 (hppa_init_extra_frame_info): Update.
4069 * h8300-tdep.c (h8300_gdbarch_init): Update.
4070 * frv-tdep.c (frv_gdbarch_init): Update.
4071 * cris-tdep.c (cris_gdbarch_init): Update.
4072 * avr-tdep.c (avr_gdbarch_init): Update.
4073 * arm-tdep.c (arm_gdbarch_init): Update.
4074 * alpha-tdep.c (alpha_gdbarch_init): Update.
4075
fd50bc42
RE
40762003-03-22 Richard Earnshaw <rearnsha@arm.com>
4077
4078 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
4079 (arm_get_fp_model): Declare.
4080 * arm-tdep.c (fp_model_strings): New string array.
4081 (arm_fp_model, current_fp_model): New variables.
4082 (arm_get_fp_model): New function.
4083 (arm_set_fp): New function.
4084 (set_fp_model_sfunc): New function.
4085 (show_fp_model): New function.
4086 (_initialize_arm_tdep): Add new command to set/show the FPU.
4087 (arm_extract_return_value): Use arm_get_fp_model.
4088 (arm_store_return_value): Likewise.
4089 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
4090 to initialize the floating-point data types.
4091 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
4092 model is FPA.
4093
26304000
RE
40942003-03-22 Richard Earnshaw <rearnsha@arm.com>
4095
4096 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
4097 the current setting of each value.
4098 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
4099 new_set and new_show. Use add_setshow_cmd_full and
4100 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
4101 commands and add new version as subcommands of "set/show arm".
4102
afd7eef0
RE
41032003-03-22 Richard Earnshaw <rearnsha@arm.com>
4104
4105 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
4106 (set_arm_command, show_arm_command): New functions.
4107 (_initialize_arm_tdep): Add them.
4108 (num_disassembly_options): Renamed from num_flavor_options.
4109 (valid_disassembly_styles): Renamed from valid_flavors.
4110 (disassembly_style): Renamed from disassembly_flavor.
4111 (set_disassembly_style_sfunc): Renamed from
4112 set_disassembly_flavor_sfunc.
4113 (set_disassembly_style): Renamed from set_disassembly_flavor.
4114 (arm_othernames): Updated.
4115 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
4116 command. Add "set/show arm disassembly" commands. Deprecate
4117 "othernames" command.
4118
299a7944
RE
41192003-03-22 Richard Earnshaw <rearnsha@arm.com>
4120
4121 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
4122 (arm-tdep.o): Depend on elf_arm_h.
4123
c1dac9e6
RE
41242003-03-22 Richard Earnshaw <rearnsha@arm.com>
4125
4126 * Makefile.in (coff_internal_h): Define.
4127 (arm-tdep.o): Update dependencies.
4128
2702d96c
RE
41292003-03-22 Richard Earnshaw <rearnsha@arm.com>
4130
4131 * arm-tdep.c (prologue_cache): Delete.
4132 (check_prologue_cache, save_prologue_cache): Delete.
4133 (arm_scan_prologue): Don't check or update the prologue_cache.
4134 (arm_gdb_arch_init): Don't initialize it.
4135 (_initialize_arm_tdep): Likewise.
4136
27d5d74b
SC
41372003-03-21 Stephane Carrez <stcarrez@nerim.fr>
4138
4139 * MAINTAINERS (tui): Maintainer of tui code.
4140
1762d96d
CV
41412003-03-21 Corinna Vinschen <vinschen@redhat.com>
4142
4143 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
4144 (i386-cygwin-tdep.o): Add dependencies.
4145 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
4146 * i386-cygwin-tdep.c: New file.
4147 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
4148 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
4149
4c2e2391
AC
41502003-03-20 Andrew Cagney <cagney@redhat.com>
4151
f20d38b7
AC
4152 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
4153 (handle_inferior_event): Remove code calling
4154 DYNAMIC_TRAMPOLINE_NEXTPC.
4155
0022b738
AC
4156 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
4157 already has a full path.
4158
864dbc90
AC
4159 * main.c (gdb_main): Return 1.
4160 (captured_main): Call error to report an invalid interpreter.
4161
4c2e2391
AC
4162 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4163 * alpha-osf1-tdep.c: Include "gdb_string.h".
4164
5ef7553b
JB
41652003-03-19 J. Brobecker <brobecker@gnat.com>
4166
4167 Continuing work to convert the hppa targets to multiarch partial.
4168
4169 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
4170 method, now that hppa_push_dummy_frame has a conformant prototype.
4171 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
4172 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
4173 for the switch to multiarch partial.
4174
7bde8967
KB
41752003-03-19 Kevin Buettner <kevinb@redhat.com>
4176
4177 * mdebugread.c (parse_symbol): For stEnd, we're done counting
4178 when iss is issNull.
4179
b006a9e9
KB
41802003-03-18 Kevin Buettner <kevinb@redhat.com>
4181
4182 * mips-tdep.c (mips_register_name): Fix fencepost error involving
4183 NUM_REGS bounds check.
4184
5e2e9765
KB
41852003-03-18 Kevin Buettner <kevinb@redhat.com>
4186
4187 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
4188 * mips-tdep.c (gdb_assert.h): Include.
4189 (mips_generic_reg_names, mips_processor_reg_names): Make static.
4190 (mips_register_name): Handle integer registers explicitly. Add
4191 bounds checking.
4192 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
4193 (mips_lsi33k_reg_names): Don't list integer registers; they're
4194 handled by mips_register_name() now.
4195 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
4196 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
4197 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
4198 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
4199 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
4200
a2867626
AC
42012003-03-18 Andrew Cagney <cagney@redhat.com>
4202
4203 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
4204 a void pointer.
4205 * gdbtypes.h (print_scalar_formatted): Update declaration.
4206 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
4207
06600e06
JB
42082003-03-18 J. Brobecker <brobecker@gnat.com>
4209
4210 * infrun.c (observer.h): Add #include.
4211 (normal_stop): Add call to observer_notify_normal_stop.
4212 * Makefile.in (infrun.o): Add dependency on observer.h.
4213
7daf4f5b
JB
42142003-03-18 J. Brobecker <brobecker@gnat.com>
4215
4216 Continuing work to convert the hppa targets to multiarch partial.
4217 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
4218 parameter. Reformat comment.
4219 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
4220 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
4221 to match new profile.
4222
3371ccc0
JB
42232003-03-18 J. Brobecker <brobecker@gnat.com>
4224
4225 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
4226 appear to be working in any case.
4227
4fbe891e
JB
42282003-03-18 J. Brobecker <brobecker@gnat.com>
4229
4230 * observer.c (observer_test_first_observer): New static variable.
4231 (observer_test_second_observer): Likewise.
4232 (observer_test_third_observer): Likewise.
4233 (observer_test_first_notification_function): New static function.
4234 (observer_test_second_notification_function): Likewise.
4235 (observer_test_third_notification_function): Likewise.
4236
a7ff40e7
JB
42372003-03-17 J. Brobecker <brobecker@gnat.com>
4238
4239 * hppa-tdep.c (gdb_assert.h): Add missing #include.
4240 * somsolib.c (gdb_assert.h): Likewise.
4241 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
4242 (somsolib.o): Likewise.
4243
26ca4152
AC
42442003-03-17 Andrew Cagney <cagney@redhat.com>
4245
4246 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
4247 BFD. Simplify setting of di.endian.
4248
0a613259
AC
42492003-03-17 Andrew Cagney <cagney@redhat.com>
4250
4251 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
4252 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
4253
4254 From Elena Zannoni <ezannoni@redhat.com>
4255 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
4256 vector and floating-point parameters.
4257 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
4258 convention.
4259 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
4260
1132738f
FN
42612003-03-17 Fernando Nasser <fnasser@redhat.com>
4262
4263 * MAINTAINERS: Remove my name from several maintainership roles.
4264
6dc42492
AC
42652003-03-17 Andrew Cagney <cagney@redhat.com>
4266
4267 Fix frame off-by-one bug.
4268 * frame-unwind.h (frame_this_id_ftype): Replace
4269 frame_unwind_id_ftype.
4270 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
4271 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
4272 with "prev_register".
4273 * frame-unwind.c (frame_unwind_find_by_pc): Return
4274 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
4275 comment.
4276 * dummy-frame.c (cached_find_dummy_frame): Delete function.
4277 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
4278 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
4279 (dummy_frame_unwind): Update.
4280 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4281 sentinel_frame_register_unwind.
4282 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
4283 (sentinel_frame_unwinder): Update.
4284 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
4285 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
4286 * frame.c (create_sentinel_frame): Update. Initialize
4287 "prologue_cache" instead of "unwind_cache".
4288 (frame_register_unwind): Call this frame's prev_register with the
4289 next frame and this frame's prologue cache.
4290 (get_prev_frame): Simplify. Always call prev frame's this_id with
4291 this frame and prev frame's prologue cache. Document that this
4292 call is shifted one to the left when compared to the
4293 frame_register_unwind call.
4294 (legacy_saved_regs_prev_register): Replace
4295 frame_saved_regs_register_unwind.
4296 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
4297 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
4298 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
4299 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
4300 (d10v_frame_unwind): Update.
4301 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
4302 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
4303 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
4304 "saved_regs" with "this_saved_regs".
4305
efd710d6
AC
43062003-03-16 Andrew Cagney <cagney@redhat.com>
4307
4308 * frame.c (frame_pop): Don't call target_store_registers. Fix
4309 problem reported by Mark Kettenis.
4310
4e259f09
MK
43112003-03-16 Mark Kettenis <kettenis@gnu.org>
4312
4313 * i386-tdep.c (i386_register_type): Renamed from
4314 i386_register_virtual_type. Adjust function signature.
4315 (i386_gdbarch_init): Set register_type instead of
4316 deprecated_max_register_raw_size,
4317 deprecated_max_register_virtual_size and register_virtual_type.
4318
055bb976
AC
43192003-03-14 Andrew Cagney <cagney@redhat.com>
4320
4321 * frame.c (get_prev_frame): When a legacy frame, always call
4322 legacy_get_prev_frame. Simplify unwind code using assumption that
4323 the unwinder is new.
4324 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
4325 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
4326 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
4327
ac2adee5
AC
43282003-03-14 Andrew Cagney <cagney@redhat.com>
4329
4330 * frame.c (get_saved_register): Delete function.
4331 * frame.h (get_saved_register): Delete declaration.
4332 * xstormy16-tdep.c: Update comment.
4333 * regcache.h: Update comments.
4334 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
4335 get_saved_register and extract_address, use
4336 frame_read_unsigned_register.
4337 (sparc_frame_saved_pc): Ditto.
4338 (sparc_get_saved_register): Instead of get_saved_register, use
4339 frame_register.
4340 (sparc_pop_frame): Ditto.
4341 * findvar.c: Update comments.
4342 (value_of_register): Call frame_register instead of
4343 get_saved_register.
4344 (value_from_register): Ditto.
4345 * config/sparc/tm-sparc.h: Update comment.
4346 * breakpoint.c: Update comment.
4347
129c1cd6
AC
43482003-03-14 Andrew Cagney <cagney@redhat.com>
4349
4350 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
4351 GET_SAVED_REGISTER.
4352 * gdbarch.h, gdbarch.c: Re-generate.
4353 * frame.h: Update comments.
4354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4355 * x86-64-tdep.c (x86_64_init_abi): Update.
4356 * sparc-tdep.c (sparc_gdbarch_init): Update.
4357 * sh-tdep.c (sh_gdbarch_init): Update.
4358 * mips-tdep.c (mips_gdbarch_init): Update.
4359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4360 * cris-tdep.c (cris_gdbarch_init): Update.
4361 * ia64-tdep.c (ia64_gdbarch_init): Update.
4362 * frame.c (frame_register): Update.
4363 (get_saved_register): Update.
4364 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
4365
749b82f6
AC
43662003-03-13 Andrew Cagney <cagney@redhat.com>
4367
4368 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
4369 * gdbarch.h, gdbarch.c: Regenerate.
4370 * valops.c (hand_function_call): Update comment.
4371 * stack.c (return_command): Update comment.
4372 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
4373 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
4374 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4375 * x86-64-tdep.c (x86_64_init_abi): Update.
4376 * vax-tdep.c (vax_gdbarch_init): Update.
4377 * v850-tdep.c (v850_gdbarch_init): Update.
4378 * sparc-tdep.c (sparc_gdbarch_init): Update.
4379 * sh-tdep.c (sh_gdbarch_init): Update.
4380 * s390-tdep.c (s390_gdbarch_init): Update.
4381 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4382 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4383 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4384 * mips-tdep.c (mips_gdbarch_init): Update.
4385 * mcore-tdep.c (mcore_gdbarch_init): Update.
4386 * m68k-tdep.c (m68k_gdbarch_init): Update.
4387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4388 * ia64-tdep.c (ia64_gdbarch_init): Update.
4389 * i386-tdep.c (i386_gdbarch_init): Update.
4390 * hppa-tdep.c (hppa_gdbarch_init): Update.
4391 * h8300-tdep.c (h8300_gdbarch_init): Update.
4392 * frv-tdep.c (frv_gdbarch_init): Update.
4393 * cris-tdep.c (cris_gdbarch_init): Update.
4394 * avr-tdep.c (avr_gdbarch_init): Update.
4395 * arm-tdep.c (arm_gdbarch_init): Update.
4396 * alpha-tdep.c (alpha_gdbarch_init): Update.
4397
1594fa56
AC
43982003-03-13 Andrew Cagney <cagney@redhat.com>
4399
4400 * frame.c (legacy_frame_p): New function.
4401 (get_prev_frame): Use legacy_frame_p.
4402 * frame.h (legacy_frame_p): Declare.
4403
7717fda3
V
44042003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
4405
fbe586ae 4406 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
4407 listing corrected.
4408
0c67cbe9
V
44092003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
4410
fbe586ae 4411 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 4412
03febf99
AC
44132003-03-12 Andrew Cagney <cagney@redhat.com>
4414
4415 * frame.c (get_prev_frame): Rename the frame parameter to
4416 "this_frame".
4417 (get_next_frame, legacy_get_prev_frame): Ditto.
4418
0a1e1ca1
AC
44192003-03-12 Andrew Cagney <cagney@redhat.com>
4420
4421 * frame.c (get_current_frame): Check target_has_registers before
4422 checking target_has_stack.
4423 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
4424 instead of deprecated_selected_frame.
4425 * findvar.c (value_of_register): Pass "frame", not
4426 deprecated_selected_frame, to value_of_builtin_reg.
4427
a66a9c23
AC
44282003-03-12 Andrew Cagney <cagney@redhat.com>
4429
4430 * regcache.c (regcache_cooked_write_signed): New function.
4431 (regcache_cooked_write_unsigned): New function.
4432 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
4433 (regcache_cooked_read_signed): Fix regnum in range assertion.
4434 * regcache.h (regcache_cooked_write_signed): Declare.
4435 (regcache_cooked_write_unsigned): Declare.
4436
8bedc050
AC
44372003-03-12 Andrew Cagney <cagney@redhat.com>
4438
4439 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
4440 * gdbarch.h, gdbarch.c: Re-generate.
4441 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4442 * x86-64-tdep.h: Update.
4443 * x86-64-tdep.c (x86_64_init_abi): Update.
4444 * v850-tdep.c (v850_gdbarch_init): Update.
4445 * sparc-tdep.c (sparc_gdbarch_init): Update.
4446 * sh-tdep.c (sh_gdbarch_init): Update.
4447 * s390-tdep.c (s390_gdbarch_init): Update.
4448 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4449 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4450 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4451 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4452 * mips-tdep.c (mips_gdbarch_init): Update.
4453 * mcore-tdep.c (mcore_gdbarch_init): Update.
4454 * m68k-tdep.c (m68k_gdbarch_init): Update.
4455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4456 * ia64-tdep.c (ia64_gdbarch_init): Update.
4457 * i386-tdep.c (i386_gdbarch_init): Update.
4458 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4459 * hppa-tdep.c (hppa_gdbarch_init): Update.
4460 * h8300-tdep.c (h8300_gdbarch_init): Update.
4461 * frv-tdep.c (frv_gdbarch_init): Update.
4462 * cris-tdep.c (cris_gdbarch_init): Update.
4463 * avr-tdep.c (avr_gdbarch_init): Update.
4464 * arm-tdep.c (arm_gdbarch_init): Update.
4465 * alpha-tdep.c (alpha_gdbarch_init): Update.
4466 * sh-tdep.c (sh_init_extra_frame_info): Update.
4467 (sh64_init_extra_frame_info): Update.
4468 * ns32knbsd-nat.c (frame_num_args): Update.
4469 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
4470 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
4471 (xstormy16_frame_chain_valid): Update.
4472 * vax-tdep.c (vax_saved_pc_after_call): Update.
4473 * v850-tdep.c (v850_frame_chain): Update.
4474 (v850_pop_frame): Update.
4475 (v850_init_extra_frame_info): Update.
4476 * sparc-tdep.c (setup_arbitrary_frame): Update.
4477 * ns32k-tdep.c (umax_frame_num_args): Update.
4478 * s390-tdep.c (s390_pop_frame_regular): Update.
4479 * mn10300-tdep.c (mn10300_frame_chain): Update.
4480 (mn10300_pop_frame_regular): Update.
4481 (mn10300_init_extra_frame_info): Update.
4482 * mips-tdep.c (mips_init_frame_pc_first): Update.
4483 (mips_frame_chain): Update.
4484 (mips_pop_frame): Update.
4485 * mcore-tdep.c (mcore_frame_chain): Update.
4486 (mcore_pop_frame): Update.
4487 (mcore_init_extra_frame_info): Update.
4488 * arch-utils.c (init_frame_pc_default): Update.
4489 * m68k-tdep.c (isi_frame_num_args): Update.
4490 (delta68_frame_num_args): Update.
4491 (news_frame_num_args): Update.
4492 * ia64-tdep.c (ia64_pop_frame_regular): Update.
4493 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4494 (alpha_frame_chain): Update.
4495 (alpha_pop_frame): Update.
4496 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
4497 (hppa_init_extra_frame_info): Update.
4498 (hppa_frame_chain): Update.
4499 (hppa_frame_chain_valid): Update.
4500 * cris-tdep.c (cris_init_extra_frame_info): Update.
4501 * avr-tdep.c (avr_init_extra_frame_info): Update.
4502 * arm-tdep.c (arm_frame_chain_valid): Update.
4503 (arm_init_extra_frame_info): Update.
4504 (arm_pop_frame): Update.
4505 * frame.c (frame_pc_unwind): Update.
4506 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
4507 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4508 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4509 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
4510 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
4511 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
4512
7a25a7c1
AC
45132003-03-12 Andrew Cagney <cagney@redhat.com>
4514
4515 Eliminate the need for POP_FRAME.
4516 * frame.c (do_frame_unwind_register): New function.
4517 (frame_pop): When no POP_FRAME, pop the frame using register
4518 unwind and a scratch regcache.
4519 (frame_saved_regs_pop): Delete function.
4520 (trad_frame_unwinder): Update.
4521 * d10v-tdep.c (d10v_frame_pop): Delete function.
4522 (d10v_frame_unwind): Update.
4523 * sentinel-frame.c (sentinel_frame_pop): Delete function.
4524 (sentinel_frame_unwinder): Update.
4525 * dummy-frame.c (dummy_frame_pop): Delete function.
4526 (dummy_frame_unwind): Update.
4527 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
4528 (struct frame_unwind): Update.
4529
2f38ef89
KB
45302003-03-11 Kevin Buettner <kevinb@redhat.com>
4531
4532 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
4533 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
4534 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
4535 Do range checks on register number obtained from debugging info.
4536 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
4537 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
4538 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
4539 mapping function.
4540 (do_fp_register_row): Fix typo which caused double type to be
4541 used when attempting to unpack a float.
4542
552f4abf
JB
45432003-03-11 J. Brobecker <brobecker@gnat.com>
4544
4545 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
4546
e0d2ae16
AC
45472003-03-11 Andrew Cagney <cagney@redhat.com>
4548
4549 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
4550 frame. Problem found by Corinna Vinschen.
4551
ddbfdd06
PM
45522003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
4553
4554 * doublest.c (floatformat_from_length): Accept also
4555 the real size of 'long double' type.
4556
088b2ddc 45572003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 4558
088b2ddc 4559 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
4560 * breakpoint.c (bpstat_copy): Copy the command lines as well
4561 as the old value, to match what is freed in bpstat_clear.
4562
f56f77c1
DC
45632003-03-10 David Carlton <carlton@math.stanford.edu>
4564
4565 * minsyms.c (add_minsym_to_hash_table): Replace
4566 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4567 (compare_minimal_symbols, compact_minimal_symbols)
4568 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
4569 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
4570 of DEPRECATED_SYMBOL_MATCHES_NAME.
4571 (lookup_minimal_symbol_solib_trampoline): Ditto.
4572
5602984a
AC
45732003-03-10 Andrew Cagney <cagney@redhat.com>
4574
4575 * regcache.h (regcache_cooked_read_ftype): Define.
4576 (regcache_save, regcache_restore): Add a cooked_read parameter.
4577 * regcache.c (regcache_save, regcache_restore): Update.
4578 (do_cooked_read): New function.
4579 (regcache_cpy): Pass do_cooked_read to regcache_save and
4580 regcache_restore.
4581
8bedc050
AC
45822003-03-10 Andrew Cagney <cagney@redhat.com>
4583
4584 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
4585 * gdbarch.h, gdbarch.c: Re-generate.
4586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4587 * x86-64-tdep.h: Update.
4588 * x86-64-tdep.c (x86_64_init_abi): Update.
4589 * v850-tdep.c (v850_gdbarch_init): Update.
4590 * sparc-tdep.c (sparc_gdbarch_init): Update.
4591 * sh-tdep.c (sh_gdbarch_init): Update.
4592 * s390-tdep.c (s390_gdbarch_init): Update.
4593 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4594 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4595 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4596 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4597 * mips-tdep.c (mips_gdbarch_init): Update.
4598 * mcore-tdep.c (mcore_gdbarch_init): Update.
4599 * m68k-tdep.c (m68k_gdbarch_init): Update.
4600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4601 * ia64-tdep.c (ia64_gdbarch_init): Update.
4602 * i386-tdep.c (i386_gdbarch_init): Update.
4603 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4604 * hppa-tdep.c (hppa_gdbarch_init): Update.
4605 * h8300-tdep.c (h8300_gdbarch_init): Update.
4606 * frv-tdep.c (frv_gdbarch_init): Update.
4607 * cris-tdep.c (cris_gdbarch_init): Update.
4608 * avr-tdep.c (avr_gdbarch_init): Update.
4609 * arm-tdep.c (arm_gdbarch_init): Update.
4610 * alpha-tdep.c (alpha_gdbarch_init): Update.
4611 * sh-tdep.c (sh_init_extra_frame_info): Update.
4612 (sh64_init_extra_frame_info): Update.
4613 * ns32knbsd-nat.c (frame_num_args): Update.
4614 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
4615 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
4616 (xstormy16_frame_chain_valid): Update.
4617 * vax-tdep.c (vax_saved_pc_after_call): Update.
4618 * v850-tdep.c (v850_frame_chain): Update.
4619 (v850_pop_frame): Update.
4620 (v850_init_extra_frame_info): Update.
4621 * sparc-tdep.c (setup_arbitrary_frame): Update.
4622 * ns32k-tdep.c (umax_frame_num_args): Update.
4623 * s390-tdep.c (s390_pop_frame_regular): Update.
4624 * mn10300-tdep.c (mn10300_frame_chain): Update.
4625 (mn10300_pop_frame_regular): Update.
4626 (mn10300_init_extra_frame_info): Update.
4627 * mips-tdep.c (mips_init_frame_pc_first): Update.
4628 (mips_frame_chain): Update.
4629 (mips_pop_frame): Update.
4630 * mcore-tdep.c (mcore_frame_chain): Update.
4631 (mcore_pop_frame): Update.
4632 (mcore_init_extra_frame_info): Update.
4633 * arch-utils.c (init_frame_pc_default): Update.
4634 * m68k-tdep.c (isi_frame_num_args): Update.
4635 (delta68_frame_num_args): Update.
4636 (news_frame_num_args): Update.
4637 * ia64-tdep.c (ia64_pop_frame_regular): Update.
4638 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4639 (alpha_frame_chain): Update.
4640 (alpha_pop_frame): Update.
4641 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
4642 (hppa_init_extra_frame_info): Update.
4643 (hppa_frame_chain): Update.
4644 (hppa_frame_chain_valid): Update.
4645 * cris-tdep.c (cris_init_extra_frame_info): Update.
4646 * avr-tdep.c (avr_init_extra_frame_info): Update.
4647 * arm-tdep.c (arm_frame_chain_valid): Update.
4648 (arm_init_extra_frame_info): Update.
4649 (arm_pop_frame): Update.
4650 * frame.c (frame_pc_unwind): Update.
4651 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
4652 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4653 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4654 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
4655 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
4656 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
4657
12cc2063
AC
46582003-03-10 Andrew Cagney <cagney@redhat.com>
4659
4660 * gdbarch.sh (gdbarch_unwind_pc): New method.
4661 * gdbarch.h, gdbarch.c: Regenerate.
4662 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
4663 but use read_pc and FRAME_SAVED_PC as fall backs.
4664 (frame_saved_regs_pc_unwind): Delete function.
4665 (trad_frame_unwinder): Update.
4666 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
4667 (struct frame_unwind): Update.
4668 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
4669 (dummy_frame_unwind): Update.
4670 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
4671 (sentinel_frame_unwinder): Update.
4672 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
4673 (d10v_frame_unwind): Update.
4674 (d10v_unwind_pc): New function.
4675 (d10v_gdbarch_init): Set unwind_pc.
4676
ef840a37
AC
46772003-03-10 Andrew Cagney <cagney@redhat.com>
4678
a2ce2e56
AC
4679 * gdbarch.h: Re-generate.
4680
ef840a37
AC
4681 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
4682 PC.
4683 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
4684 the PC register.
4685
08f3424b
MK
46862003-03-08 Mark Kettenis <kettenis@gnu.org>
4687
4688 * gdbarch.sh (save_dummy_frame_tos): Add comment.
4689
1248ede2
AC
46902003-03-08 Andrew Cagney <cagney@redhat.com>
4691
4692 * cli-out.c: Update copyright.
4693 (cli_out_data): Define typedef. Use instead of ui_out_data.
4694
f49bacc8
AC
46952003-03-08 Andrew Cagney <cagney@redhat.com>
4696
4697 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
4698 the result.
4699
9b05f993
AC
47002003-03-07 Andrew Cagney <cagney@redhat.com>
4701
4702 * gdbarch.sh: Don't generate two macro definitions when an
4703 undefined macro taking no arguments.
4704 * gdbarch.h: Regenerate.
4705
166f4c7b
ML
47062002-03-07 Michal Ludvig <mludvig@suse.cz>
4707
4708 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
4709 (x86_64_unwind_dummy_id): New functions.
4710 (x86_64_init_abi): Register these two new functions.
4711
6d686a84
ML
47122003-03-07 Michal Ludvig <mludvig@suse.cz>
4713
4714 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
4715 (x86_64_skip_prologue): Move prologue detection to
4716 separate function.
4717 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
4718
6314f104
AC
47192003-03-05 Andrew Cagney <cagney@redhat.com>
4720
4721 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
4722 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
4723 * frame.c (get_prev_frame): Restructure the frame ID unwind code
4724 to use unwind_dummy_id when a dummy frame.
4725 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
4726 predicate.
4727 * gdbarch.h, gdbarch.c: Regneerate.
4728
ceea5145
AC
47292003-03-05 Andrew Cagney <cagney@redhat.com>
4730
4731 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
4732 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
4733 Do not use d10v_read_sp or d10v_read_fp when obtaining register
4734 values.
4735
0d843116
AC
47362003-03-05 Andrew Cagney <cagney@redhat.com>
4737
4738 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
4739 (struct d10v_unwind_cache): Delete field "frameless". Replace
4740 "next_addr" with "sp_offset". Add "r11_offset".
4741 (d10v_frame_unwind_cache): Update.
4742 (prologue_find_regs): Update. When "mv r11, sp", save the
4743 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
4744 RN was saved in r11_offset.
4745
b2579786
AC
47462003-03-05 Andrew Cagney <cagney@redhat.com>
4747
4748 * frame.c (deprecated_update_frame_pc_hack): Also update the the
4749 cached PC value in the next frame.
4750
218e5956
AC
47512003-03-05 Andrew Cagney <cagney@redhat.com>
4752
4753 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
4754 "id_unwind_cache" with "id".
4755 (frame_id_unwind): Delete declaration.
4756 * frame.c (frame_id_unwind): Delete function.
4757 (get_prev_frame): Call the frame id unwind method directly. Store
4758 the returned next frame's ID value in NEXT_FRAME. Note that there
4759 is a problem with the wrong unwind ID being called with the wrong
4760 unwind cache.
4761
ed363b1b
DJ
47622003-03-05 Daniel Jacobowitz <drow@mvista.com>
4763
4764 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
4765
fe1f4a5e
DJ
47662003-03-05 James Ingham <jingham@apple.com>
4767 Daniel Jacobowitz <drow@mvista.com>
4768
4769 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
4770 (auto_cp_abi): New variable.
4771 (current_cp_abi, num_cp_abis): Make static.
4772 (CP_ABI_MAX): Define.
4773 (cp_abis): Turn into an array.
4774 (value_virtual_fn_field): Fix formatting.
4775 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
4776 takes a pointer.
4777 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
4778 (list_cp_abis, _initialize_cp_abi): New functions.
4779 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
4780 declarations for cp_abis, num_cp_abis, current_cp_abi, and
4781 switch_to_cp_abi. Update prototype for register_cp_abi.
4782 * Makefile.in (cp-abi.o): Update dependencies.
4783 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
4784 instead of switch_to_cp_abi.
4785 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
4786 register_cp_abi.
4787 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
4788 register_cp_abi.
4789 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
4790
e4adbba9
DJ
47912003-03-05 Daniel Jacobowitz <drow@mvista.com>
4792
4793 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
4794 * dwarf2loc.c: Include "regcache.h".
4795 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
4796 register_size.
4797 * Makefile.in (dwarf2loc.o): Update dependencies.
4798
91ccbfc1
TR
47992003-03-04 Theodore A. Roth <troth@openavr.org>
4800
4801 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
4802 number of io registers reported by remote target is not a multiple of
4803 step.
4804
3d4e8fd2
DC
48052003-03-04 David Carlton <carlton@math.stanford.edu>
4806
4807 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
4808 (lookup_symbol_aux_psymtabs): Update call to
4809 lookup_partial_symbol.
4810 (lookup_transparent_type, find_main_psymtab)
4811 (make_symbol_overload_list): Ditto.
4812
ed42d87b
KH
48132003-03-04 Kazu Hirata <kazu@cs.umass.edu>
4814
4815 * MAINTAINERS (Write after approval): Update my email address.
4816
a0ed5532
AC
48172003-03-03 Andrew Cagney <cagney@redhat.com>
4818
4819 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
4820 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
4821 predicate. Replace MAX_REGISTER_RAW_SIZE.
4822 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
4823 MAX_REGISTER_VIRTUAL_SIZE.
4824 * regcache.c (legacy_max_register_raw_size): New function.
4825 (legacy_max_register_virtual_size): New function.
4826 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
4827 (MAX_REGISTER_RAW_SIZE): Define.
4828 (legacy_max_register_raw_size): Declare.
4829 (legacy_max_register_virtual_size): Declare.
4830 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4831 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
4832 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4833 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4834 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4835 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4836 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4837 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4838 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4839 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4840 * vax-tdep.c (vax_gdbarch_init): Update.
4841 * v850-tdep.c (v850_gdbarch_init): Update.
4842 * sparc-tdep.c (sparc_gdbarch_init): Update.
4843 * sh-tdep.c (sh_gdbarch_init): Update.
4844 * s390-tdep.c (s390_gdbarch_init): Update.
4845 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4846 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4847 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4848 * mips-tdep.c (mips_gdbarch_init): Update.
4849 * mcore-tdep.c (mcore_gdbarch_init): Update.
4850 * m68k-tdep.c (m68k_gdbarch_init): Update.
4851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4852 * ia64-tdep.c (ia64_gdbarch_init): Update.
4853 * i386-tdep.c (i386_gdbarch_init): Update.
4854 * hppa-tdep.c (hppa_gdbarch_init): Update.
4855 * h8300-tdep.c (h8300_gdbarch_init): Update.
4856 * frv-tdep.c (frv_gdbarch_init): Update.
4857 * cris-tdep.c (cris_gdbarch_init): Update.
4858 * avr-tdep.c (avr_gdbarch_init): Update.
4859 * arm-tdep.c (arm_gdbarch_init): Update.
4860 * alpha-tdep.c (alpha_gdbarch_init): Update.
4861 * d10v-tdep.c (d10v_gdbarch_init): Do not set
4862 max_register_raw_size or max_register_virtual_size.
4863
8e437497
DC
48642003-03-03 David Carlton <carlton@math.stanford.edu>
4865
4866 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
4867 SYMBOL_MATCHES_NAME, add comment.
4868 (SYMBOL_MATCHES_NATURAL_NAME): New.
4869 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
4870 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
4871 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
4872 * symtab.c (lookup_partial_symbol): Use
4873 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
4874 unhelpful comment.
4875 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
4876 SYMBOL_MATCHES_NAME.
4877 Fix for PR c++/33.
4878
25120b0d
DC
48792003-03-03 David Carlton <carlton@math.stanford.edu>
4880
4881 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
4882 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
4883 by regexp matching against SYMBOL_NATURAL_NAME.
4884
78a11fb4
DC
48852003-03-03 David Carlton <carlton@math.stanford.edu>
4886
4887 * linespec.c (find_method): Extract code into collect_methods.
4888 (collect_methods): New.
4889
645dd519
MK
48902003-03-02 Mark Kettenis <kettenis@gnu.org>
4891
b4700d91
MK
4892 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
4893 get_frame_base.
4894
645dd519
MK
4895 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
4896 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4897
0aa7e1aa
SC
48982003-03-02 Stephane Carrez <stcarrez@nerim.fr>
4899
4900 * arch-utils.c (generic_register_byte): Fix to use the loop index
4901 and not regnum when summing the size of all registers up to regnum.
4902
f30ee0bc
AC
49032003-03-01 Andrew Cagney <cagney@redhat.com>
4904
4905 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
4906 FRAME_INIT_SAVED_REGS.
4907 * gdbarch.h, gdbarch.c: Regenerate.
4908 * stack.c (frame_info): Update.
4909 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
4910 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
4911 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
4912 * ns32k-tdep.c (ns32k_pop_frame): Update.
4913 * mips-tdep.c (mips_pop_frame): Update.
4914 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
4915 * ia64-tdep.c (ia64_frame_chain): Update.
4916 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
4917 (ia64_frameless_function_invocation): Update.
4918 (ia64_init_extra_frame_info): Update.
4919 (ia64_pop_frame_regular): Update.
4920 * frame.h (struct frame_info): Update comment.
4921 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
4922 * frame.c (frame_saved_regs_register_unwind): Update.
4923 (frame_saved_regs_register_unwind): Update.
4924 (deprecated_generic_get_saved_register): Update.
4925 * cris-tdep.c: Update comment.
4926 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
4927 Rename macro.
4928 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4929 * x86-64-tdep.c (x86_64_init_abi): Update.
4930 * vax-tdep.c (vax_gdbarch_init): Update.
4931 * v850-tdep.c (v850_gdbarch_init): Update.
4932 * sparc-tdep.c (sparc_gdbarch_init): Update.
4933 * sh-tdep.c (sh_gdbarch_init): Update.
4934 * s390-tdep.c (s390_gdbarch_init): Update.
4935 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4936 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4937 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4938 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4939 * mips-tdep.c (mips_gdbarch_init): Update.
4940 * mcore-tdep.c (mcore_gdbarch_init): Update.
4941 * m68k-tdep.c (m68k_gdbarch_init): Update.
4942 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4943 * ia64-tdep.c (ia64_gdbarch_init): Update.
4944 * i386-tdep.c (i386_gdbarch_init): Update.
4945 * frv-tdep.c (frv_gdbarch_init): Update.
4946 * avr-tdep.c (avr_gdbarch_init): Update.
4947 * arm-tdep.c (arm_gdbarch_init): Update.
4948 * alpha-tdep.c (alpha_gdbarch_init): Update.
4949
42fa7c0f
AC
49502003-03-01 Andrew Cagney <cagney@redhat.com>
4951
4952 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
4953 option enum and switch. When no windows, set the interpreter to
4954 INTERP_CONSOLE.
4955
49c7e338
AC
49562003-03-01 Andrew Cagney <cagney@redhat.com>
4957
4958 * main.c (captured_main): Replace magic option characters with an
4959 enum.
4960
e9582e71
AC
49612003-03-01 Andrew Cagney <cagney@redhat.com>
4962
4963 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
4964 INIT_EXTRA_FRAME_INFO.
4965 * gdbarch.h, gdbarch.c: Regenerate.
4966 * arm-tdep.c: Update comments.
4967 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
4968 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
4969 * frame.h, avr-tdep.c: Ditto.
4970 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
4971 (create_new_frame, legacy_get_prev_frame): Ditto.
4972 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4973 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4974 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
4975 deprecated_init_extra_frame_info instead of init_extra_frame_info.
4976 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4977 * v850-tdep.c (v850_gdbarch_init): Ditto.
4978 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4979 * sh-tdep.c (sh_gdbarch_init): Ditto.
4980 * s390-tdep.c (s390_gdbarch_init): Ditto.
4981 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
4982 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4983 * mips-tdep.c (mips_gdbarch_init): Ditto.
4984 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4985 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4986 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4987 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
4988 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4989 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4990 * frv-tdep.c (frv_gdbarch_init): Ditto.
4991 * cris-tdep.c (cris_gdbarch_init): Ditto.
4992 * avr-tdep.c (avr_gdbarch_init): Ditto.
4993 * arm-tdep.c (arm_gdbarch_init): Ditto.
4994 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4995 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4996
35cac7cf
AC
49972003-03-01 Andrew Cagney <cagney@redhat.com>
4998
4999 * gdbarch.sh (register_type): New function with predicate.
5000 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
5001 * gdbarch.h, gdbarch.c: Re-generate.
5002 * arch-utils.c (generic_register_byte): Use generic_register_size.
5003 (generic_register_size): When available, use
5004 gdbarch_register_type.
5005 * regcache.c (init_regcache_descr): When available, initialize the
5006 register type array using gdbarch_register_type. If the
5007 architecture supplies gdbarch_register_type, do not use the legacy
5008 regcache layout.
5009 * d10v-tdep.c (d10v_register_type): Replace
5010 d10v_register_virtual_type.
5011 (d10v_gdbarch_init): Set register_type instead of
5012 register_virtual_type.
5013
7b83296f
AC
50142003-03-01 Andrew Cagney <cagney@redhat.com>
5015
5016 * Makefile.in (ax-gdb.o): Update dependencies.
5017 * ax-gdb.c: Include "regcache.h".
5018 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
5019 * findvar.c (value_of_register): Ditto.
5020 * infcmd.c (default_print_registers_info): Ditto.
5021
eadc1c87
MK
50222003-03-01 Mark Kettenis <kettenis@gnu.org>
5023
5024 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
5025 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5026
14143612
MK
50272003-03-01 Mark Kettenis <kettenis@gnu.org>
5028
5029 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
5030 of STREQ.
5031
a55cc764
DJ
50322003-02-28 Daniel Jacobowitz <drow@mvista.com>
5033
5034 * Makefile.in (dwarf2loc.o): Update dependencies.
5035 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
5036 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
5037 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
5038 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
5039 (locexpr_tracepoint_var_ref): New function.
5040 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
5041
08a617da
AC
50422003-02-28 Andrew Cagney <cagney@redhat.com>
5043
5044 * regcache.c (register_size): New function.
5045 * regcache.h (register_size): Declare
5046 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
5047 max_register_size instead of MAX_REGISTER_RAW_SIZE.
5048
4224873a
DC
50492003-02-28 David Carlton <carlton@math.stanford.edu>
5050
5051 * linespec.c (decode_compound): Extract code into find_method.
5052 (find_method): New.
5053
ccdc5d7f
JB
50542003-02-28 J. Brobecker <brobecker@gnat.com>
5055
5056 * Makefile.in: Add rules to build and link in observer.o.
5057
974e8ced
JB
50582003-02-27 J. Brobecker <brobecker@gnat.com>
5059
5060 * observer.c: Minor comments edits.
5061
7a28f973
JB
50622003-02-27 J. Brobecker <brobecker@gnat.com>
5063
5064 * observer.h, observer.c: New file.
5065
27cddce2
AC
50662003-02-27 Andrew Cagney <cagney@redhat.com>
5067
5068 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
5069
b94a41a1
SC
50702003-02-27 Stephane Carrez <stcarrez@nerim.fr>
5071
5072 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
5073 (M6812_OP_STS_EXT): Likewise.
5074 (m6811_prologue): Use the above to recognize prologue.
5075 (m6812_prologue): Likewise.
5076
c8be8951
DC
50772003-02-27 David Carlton <carlton@math.stanford.edu>
5078
5079 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
5080 SYMBOL_PRINT_NAME.
5081 (compare_psymbols): Ditto.
5082 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
5083
d05bb1fc
MS
50842003-02-27 Michael Snyder <msnyder@redhat.com>
5085
4e845cd3
MS
5086 * f-lang.c (build_fortran_types): New function.
5087 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
5088 * doublest.c (extract_floating): Fix warning text.
5089
f3824013
AC
50902003-02-27 Andrew Cagney <cagney@redhat.com>
5091
5092 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
5093 predicate. Replaces PUSH_DUMMY_FRAME.
5094 * gdbarch.h, gdbarch.c: Regnerate.
5095 * valops.c (hand_function_call): Update. Call
5096 generic_push_dummy_frame directly.
5097 * vax-tdep.c (vax_gdbarch_init): Update.
5098 * sparc-tdep.c (sparc_gdbarch_init): Update.
5099 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5100 * m68k-tdep.c (m68k_gdbarch_init): Update.
5101 * hppa-tdep.c (hppa_gdbarch_init): Update.
5102 * alpha-tdep.c (alpha_gdbarch_init): Update.
5103 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
5104 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
5105 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
5106 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
5107 push_dummy_frame to generic_push_dummy_frame.
5108 * v850-tdep.c (v850_gdbarch_init): Ditto.
5109 * sh-tdep.c (sh_gdbarch_init): Ditto.
5110 * s390-tdep.c (s390_gdbarch_init): Ditto.
5111 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5112 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5113 * mips-tdep.c (mips_gdbarch_init): Ditto.
5114 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5116 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5117 * i386-tdep.c (i386_gdbarch_init): Ditto.
5118 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5119 * frv-tdep.c (frv_gdbarch_init): Ditto.
5120 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5121 * cris-tdep.c (cris_gdbarch_init): Ditto.
5122 * avr-tdep.c (avr_gdbarch_init): Ditto.
5123 * arm-tdep.c (arm_gdbarch_init): Ditto.
5124
ad188201
KB
51252003-02-26 Kevin Buettner <kevinb@redhat.com>
5126
5127 * mips-tdep.c (show_mips_abi): New function.
5128 (_initialize_mips_tdep): Use show_mips_abi() to implement the
5129 command ``show mips abi''.
5130
6b37567a
JJ
51312003-02-26 Jeff Johnston <jjohnstn@redhat.com>
5132
5133 From Elena Zannoni <ezannoni@redhat.com>
5134 * dbxread.c (process_one_symbol): Only record line 0 if one or
5135 more sline entries have been seen for the function.
5136
d3e0a5bf
MC
51372003-02-26 Michael Chastain <mec@shout.net>
5138
5139 * configure: Regenerate with autoconf 000227.
5140
18972eea
MC
51412003-02-26 Michael Chastain <mec@shout.net>
5142
5143 Close PR build/660.
5144 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
5145 for old libc5/glibc.
5146 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
5147
0bbde931
KW
51482003-02-26 Kris Warkentin <kewarken@qnx.com>
5149
5150 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
5151 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
5152
27ca5dad
MC
51532003-02-26 Michael Chastain <mec@shout.net>
5154
5155 * configure.in: New variable HAVE_UINTPTR_T.
5156 * configure, config.in: Regenerated.
5157
6f88d630
DJ
51582003-02-26 Daniel Jacobowitz <drow@mvista.com>
5159
5160 Fix PR build/1097.
5161 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
5162
b14185ce
AC
51632003-02-25 Andrew Cagney <cagney@redhat.com>
5164
5165 * frame.c (get_prev_frame): Add comment on check for
5166 inside_entry_func. Only check for inside_entry_file when not a
5167 dummy and not a sentinel. Check that the new frame is not inner
5168 to the old frame.
5169
ac2bd0a9
AC
51702003-02-25 Andrew Cagney <cagney@redhat.com>
5171
5172 * frame.c (frame_debug): New variable.
5173 (_initialize_frame): Add "set/show debug frame" command.
5174 (get_prev_frame): When frame_debug, print reason why unwind
5175 failed.
5176
b18a0fd2
MC
51772003-02-25 Michael Chastain <mec@shout.net>
5178
5179 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
5180 to avoid uintptr_t definition problems.
5181
22abf04a
DC
51822003-02-25 David Carlton <carlton@math.stanford.edu>
5183
5184 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
5185 (SYMBOL_LINKAGE_NAME): Ditto.
5186 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
5187 SYMBOL_LINKAGE_NAME.
5188 (struct general_symbol_info): Expand comment.
5189 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
5190 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
5191 (SYMBOL_MATCHES_REGEXP): Ditto.
5192 * symtab.c (symbol_natural_name): New function.
5193 * objfiles.h: Replace all uses of SYMBOL_NAME by
5194 DEPRECATED_SYMBOL_NAME.
5195 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
5196 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
5197 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
5198 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
5199 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
5200 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
5201 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
5202 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
5203 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
5204 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
5205 * ada-exp.y: Ditto.
5206 * ada-exp.y: Update copyright.
5207 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
5208 * cp-valprint.c: Ditto.
5209
1a5848f6
JJ
52102003-02-25 Jeff Johnston <jjohnstn@redhat.com>
5211
5212 * infptrace.c (detach): Do not flag error if ptrace detach fails
5213 and errno is set to ESRCH.
5214
7343d46a
AC
52152003-02-24 Andrew Cagney <cagney@redhat.com>
5216
5217 * infptrace.c (udot_info): Change type of udot_off to long. Use
5218 paddr when printing udot_off's value.
5219
49fa1dc2
DC
52202003-02-24 David Carlton <carlton@math.stanford.edu>
5221
5222 * symtab.c (make_symbol_overload_list): Only read in partial
5223 symtabs containing a matching partial symbol.
5224
0fe19209
DC
52252003-02-24 David Carlton <carlton@math.stanford.edu>
5226
5227 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
5228 do the comparison, not strcmp.
5229 * symfile.c (compare_psymbols): Ditto.
5230 * defs.h: Declare strcmp_iw_ordered.
5231 * utils.c (strcmp_iw_ordered): New function.
5232
8e3ee7b5
JB
52332003-02-24 Jim Blandy <jimb@redhat.com>
5234
5235 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
5236 support, shared libs): Remove my name from here, to better reflect
5237 reality.
5238
7df1a324
KW
52392003-02-24 Kris Warkentin <kewarken@qnx.com>
5240
5241 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
5242 (target_ops): Add to_have_continuable_watchpoint.
5243 * target.c (update_current_target): Add INHERIT line for
5244 to_have_continuable_watchpoint.
5245 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
5246 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
5247 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
5248 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
5249
d1c76907
EZ
52502003-02-24 Elena Zannoni <ezannoni@redhat.com>
5251
5252 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
5253 maintainership.
5254
2610b0bf
KW
52552003-02-24 Kris Warkentin <kewarken@qnx.com>
5256
f46169db
KW
5257 * solib.c (solib_open): Call target defined search function after
5258 failing with solib-search-path.
5259 * solist.h (target_so_ops): Add find_and_open_solib function hook and
5260 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 5261
9a3c34fe
KW
52622003-02-24 Kris Warkentin <kewarken@qnx.com>
5263
f46169db 5264 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 5265
2417dd25
SC
52662003-02-23 Stephane Carrez <stcarrez@nerim.fr>
5267
5268 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
5269
b631436b
SC
52702003-02-22 Stephane Carrez <stcarrez@nerim.fr>
5271
5272 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
5273 (m68hc11_add_reggroups): New function.
5274 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
5275 (m68hc11_gdbarch_init): Install the reggroups.
5276 (_initialize_m68hc11_tdep): Initialize them.
5277
0aa8c1e4
JW
52782003-02-21 James E Wilson <wilson@tuliptree.org>
5279
5280 * MAINTAINERS: Update my email address.
5281
50ceaba5
DC
52822003-02-21 David Carlton <carlton@math.stanford.edu>
5283
5284 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
5285
4c2df51b
DJ
52862003-02-21 Daniel Jacobowitz <drow@mvista.com>
5287
5288 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
5289 * symtab.h: Add opaque declarations of struct axs_value and
5290 struct agent_expr.
5291 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
5292 (struct location_funcs): New type.
5293 (struct symbol): Add "loc" to aux_value.
5294 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
5295 * dwarf2read.c: Include "dwarf2expr.h".
5296 (dwarf2_symbol_mark_computed): New function.
5297 (read_func_scope): Use it.
5298 (var_decode_location): New function.
5299 (new_symbol): Use it.
5300 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
5301
5302 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
5303 (dwarf2expr_h, dwarf2loc_h): New variables.
5304 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
5305 (dwarf2expr.o, dwarf2loc.o): New rules.
5306 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
5307 * buildsym.c (finish_block): Handle LOC_COMPUTED and
5308 LOC_COMPUTED_ARG.
5309 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5310 * m2-exp.y (yylex): Likewise.
5311 * printcmd.c (address_info, print_frame_args): Likewise.
5312 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
5313 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5314 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
5315 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
5316 * symtab.c (lookup_block_symbol): Likewise.
5317
5784d15e
AF
53182003-02-20 Adam Fedor <fedor@gnu.org>
5319
5320 * symtab.h: Remove objc_specific struct
5321 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
5322 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
5323 Have language_objc use cplus_specific struct.
5324
d4cad8db
TT
53252003-02-20 Tom Tromey <tromey@redhat.com>
5326
5327 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
5328 TYPE_NAME, when printing a String value. PR java/1075.
5329
2f9a90b4
AF
53302003-02-20 Adam Fedor <fedor@gnu.org>
5331
d38074a8 5332 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 5333 * objc-lang.c (find_methods): Make static.
2f9a90b4 5334
6f17862b
CF
53352003-02-20 Christopher Faylor <cgf@redhat.com>
5336
5337 * win32-nat.c (get_image_name): Check return value from
5338 ReadProcessMemory.
5339 (child_xfer_memory): Ditto.
5340
715d1656
AO
53412003-02-20 Alexandre Oliva <aoliva@redhat.com>
5342
5343 * configure.in (TARGET_SYSTEM_ROOT): Set default to
5344 ${exec_prefix}/${target_alias}/sys-root. Match explicit
5345 '${exec_prefix}' (in addition to the expansion thereof) as
5346 relocatable.
5347 * configure: Rebuilt.
5348
b1262a02
DC
53492003-02-20 David Carlton <carlton@math.stanford.edu>
5350
5351 * symtab.c (search_symbols): Revert the search_symbols part of my
5352 2002-12-23 patch. Add comment.
5353
7134143f
DJ
53542002-02-20 Daniel Jacobowitz <drow@mvista.com>
5355
5356 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
5357 * dbxread.c (elfstab_build_psymtabs): Don't call
5358 install_minimal_symbols.
5359 (stabsect_build_psymtabs): Likewise.
5360 * elfread.c (elf_symfile_read): Call install_minimal_symbols
5361 earlier.
5362 * somread.c (som_symfile_read): Call install_minimal_symbols
5363 and do_cleanups earlier.
5364 * nlmread.c (nlm_symfile_read): Likewise.
5365 * mdebugread.c (elfmdebug_build_psymtabs): Call
5366 install_minimal_symbols and make appropriate cleanups.
5367
cf466558
KB
53682003-02-20 Kevin Buettner <kevinb@redhat.com>
5369
5370 * solib.c (reload_shared_libraries): New function.
5371 (_initialize_solib): Add callbacks for ``set solib-search-path''
5372 and ``set solib-absolute-prefix''.
5373
de5ad195
DC
53742003-02-20 David Carlton <carlton@math.stanford.edu>
5375
5376 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
5377 expand comment.
5378 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
5379 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
5380 * ada-typeprint.c (ada_typedef_print): Ditto.
5381 * ax-gdb.c (gen_var_ref): Ditto.
5382 * breakpoint.c (print_one_breakpoint): Ditto.
5383 * buildsym.c (finish_block): Ditto.
5384 * c-valprint.c (c_val_print): Ditto.
5385 * expprint.c (print_subexp): Ditto.
5386 * findvar.c (locate_var_value): Ditto.
5387 * infcmd.c (jump_command): Ditto.
5388 * linespec.c (decode_line_2, decode_compound): Ditto.
5389 * maint.c (maintenance_translate_address): Ditto.
5390 * objc-lang.c (compare_selectors, compare_classes): Ditto.
5391 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
5392 Ditto.
5393 * p-valprint.c (pascal_val_print): Ditto.
5394 * stabsread.c (define_symbol): Ditto.
5395 * stack.c (print_frame, frame_info, print_block_frame_locals)
5396 (print_frame_arg_vars, return_command): Ditto.
5397 * symfile.c (compare_symbols, compare_psymbols): Ditto.
5398 * symmisc.c (print_symbol): Ditto.
5399 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
5400 (compare_search_syms, print_symbol_info, print_msymbol_info)
5401 (rbreak_command): Ditto.
5402 * tracepoint.c (tracepoints_info): Ditto.
5403 * typeprint.c (typedef_print): Ditto.
5404 * valops.c (value_of_variable, hand_function_call): Ditto.
5405 * cli/cli-cmds.c (edit_command, list_command): Ditto.
5406 * ada-typeprint.c: Update Copyright.
5407 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
5408 * tracepoint.c, cli/cli-cmds.c: Ditto.
5409
f796e4be
KB
54102003-02-20 Kevin Buettner <kevinb@redhat.com>
5411
5412 * frame.c (generic_unwind_get_saved_register): Make non-static.
5413 * frame.h (generic_unwind_get_saved_register): Declare.
5414 * mips-tdep.c (read_next_frame_reg): Fetch register from
5415 current regcache when frame is NULL.
5416 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
5417 that must be NULL.
5418 (mips_get_saved_register): Call generic_unwind_get_saved_register()
5419 instead of frame_register_unwind().
5420
836cc9f4
AC
54212003-02-20 Andrew Cagney <ac131313@redhat.com>
5422
5423 * remote-sim.c (gdbsim_insert_breakpoint)
5424 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
5425 code.
5426
501eef12
AC
54272003-02-20 Andrew Cagney <ac131313@redhat.com>
5428
5429 * remote.c (_initialize_remote): Add commands "set/show remote
5430 hardware-watchpoint-limit" and "set/show remote
5431 hardware-breakpoint-limit".
5432 (remote_hw_watchpoint_limit): Initialize to -1.
5433 (remote_hw_breakpoint_limit): Ditto.
5434 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
5435
1b6bc7e0
CF
54362003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
5437
5438 * coff-pe-read.c: New file - support reading of minimal symbols from a
5439 portable executable using the export table.
5440 * coff-pe-read.h: New file.
5441 * coffread.c: Include coff-pe-read.h.
5442 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
5443 debugging symbols found.
5444 * Makefile.in (SFILES): Add coff-pe-read.o.
5445 (coff_pe_read_h): Define.
5446 (COMMON_OBS): Add coff-pe-read.o.
5447 (coffread.o): Add coff_pe_read_h dependency.
5448 (coff-pe-read.o): New target.
5449
fe898f56
DC
54502003-02-19 David Carlton <carlton@math.stanford.edu>
5451
5452 * Makefile.in (SFILES): Add block.c.
5453 (block_h): New.
5454 (COMMON_OBS): Add block.o.
5455 (block.o): New.
5456 (x86-64-tdep.o): Add $(block_h).
5457 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
5458 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
5459 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
5460 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
5461 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
5462 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
5463 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
5464 * value.h: Add opaque declaration for struct block.
5465 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
5466 * ada-lang.h: Ditto.
5467 * x86-64-tdep.c: #include "block.h"
5468 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
5469 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
5470 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
5471 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
5472 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
5473 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
5474 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
5475 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
5476 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
5477 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
5478 * symtab.c (block_function): Ditto.
5479 (contained_in): Ditto.
5480 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
5481 block.h. Add opaque declaration for struct block.
5482 * symtab.h: Move block_function and contained_in declarations to
5483 block.h. Add opaque declarations for struct block, struct
5484 blockvector.
5485 (struct block): Move to block.h.
5486 (struct blockvector): Ditto.
5487 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
5488 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
5489 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
5490 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
5491 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
5492 Ditto.
5493 * block.c: New file.
5494 * block.h: New file.
5495
173345b5
TR
54962003-02-19 Theodore A. Roth <troth@openavr.org>
5497
5498 * avr-tdep.c (avr_extract_return_value): Remove function.
5499 (avr_store_return_value): Remove function.
5500 (avr_extract_struct_value_address): Remove function.
5501 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
5502
338ef23d
AC
55032003-02-19 Andrew Cagney <ac131313@redhat.com>
5504
5505 * rs6000-tdep.c: Include "gdb_assert.h".
5506 (registers_e500): Add "acc" and "spefscr".
5507 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
5508 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
5509 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
5510 really is "r0".
5511 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
5512
5412f5f3
KS
55132003-02-18 Keith Seitz <keiths@redhat.com>
5514
5515 * Makefile.in: Add gdbtk-interps.c.
5516
881324eb
KB
55172003-02-18 Kevin Buettner <kevinb@redhat.com>
5518
5519 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
5520 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
5521
6a2f5abf
AC
55222003-02-18 Andrew Cagney <cagney@redhat.com>
5523
5524 * symtab.h (struct objfile): Add opaque declaration.
5525
54c7009d
EZ
55262003-02-18 Elena Zannoni <ezannoni@redhat.com>
5527
5528 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
5529 * dbxread.c (process_one_symbol): Use last_function_start rather
5530 than function_start_offset to find the real beginning of the
5531 current function. The latter is just the text section offset on
5532 some systems, the former is always the real function start.
54c7009d 5533
7ee6d7eb
AC
55342003-02-17 Andrew Cagney <cagney@redhat.com>
5535
5536 * configure.in: Revert ${target} != ${host}.
5537
2846da9b
AC
55382003-02-17 Andrew Cagney <ac131313@redhat.com>
5539
5540 * configure.in (Makefile): Use the test ${target} != ${host},
5541 instead of the absence of the "nm.h" file, to determine of the
5542 configuration non-native.
5543 * configure: Regenerate.
5544
3b27aeea
EZ
55452003-02-14 Elena Zannoni <ezannoni@redhat.com>
5546
fbe586ae 5547 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
5548
5549 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
5550 conditionalize tui_active test.
5551 (lookup_cmd_1): Ditto.
5552
b0b1c2c0
MK
55532003-02-14 Mark Kettenis <kettenis@gnu.org>
5554
5555 * configure.in: Add check for _etext.
5556 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
5557 available.
5558 * config.in, configure: regenerated.
5559
8f05cde5
DJ
55602003-02-14 Daniel Jacobowitz <drow@mvista.com>
5561
5562 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
5563
021e7609
AC
55642003-02-14 Andrew Cagney <ac131313@redhat.com>
5565
5566 * main.c (tui_version): Delete variable.
5567 (captured_main): When --tui, set interpreter_p to "tui" instead of
5568 enabling tui_version.
5569 * printcmd.c (display_command) [TUI]: Test tui_active instead of
5570 tui_version.
5571 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
5572 * cli/cli-cmds.c (disassemble_command): Ditto.
5573 * defs.h (tui_version): Delete declaration.
5574 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
5575 (tui-interp.o): Add rules.
5576 (SUBDIR_TUI_OBS): Add "tui-interp.o".
5577
e325dcec
CF
55782003-02-14 Christopher Faylor <cgf@redhat.com>
5579
36ffb041 5580 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
5581 just-loaded dll.
5582
c4f90d87
JM
55832003-02-12 Jason Molenda (jmolenda@apple.com)
5584
fbe586ae
RH
5585 * symmisc.c (print_objfile_statistics): Include information about
5586 the number of psymtabs and symtabs in each object file.
c4f90d87 5587
e46e5ccd
KS
55882003-02-13 Keith R Seitz <keiths@redhat.com>
5589
5590 * main.h (struct captured_main_args): Add interpreter_p.
5591 * main.c (captured_main): Initialize interpreter_p from context.
5592 * gdb.c (main): Set interpreter_p argument.
5593 * Makefile.in (gdb.o): Add dependency for interps.h.
5594
fe97fe9c
AC
55952003-02-12 Andrew Cagney <ac131313@redhat.com>
5596
5597 * event-top.c (cli_command_loop): Delete declaration.
5598 (_initialize_event_loop): Delete function setting event_loop_hook.
5599 * event-top.h (cli_command_loop): Declare. Update copyright.
5600 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
5601 * interps.c (current_interp_command_loop): When event_loop_p, call
5602 cli_command_loop.
5603
1cdac4ef
AC
56042003-02-12 Andrew Cagney <ac131313@redhat.com>
5605
5606 * interps.h (interp_command_loop_ftype): Change return type to
5607 void.
5608
48037ead
ML
56092003-02-12 Michal Ludvig <mludvig@suse.cz>
5610
5611 * x86-64-tdep.c (x86_64_extract_return_value)
5612 (x86_64_store_return_value): Use regcache instead of regbuf.
5613 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
5614 * x86-64-linux-nat.c (fill_gregset): Use regcache.
5615
033afc63
AC
56162003-02-11 Andrew Cagney <ac131313@redhat.com>
5617
5618 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
5619 * aclocal.m4: Regenerate.
5620 * configure: Regenerate.
5621
5622 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
5623 TCL_LD_SEARCH_FLAGS.
5624
40d02bca
ML
56252003-02-10 Michal Ludvig <mludvig@suse.cz>
5626
5627 * dwarf2cfi.c: Reindented.
5628
11308a41
AC
56292003-02-09 Andrew Cagney <ac131313@redhat.com>
5630
5631 * interps.c (clear_interpreter_hooks): Convert function definition
5632 to ISO C.
5633
e1c1c0f6
DC
56342003-02-07 David Carlton <carlton@math.stanford.edu>
5635
5636 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
5637
ab5d3da6
KB
56382003-02-07 Kevin Buettner <kevinb@redhat.com>
5639
5640 * gdbtypes.h (struct main_type): Move ``length'' field from here...
5641 (struct type): ...to here.
5642 (TYPE_LENGTH): Adjust to reflect different location of ``length''
5643 field.
5644 * gdbtypes.c (make_qualified_type): Set length on newly created type.
5645 (replace_type): Set length on all type variants for a given type.
5646
b8a92b82
AC
56472003-02-07 Andrew Cagney <ac131313@redhat.com>
5648
5649 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
5650 <sys/stat.h>.
5651 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
5652
5cb316ef
AC
56532003-02-06 Andrew Cagney <ac131313@redhat.com>
5654
2555fe1a
AC
5655 * Makefile.in (symm-nat.o): Update dependencies.
5656 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
5657 (lynx-nat.o, ia64-linux-nat.): Ditto.
5658 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
5659 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
5660 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
5661
44270758
AC
5662 * Makefile.in (inflow_h): Define.
5663 (procfs.o, inflow.o, procfs.o): Update dependencies.
5664 * inftarg.c (child_stop): Delete extern declaration of
5665 inferior_process_group. Include "inflow.h".
5666 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
5667 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
5668 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
5669 (our_process_group, inferior_process_group): Extern declarations.
5670
df8f7274
AC
5671 * procfs.c: Include "gdb_assert.h".
5672
5cb316ef
AC
5673 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
5674 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
5675 * jv-typeprint.c (java_type_print_base): Ditto.
5676 * typeprint.c (typedef_print): Eliminate STREQ.
5677 * cli/cli-script.c (define_command, define_command): Ditto.
5678 * main.c (captured_main): Ditto.
5679 * values.c (lookup_internalvar): Ditto.
5680 * utils.c (safe_strerror, parse_escape): Eliminate assignment
5681 within `if' conditional.
5682 * linespec.c (decode_line_2): Ditto.
5683 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
5684 (bfd_openw_with_cleanup): Ditto.
5685
2a28ccea
MK
56862003-02-07 Mark Kettenis <kettenis@gnu.org>
5687
5688 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
5689 legacy_extract_return_value and store_return_value to
5690 legacy_return_value.
5691
786b8124
CF
56922003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
5693
5694 * win32-nat.c (get_relocated_section_addrs): New function. Find
5695 section load addresses for symbol handling in relocated DLLs.
5696 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
5697
b871e4ec
FF
56982003-02-05 Fred Fish <fnf@intrinsity.com>
5699
5700 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
5701 '=' and '!='.
5702 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
5703 with '&' and '=='.
5704 (angel_RDI_info): Ditto.
5705 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
5706 with '&' and '!='.
5707 (threads_continue_all_with_signals): Ditto.
5708
4389a95a 57092003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
5710 Keith Seitz <keiths@redhat.com>
5711 Elena Zannoni <ezannoni@redhat.com>
5712 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
5713
5714 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
5715 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
5716 (SUBDIR_MI_OBS): Add "mi-interp.o".
5717 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
5718 (SFILES): Add "interps.c".
5719 (COMMON_OBS): Add "interps.o".
5720 (interps_h, mi_main_h): Define.
5721 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
5722 (mi-main.o, main.o, event-top.o): Update dependencies.
5723 * cli/cli-interp.c: New file.
5724 * interps.h, interps.c: New files.
5725 * top.c: (gdb_init): Don't install the default interpreter, handed
5726 by captured_main.
5727 * main.c: Include "interps.h".
5728 (interpreter_p): Note that it should malloc'ed.
5729 (captured_command_loop): Call current_interp_command_loop.
5730 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
5731 xfree and xstrdup when updating interpreter_p. Install the
5732 default interpreter. Add hack to stop mi1's copyright notice
5733 being encoded.
5734 * event-top.h (gdb_setup_readline): Declare.
5735 (gdb_disable_readline): Declare.
5736 * event-top.c: Include "interps.h".
5737 (display_gdb_prompt): Call current_interp_display_prompt_p.
5738 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
5739 gdb_stdlog, and gdb_stdtarg.
5740 (_initialize_event_loop): Don't call gdb_setup_readline.
5741 * cli-out.c (cli_out_set_stream): New function.
5742 * cli-out.h (cli_out_set_stream): Declare.
5743
ff3b5810
MK
57442003-02-06 Mark Kettenis <kettenis@gnu.org>
5745
5746 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
5747 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
5748 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
5749 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
5750 config/i386/i386v42mp.mt: Removed.
5751
5b729aa5
MK
57522003-02-05 Mark Kettenis <kettenis@gnu.org>
5753
5754 * configure.tgt (*-*-solaris*): Set gdb_osabi to
5755 GDB_OSABI_SOLARIS.
5756
8cc15142
MC
57572003-02-05 Michael Chastain <mec@shout.net>
5758
5759 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
5760 2.12.1 and earlier versions.
5761
5aa5d4b9
AC
57622003-02-05 Andrew Cagney <ac131313@redhat.com>
5763
5764 Remove orphaned hosts, targets and files.
5765 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
5766 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
5767 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
5768 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
5769 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
5770 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
5771 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
5772 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
5773 * config/sparc/tm-sp64sim.h: Delete.
5774 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
5775 hosts.
5776 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
5777 mips*-dec-mach3* targets.
5778
b68767c1
MC
57792003-02-04 Michael Chastain <mec@shout.net>
5780
5781 * NEWS: Fix typo: sepcifying -> specifying.
5782
5ae7ca1d
MC
57832003-02-04 Michael Chastain <mec@shout.net>
5784
5785 * dwarfread.c: Add documentation on the state of dwarf-1,
5786 looking towards obsoletion.
5787
d08a4280
MC
57882003-02-03 Michael Chastain <mec@shout.net>
5789
5790 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
5791 gdb/testsuite/gdb.c++/pr-1023.exp.
5792
e9be73e4
AC
57932003-02-04 Andrew Cagney <ac131313@redhat.com>
5794
5795 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
5796 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
5797
5798 * utils.c (init_page_info): Delete reference to MPW in comments.
5799 * main.c (captured_main): Delete #ifdef MPW.
5800
05d57f6f
AC
58012003-02-04 Andrew Cagney <ac131313@redhat.com>
5802
5803 * NEWS: Note that the m32r-*-elf* is obsolete.
5804 * monitor.c (monitor_expect): Obsolete reference to m32r.
5805 * configure.tgt: Mark m32r-*-elf* as obsolete.
5806 * MAINTAINERS: Mark m32k as obsolete.
5807 * m32r-rom.c: Obsolete file.
5808 * config/m32r/m32r.mt: Obsolete file.
5809 * config/m32r/tm-m32r.h: Obsolete file.
5810 * m32r-stub.c: Obsolete file.
5811 * m32r-tdep.c: Obsolete file.
5812
8b0e5691
AC
58132003-02-04 Andrew Cagney <ac131313@redhat.com>
5814
5815 * NEWS: Mention that the z8k-zilog-none is obsolete.
5816 * MAINTAINERS: Mark z8k as obsolete.
5817 * configure.tgt: Obsolete the z8k-*-coff* target.
5818 * config/z8k/z8k.mt: Obsolete file.
5819 * config/z8k/tm-z8k.h: Obsolete file.
5820 * z8k-tdep.c: Obsolete file.
5821
67f16606
AC
58222003-02-04 Andrew Cagney <ac131313@redhat.com>
5823
5824 * NEWS: Mention that the mn10200-elf is obsolete.
5825 * configure.tgt: Obsolete mn10200-*-* target.
5826 * breakpoint.c (update_breakpoints_after_exec): Update comment to
5827 mention that the mn10200 is obsolete.
5828 * breakpoint.h: Ditto.
5829 * MAINTAINERS: Mark the mn10200-elf as obsolete.
5830 * config/mn10200/mn10200.mt: Obsolete file.
5831 * config/mn10200/tm-mn10200.h: Obsolete file.
5832 * mn10200-tdep.c: Obsolete file.
5833
fd2299bd
AC
58342003-02-04 Andrew Cagney <ac131313@redhat.com>
5835
5836 * MAINTAINERS: Mark h8500 as obsolete.
5837 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
5838 * findvar.c (value_from_register): Ditto.
5839 * h8500-tdep.c: Mark file as obsolete.
5840 * config/h8500/h8500.mt: Ditto.
5841 * config/h8500/tm-h8500.h: Ditto.
5842 * NEWS: Mention that h8500 is obsolete.
5843
eb9a305d
DC
58442003-02-04 David Carlton <carlton@math.stanford.edu>
5845
5846 * objfiles.c (allocate_objfile): Always set name. Add comment at
5847 start of function.
5848 * jv-lang.c (get_dynamics_objfile): Add comment.
5849
406fc7fb
DC
58502003-02-04 David Carlton <carlton@math.stanford.edu>
5851
5852 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
5853 * printcmd.c (build_address_symbolic): Replace uses of
5854 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
5855 SYMBOL_NAME, and asm_demangle.
5856 Update copyright.
5857
93d91629
DC
58582003-02-04 David Carlton <carlton@math.stanford.edu>
5859
5860 * linespec.c (decode_compound): Extract code into
5861 lookup_prefix_sym.
5862 (lookup_prefix_sym): New function.
5863
1c5cb38e
DC
58642003-02-04 David Carlton <carlton@math.stanford.edu>
5865
5866 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
5867 FLOAT_COERCION_BADNESS.
5868 * gdbtypes.c (rank_one_type): Replace all uses of
5869 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
5870
0cf824c9
JB
58712003-02-04 Jim Blandy <jimb@redhat.com>
5872
5873 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
5874 section, let dwarf_macinfo_section point to it, not
5875 dwarf_loc_section.
5876
a2d356b0
DJ
58772003-02-04 Daniel Jacobowitz <drow@mvista.com>
5878
5879 Pointed out by Anton Blanchard <anton@samba.org>.
5880 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
5881 (ppc_linux_at_sigtramp_return_path): Use it.
5882
2de7ced7
DJ
58832003-02-04 Daniel Jacobowitz <drow@mvista.com>
5884
5885 * defs.h (streq): Add prototype.
5886 * utils.c (streq): New function.
5887
5888 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
5889 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
5890 * mdebugread.c (new_symbol): Likewise.
5891 * stabsread.c (define_symbol): Likewise.
5892 * coffread.c (process_coff_symbol): Likewise.
5893 * dwarfread.c (new_symbol): Likewise.
5894
5895 * minsyms.c (prim_record_minimal_symbol_and_info): Use
5896 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
5897 here.
5898 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
5899 SYMBOL_INIT_DEMANGLED_NAME.
5900 * objfiles.c: Include "hashtab.h".
5901 (allocate_objfile): Call htab_set_functions_ex for the
5902 demangled_names_hash.
5903 (free_objfile): Call htab_delete for the demangled_names_hash.
5904 * objfiles.h (struct htab): Add declaration.
5905 (struct objfile): Add demangled_names_hash.
5906 * symfile.c: Include "hashtab.h".
5907 (reread_symbols): Call htab_delete for the demangled_names_hash.
5908 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
5909 SYMBOL_NAME in the bcache.
5910 * symtab.c: Include "hashtab.h". Update comments.
5911 (create_demangled_names_hash, symbol_set_names): New functions.
5912 (symbol_find_demangled_name): New function, broken out from
5913 symbol_init_demangled_names.
5914 (symbol_init_demangled_names): Use it.
5915 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
5916 (SYMBOL_SET_NAMES): New macro.
5917 (symbol_set_names): Add prototype.
5918
15831452
JB
59192003-02-03 Jim Blandy <jimb@redhat.com>
5920
5921 Use a single, consistent representation for an empty minimal
5922 symbol table in an objfile.
5923 * objfiles.c (terminate_minimal_symbol_table): New function.
5924 (allocate_objfile): Call it.
5925 * objfiles.h (terminate_minimal_symbol_table): New declaration.
5926 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
5927 non-NULL.
5928 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
5929 objfile has minimal symbols, compare minimal_symbol_count to zero,
5930 instead of comparing msymbols with NULL.
5931 * objfiles.c (have_minimal_symbols): Same.
5932 * solib-sunos.c (solib_add_common_symbols): Call
5933 terminate_minimal_symbol_table.
5934 * symfile.c (reread_symbols): Same.
5935
ffc65945
KB
59362003-02-03 Kevin Buettner <kevinb@redhat.com>
5937
5938 * s390-tdep.c (s390_address_class_type_flags)
5939 (s390_address_class_type_flags_to_name)
5940 (s390_address_class_name_to_type_flags): New functions.
5941 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
5942 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
5943
f211c6d4
MS
59442003-02-03 Michael Snyder <msnyder@redhat.com>
5945
5946 * arm-tdep.c: Fix spell-o in comment.
5947
659b0389
ML
59482003-02-03 Michal Ludvig <mludvig@suse.cz>
5949
5950 * dwarf2cfi.c (pointer_encoding): Added new parameter.
5951 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
5952 error messages to contain BFD filename.
5953
3b31d625
EZ
59542003-02-02 Elena Zannoni <ezannoni@redhat.com>
5955
997b089a 5956 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
5957 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
5958 (do_mixed_source_and_assembly): Use
5959 make_cleanup_ui_out_tuple_begin_end and
5960 make_cleanup_ui_out_tuple_begin_end.
5961 (do_mixed_source_and_assembly): Ditto.
5962 * thread.c (do_captured_list_thread_ids): Ditto.
5963 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
5964 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
5965 ui_out_tuple_end): Delete prototypes.
5966 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
5967 ui_out_list_end, ui_out_tuple_end): Delete.
5968
5969 From Kevin Buettner <kevinb@redhat.com>:
5970 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
5971 * ui-out.c (make_cleanup_ui_out_table_begin_end)
5972 (do_cleanup_table_end): New functions.
5973 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
5974 Use cleanups to invoke_ui_out_tuple_end().
5975 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
5976 * cli/cli-setshow.c (cmd_show_list): Use
5977 make_cleanup_ui_out_tuple_begin_end.
5978
5b181d62
AC
59792003-02-02 Andrew Cagney <ac131313@redhat.com>
5980
5981 * frame.c (frame_unwind_register): New function.
5982 (frame_unwind_unsigned_register): Use.
5983 (frame_unwind_signed_register): Use.
5984 (frame_read_register): New function.
5985 * frame.h (frame_unwind_register): Declare.
5986 (frame_read_register): Declare.
5987
5988 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
5989 and frame_unwind_register instead of read_memory, write_register
5990 and deprecated_write_register_bytes.
5991
5f601589
AC
59922003-02-02 Andrew Cagney <ac131313@redhat.com>
5993
5994 * frame.h: Note that namelen can be negative.
5995 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
5996 NAME's length.
5997
5998 * NEWS: Mention that the d10v's `regs' command is deprecated.
5999 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
6000 (d10v_print_registers_info): New function.
6001 (show_regs): Call d10v_print_registers_info.
6002 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
6003
6a3fe0a4
MK
60042003-02-02 Mark Kettenis <kettenis@gnu.org>
6005
6006 * stack.c (print_frame_info): Restore call to annotate_frame_begin
6007 lost in the previous patch.
6008
075559bc
AC
60092003-02-01 Andrew Cagney <ac131313@redhat.com>
6010
6011 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
6012 * stack.c (print_frame_info_base): Output complete FRAME tuple
6013 for synthesized frames.
075559bc 6014
6789195b
AC
60152003-02-02 Andrew Cagney <ac131313@redhat.com>
6016
6017 * mips-nat.c (zerobuf): Delete.
6018 (fetch_inferior_registers): Alloc local zerobuf.
6019 (fetch_core_registers): Alloc local zerobuf.
6020 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
6021 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
6022 * thread-db.c (thread_db_store_registers): Ditto.
6023 * sh-tdep.c (sh_do_register): Ditto.
6024 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
6025 * remote-sim.c (gdbsim_store_register): Ditto.
6026 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6027 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6028 * monitor.c (monitor_supply_register): Ditto.
6029 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
6030 * mips-nat.c (fetch_inferior_registers): Ditto.
6031 * m68klinux-nat.c (fetch_register): Ditto.
6032 * lynx-nat.c (fetch_inferior_registers): Ditto.
6033 (fetch_inferior_registers): Ditto.
6034 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
6035 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6036 (hpux_thread_store_registers): Ditto.
6037 * hppah-nat.c (fetch_register): Ditto.
6038 * hppab-nat.c (fetch_register): Ditto.
6039 * hppa-tdep.c (pa_register_look_aside): Ditto.
6040 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
6041 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
6042
e669114a
AC
60432003-02-01 Andrew Cagney <ac131313@redhat.com>
6044
6045 * gdbarch.sh: Explictly specify all method levels. When a
6046 variable with an empty level, provide a non-multi-arch default.
6047 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
6048 * gdbarch.h: Re-generate.
6049 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
6050 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
6051
9a043c1d
AC
60522003-02-01 Andrew Cagney <ac131313@redhat.com>
6053
6054 * defs.h (host_pointer_to_address): Delete declaration.
6055 (address_to_host_pointer): Delete declaration.
6056 * utils.c (host_pointer_to_address): Delete function.
6057 (address_to_host_pointer): Delete function.
6058 * procfs.c (procfs_address_to_host_pointer): New function.
6059 * procfs.c (proc_set_watchpoint): Use.
6060 (procfs_can_use_hw_breakpoint): Update comments.
6061 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
6062 (som_solib_add): Use.
6063 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
6064 * hppa-tdep.c (unwind_command): Use.
6065
7ca9f392
AC
60662003-02-01 Andrew Cagney <ac131313@redhat.com>
6067
94bbfd30
AC
6068 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
6069 strlen d_name.
6070
7ca9f392
AC
6071 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
6072 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
6073 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
6074 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
6075 (define_symbol): Update.
6076 * symfile.c (generic_load): Remove references to nindy.
6077 * symtab.c: Remove references to nindy.
6078
31a85ea2
AC
60792003-02-01 Andrew Cagney <ac131313@redhat.com>
6080
6081 * infcmd.c (print_float_info): Delete code conditional on
6082 FLOAT_INFO.
6083 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
6084 * config/m68k/nm-apollo68b.h: Ditto.
6085 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
6086 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
6087 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
6088
f6e85fc8
MK
60892003-02-01 Mark Kettenis <kettenis@gnu.org>
6090
6015b6a0
MK
6091 * config/i386/tm-i386os9k.h: Removed.
6092
f7a30bdf
MK
6093 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
6094 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
6095 they're identical to i[3456]86-*-sysv* now.
6096 * config/i386/i386v32.mh: Removed.
6097 * config/i386/xm-i386v32.h: Removed.
6098 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
6099
28d52111
MK
6100 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
6101
4d3f6bce
MK
6102 * config/i386/i386dgux.mh: Removed.
6103 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
6104
f6e85fc8
MK
6105 * configure.in: Fix typo.
6106 * configure: Regenerated.
6107
53955967
DC
61082003-01-31 David Carlton <carlton@math.stanford.edu>
6109
6110 * dwarf2read.c (dwarf2_locate_sections): Set
6111 dwarf_ranges_section.
6112
b1364885
AC
61132003-01-31 Andrew Cagney <ac131313@redhat.com>
6114
8dbb1c65
AC
6115 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
6116 * utils.c: Update comments documenting legitimate uses of PTR.
6117
8731e58e
AC
6118 * utils.c: Re-indent.
6119
b1364885
AC
6120 * config/djgpp/fnchange.lst: Delete nindy files.
6121 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
6122 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
6123 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
6124 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
6125 * nindy-share/README, nindy-share/Onindy.c: Delete files.
6126 * nindy-tdep.c, nindy-share/Makefile: Delete files.
6127 * Makefile.in (init.c): Remove nindy references.
6128 (saber_gdb): Delete rule.
6129 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
6130 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
6131 and a68v-nat.c.
6132 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
6133 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
6134 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
6135 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
6136 nindy-share/stop.h.
6137 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
6138 * saber.suppress: Delete file.
6139
086df311
DJ
61402003-01-31 Daniel Jacobowitz <drow@mvista.com>
6141
6142 * dbxread.c (stabs_data): New static variable.
6143 (fill_symbuf): Support an in-memory buffer for stabs data.
6144 (stabs_seek): New function.
6145 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
6146 (read_ofile_symtab): Use stabs_seek.
6147 (elfstab_build_psymtabs): Take an asection* instead of
6148 an offset and size. Relocate the stabs data if necessary.
6149 Save the section* for dbx_psymtab_to_symtab.
6150 * dwarf2read.c: Add section variables for each debug section.
6151 (dwarf2_locate_sections): Fill them in.
6152 (dwarf2_read_section): Take an asection* argument.
6153 Relocate the section contents if necessary.
6154 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
6155 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
6156 it to dwarf2_read_section.
6157 (dwarf2_build_frame_info): Update callers.
6158 * elfread.c (elf_symfile_read): Update call to
6159 elfstab_build_psymtabs.
6160 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
6161 (DBX_STAB_SECTION): New macro.
6162 * stabsread.h (elfstab_build_psymtabs): Update prototype.
6163 * symfile.c (symfile_dummy_outputs): New function.
6164 (symfile_relocate_debug_section): New function.
6165 * symfile.h (symfile_relocate_debug_section): Add prototype.
6166
87d1b352
RH
61672003-01-31 Richard Henderson <rth@redhat.com>
6168
6169 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
6170 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
6171 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
6172 * alpha-tdep.c (alpha_register_name): Add "unique".
6173 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
6174 (ALPHA_UNIQUE_REGNUM): New.
6175 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
6176
c48861fb
AC
61772003-01-31 Andrew Cagney <ac131313@redhat.com>
6178
6179 * README: Remove reference to Ericsson 1800 monitor.
6180 * Makefile.in (remote-es.o): Delete rule.
6181 (ALLDEPFILES): Delete remote-es.c.
6182 * remote-es.c: Delete file.
6183 * config/m68k/es1800.mt: Delete file.
6184 * config/djgpp/fnchange.lst: Update.
6185 * configure.tgt: Delete m68*-ericsson-* target.
6186
d764a824
AF
61872003-01-31 Adam Fedor <fedor@gnu.org>
6188
6189 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
6190 Remove duplicate/shadowing variable of same name.
6191
fe36c4f4
JB
61922003-01-30 Jim Blandy <jimb@redhat.com>
6193
6194 * symfile.c (find_separate_debug_file): Assert that the objfile's
6195 directory name we compute ends with a slash, and then assume that
6196 that's so everywhere we use it.
6197
cb741690
DJ
61982003-01-30 Daniel Jacobowitz <drow@mvista.com>
6199
6200 * valops.c (value_assign): Flush frame cache after stores to memory
6201 also.
6202
96ee5227
AC
62032003-01-30 Andrew Cagney <ac131313@redhat.com>
6204
6205 * Makefile.in (mon960-rom.o): Delete rule.
6206 * mon960-rom.c: Delete file.
6207
7f6104a9
AC
62082003-01-30 Andrew Cagney <ac131313@redhat.com>
6209
6210 * d10v-tdep.c: Include "frame-unwind.h".
6211 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
6212 list.
6213 (next_addr, uses_frame): Delete.
6214 (struct d10v_unwind_cache): Define.
6215 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
6216 Use info instead of next_addr and uses_frame globals.
6217 (d10v_frame_init_saved_regs): Delete function.
6218 (d10v_init_extra_frame_info): Delete function.
6219 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
6220 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
6221 init_frame_pc or frame_saved_pc.
6222 (d10v_pop_frame): Delete function.
6223 (do_d10v_pop_frame): Delete function.
6224 (d10v_frame_chain): Delete function.
6225 (d10v_frame_chain_valid): Delete function.
6226 (d10v_frame_pc_unwind): New function.
6227 (d10v_frame_id_unwind): New function.
6228 (saved_regs_unwinder): New function.
6229 (d10v_frame_register_unwind): New function.
6230 (d10v_frame_pop): New function.
6231 (d10v_frame_unwind): New variable.
6232 (d10v_frame_p): New function.
6233 (d10v_frame_saved_pc): Delete function.
6234 * Makefile.in (d10v-tdep.o): Update dependencies.
6235
cad2e848
JB
62362003-01-30 J. Brobecker <brobecker@gnat.com>
6237
6238 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
6239 causing some regressions due to a change in the default value
6240 for this macro.
6241
af34e669
DJ
62422003-01-29 Richard Henderson <rth@redhat.com>
6243 Elena Zannoni <ezannoni@redhat.com>
6244 Daniel Jacobowitz <drow@mvista.com>
6245
6246 Fix PR gdb/961.
6247 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
6248 variables.
6249 (RANGES_SECTION): New.
6250 (dwarf_ranges_buffer): New variable.
6251 (struct comp_unit_head): Add member "die".
6252 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
6253 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
6254 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
6255 (dwarf2_locate_sections): Likewise.
6256 (dwarf2_build_psymtabs): Read .debug_ranges.
6257 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
6258 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
6259 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
6260 Look for DW_AT_ranges and return the bounding box.
6261
baa93fa6
CF
62622003-01-29 Brian Ford <ford@vss.fsi.com>
6263
6264 * win32-nat.c (cygwin_pid): Removed as unused.
6265 (child_attach): Try fall back to Cygwin pid.
6266
c63f977f
JB
62672003-01-29 Jim Blandy <jimb@redhat.com>
6268
6269 * objfiles.h (struct objfile): Doc fix.
6270
d62d1979
AC
62712003-01-29 Andrew Cagney <ac131313@redhat.com>
6272
6273 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
6274 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
6275 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
6276 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
6277 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
6278 (FRAME_SAVED_PC): Change to a function with predicate.
6279 * gdbarch.h, gdbarch.c: Re-generate.
6280
1ae18a04
AC
62812003-01-28 Andrew Cagney <ac131313@redhat.com>
6282
52287340
AC
6283 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
6284
1ae18a04
AC
6285 * complaints.c (complain): Delete function.
6286 * complaints.h (struct deprecated_complaint): Delete definition.
6287 (complain): Delete declaration.
6288
f2c16bd6
KB
62892003-01-28 Kevin Buettner <kevinb@redhat.com>
6290
6291 * mips-tdep.c (mips_init_extra_frame_info): Return early for
6292 dummy frames.
6293
a94dd1fd
AC
62942003-01-27 Andrew Cagney <ac131313@redhat.com>
6295
6296 * sentinel-frame.h, sentinel-frame.c: New files.
6297 * Makefile.in (frame.o): Update dependencies.
6298 (SFILES): Add sentinel-frame.c.
6299 (sentinel_frame_h): Define.
6300 (COMMON_OBS): Add sentinel-frame.o.
6301 (sentinel-frame.o): Specify dependencies.
6302 * frame.c: Include "sentinel-frame.h".
6303 (frame_register_unwind): Rewrite assuming that there is always a a
6304 ->next frame.
6305 (frame_register, generic_unwind_get_saved_register): Ditto.
6306 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
6307 (create_sentinel_frame, unwind_to_current_frame): New functions.
6308 (get_current_frame): Rewrite using create_sentinel_frame and
6309 unwind_to_current_frame. When possible, always create a frame.
6310 (create_new_frame): Set next to the sentinel frame.
6311 (get_next_frame): Rewrite. Don't go below the level 0 frame.
6312 (deprecated_update_frame_pc_hack): Update the next frame's PC and
6313 ID cache when necessary.
6314 (frame_saved_regs_id_unwind): Use frame_relative_level.
6315 (deprecated_generic_get_saved_register): Use frame_relative_level,
6316 get_frame_saved_regs, get_frame_pc, get_frame_base and
6317 get_next_frame.
6318 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
6319 frame_register.
6320
5378adc4
DJ
63212003-01-27 Daniel Jacobowitz <drow@mvista.com>
6322
6323 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
6324
51ee2ddc
DJ
63252003-01-27 Daniel Jacobowitz <drow@mvista.com>
6326
6327 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
6328 (maintenance_set_profile_cmd): Use error () instead of warning ().
6329
d9feb4e7
DJ
63302003-01-27 Daniel Jacobowitz <drow@mvista.com>
6331
6332 * configure.in: Check that -pg works if using --enable-profiling.
6333 Check for monstartup and _mcleanup regardless of --enable-profiling.
6334 * maint.c: Check for monstartup and _mcleanup before using them.
6335 * config.in: Regenerated.
6336 * configure: Regenerated.
6337
2d188dd3
NC
63382003-01-24 Nick Clifton <nickc@redhat.com>
6339
6340 * Add sh2e support:
6341
6342 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
6343
6344 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
6345 (sh2e_show_regs): New.
6346 (sh_gdbarch_init): Handle bfd_mach_sh2e.
6347 * config/sh/tm-sh.h: Added sh2e to comments.
6348
cb3c37b2
JB
63492003-01-23 Jim Blandy <jimb@redhat.com>
6350
6351 * symfile.c (syms_from_objfile): Don't print the "(no debugging
6352 symbols found)" message here; we haven't checked for a separate
6353 debug info file yet, so we don't know yet.
6354 (symbol_file_add_with_addrs_or_offsets): Print it here, after
6355 we've looked everywhere. Also, there's no need to print a special
6356 message when we're loading the separate debug info file: the one
6357 symbol_file_add prints is fine.
6358
5b5d99cf
JB
63592003-01-23 Alexander Larsson <alexl@redhat.com>
6360 Jim Blandy <jimb@redhat.com>
6361
6362 Add support for executables whose debug info has been separated
6363 out into a separate file, leaving only a link behind.
6364 * objfiles.h (struct objfile): New fields: separate_debug_objfile
6365 and separate_debug_objfile_backlink.
6366 (put_objfile_before): New declaration.
6367 * symfile.c: #include "filenames.h".
6368 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
6369 debug info in a separate file, read that, too. Save the addrs
6370 argument, so we can use it again to read the separated debug info;
6371 syms_from_objfile modifies the table we pass it.
6372 (reread_symbols): After re-reading an objfile, call
6373 reread_separate_symbols to refresh its separate debug info
6374 objfile, if it has one.
6375 (reread_separate_symbols, find_separate_debug_file,
6376 get_debug_link_info, separate_debug_file_exists): New functions.
6377 (debug_file_directory): New global var.
6378 (_initialize_symfile): Initialize debug_file_directory, and
6379 provide the new `set debug-file-directory' command to let the user
6380 change it.
6381 * objfiles.c (free_objfile): If this objfile has its debug info in
6382 a separate objfile, free that one too. If this is itself a
6383 separate debug info objfile, clear our parent's backlink.
6384 (put_objfile_before): New function.
6385 * utils.c (gnu_debuglink_crc32): New function.
6386 * defs.h (gnu_debuglink_crc32): New declaration.
6387 * Makefile.in (symfile.o): Note dependency on "filenames.h".
6388 * configure.in: Handle --with-separate-debug-dir config option.
6389 * acinclude.m4 (AC_DEFINE_DIR): New macro.
6390 * acconfig.h (DEBUGDIR): New macro.
6391 * configure, aclocal.m4, config.in: Regenerated.
6392
7e8580c1
JB
63932003-01-22 Jim Blandy <jimb@redhat.com>
6394
7904e09f
JB
6395 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
6396 like the old symbol_file_add, but taking new arguments: you can
6397 now pass in either a `struct section_addr_info' list to say where
6398 each section is loaded, or a `struct section_offsets' table. Pass
6399 these new arguments through to syms_from_objfile as appropriate.
6400 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
6401 with the appropriate quiescent values for the new arguments.
6402
7e8580c1
JB
6403 * symfile.c: #include "gdb_assert.h".
6404 (syms_from_objfile): Add the ability to pass in a section offset
6405 table directly, as an alternative to the section_addr_info table.
6406 Document arguments better.
6407 (symbol_file_add): Pass extra arguments to syms_from_objfile.
6408 * symfile.h (syms_from_objfile): Update declaration.
6409 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
6410 syms_from_objfile.
6411 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
6412
d28f9cdf
DJ
64132003-01-22 Daniel Jacobowitz <drow@mvista.com>
6414
6415 Original patch by Tom Tromey <tromey@cygnus.com> and
6416 Jason Molenda <jmolenda@apple.com>.
6417 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
6418 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
6419 * NEWS: Mention profiling.
6420 * configure.in (--enable-gdbtk): Fix typo.
6421 (--enable-profiling): New. Set PROFILE_CFLAGS.
6422 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
6423 Fill in function.
6424 (profiling_state): New variable.
6425 (mcleanup_wrapper): New function.
6426 (_initialize_maint): Remove NOTYET, fix call to
6427 add_setshow_boolean_cmd for "maint set profile".
6428 * configure: Regenerated.
6429
df21e465
MH
64302003-01-21 Martin M. Hunt <hunt@redhat.com>
6431
6432 * Makefile.in (install-gdbtk): Install PNG images too.
6433
73c1f219
AC
64342003-01-21 Andrew Cagney <ac131313@redhat.com>
6435
6436 * exec.c (text_start): Delete global variable.
6437 (exec_file_attach): Make text_start local to the function.
6438 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
6439 * valops.c (hand_function_call): Delete code that handles
6440 BEFORE_TEXT_END and AFTER_TEXT_END.
6441 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
6442 of CALL_DUMMY_LOCATION.
6443 * gdbarch.c: Regenerate.
6444 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
6445 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
6446 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
6447 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
6448 (text_end): Delete extern declaration.
6449
eb4f72c5
AC
64502003-01-21 Andrew Cagney <ac131313@redhat.com>
6451
6452 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
6453 * blockframe.c (backtrace_below_main): Move to "frame.c".
6454 (frame_chain_valid): Delete check for backtrace_below_main.
6455 (_initialize_blockframe): Delete initialization, move ``set
6456 backtrace-below-main'' command to "frame.c".
6457 (do_flush_frames_sfunc): Delete function.
6458 * frame.c: Include "command.h" and "gdbcmd.h".
6459 (frame_type_from_pc): New function.
6460 (create_new_frame): Use frame_type_from_pc.
6461 (legacy_get_prev_frame): New function.
6462 (get_prev_frame): Rewrite. When an old style frame, call
6463 legacy_get_prev_frame. Otherwize, unwind the PC first.
6464 (_initialize_frame): Add ``set backtrace-below-main'' command.
6465 * Makefile.in (frame.o): Update dependencies.
6466
778ce8cc
AC
64672003-01-19 Andrew Cagney <ac131313@redhat.com>
6468
6469 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
6470 DEPRECATED_REGISTERS_INFO.
6471
01c193c8
AC
64722003-01-19 Andrew Cagney <ac131313@redhat.com>
6473
6474 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
6475 Maintainers'. Update `Various Maintainers'.
6476
dedc2a2b
AC
64772003-01-19 Andrew Cagney <ac131313@redhat.com>
6478
6479 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
6480 * gdbarch.sh (POP_FRAME): Change to function with predicate.
6481 Suppress actual parameters when `-'.
6482 * gdbarch.h, gdbarch.c: Regenerate.
6483
b7261c70
AC
64842003-01-19 Andrew Cagney <ac131313@redhat.com>
6485
6486 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
6487 code handling dummy frames.
6488
dbe9fe58
AC
64892003-01-19 Andrew Cagney <ac131313@redhat.com>
6490
6491 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
6492 (struct frame_unwind): Add field pop.
6493 * frame.h (frame_pop): Declare.
6494 * frame.c (frame_saved_regs_pop): New function.
6495 (trad_frame_unwinder): Add frame_saved_regs_pop.
6496 (frame_pop): New function.
6497 * dummy-frame.c (dummy_frame_pop): New function.
6498 (discard_innermost_dummy): New function.
6499 (generic_pop_dummy_frame): Use discard_innermost_dummy.
6500 (dummy_frame_unwind): Add dummy_frame_pop.
6501 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
6502 * valops.c (hand_function_call): Ditto.
6503 * stack.c (return_command): Ditto.
6504
570b8f7c
AC
65052003-01-18 Andrew Cagney <ac131313@redhat.com>
6506
6507 * cris-tdep.c: Fix function declaration indentation.
6508 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
6509 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
6510 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
6511 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
6512 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
6513 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
6514
65152003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
6516
6517 * README (Unpacking and Installation -- quick overview):
6518 Warn against ".../gdb-5.3/gdb/configure".
6519
494cca16
AC
65202003-01-18 Andrew Cagney <ac131313@redhat.com>
6521
6522 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
6523 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
6524 (struct frame_unwind): Declare opaque.
6525 (dummy_frame_p): Declare function.
6526 * dummy-frame.c (dummy_frame_id_unwind): Make static.
6527 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
6528 * dummy-frame.c: Include "frame-unwind.h".
6529 (dummy_frame_p): New function.
6530 (dummy_frame_unwind): New variable.
6531 * frame.c: Include "frame-unwind.h".
6532 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
6533 to use the new unwind field.
6534 (set_unwind_by_pc): Delete function.
6535 (create_new_frame, get_prev_frame): Set unwind field using
6536 frame_unwind_find_by_pc.
6537 (trad_frame_unwind, trad_frame_unwinder): New variables.
6538 * frame.h (trad_frame_unwind): Declare variable.
6539 (frame_id_unwind_ftype): Delete declaration.
6540 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
6541 (struct frame_unwind): Declare opaque.
6542 (struct frame_info): Replace the fields id_unwind, pc_unwind and
6543 register_unwind with a single unwind pointer.
6544 * frame-unwind.h, frame-unwind.c: New files.
6545 * Makefile.in (SFILES): Add frame-unwind.c.
6546 (frame_unwind_h): Define.
6547 (COMMON_OBS): Add frame-unwind.o.
6548 (frame-unwind.o): Specify dependencies.
6549 (frame.o, dummy-frame.o): Update dependencies.
6550
4efb68b1
AC
65512003-01-18 Andrew Cagney <ac131313@redhat.com>
6552
6553 * ada-valprint.c: Eliminate PTR.
6554 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
6555 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
6556 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
6557 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
6558 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
6559 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
6560 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
6561
a84d24ee
AC
65622003-01-17 Andrew Cagney <ac131313@redhat.com>
6563
762f08a3
AC
6564 * main.c (captured_main): Don't use PTR.
6565 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
6566 * gdbtypes.c (lookup_primitive_typename): Ditto.
6567 (lookup_struct_elt_type): Ditto.
6568 * f-valprint.c (info_common_command): Ditto.
6569 (list_all_visible_commons): Ditto.
6570 * jv-typeprint.c (java_type_print_base): Ditto.
6571
a84d24ee
AC
6572 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
6573 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
6574 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
6575 i386-interix-nat.c and i386-interix-tdep.c. Rename
6576 m68klinux-nat.c and m68klinux-tdep.c. Rename
6577 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
6578 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
6579 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
6580 * main.c (captured_main): Use xfree, not free.
6581
c170fb60
AC
65822003-01-16 Andrew Cagney <ac131313@redhat.com>
6583
6584 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
6585 ID back using a parameter.
6586 * frame.c (frame_id_unwind): Update call.
6587 (frame_saved_regs_id_unwind): Update.
6588 * dummy-frame.c (dummy_frame_id_unwind): Update function.
6589 * dummy-frame.h (struct frame_id): Add opaque declaration.
6590 (dummy_frame_id_unwind): Update declaration.
6591
867f3898
AC
65922003-01-15 Andrew Cagney <ac131313@redhat.com>
6593
6594 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
6595
40622be8 65962003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 6597
40622be8 6598 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 6599
ae66c1fc
EZ
66002003-01-14 Elena Zannoni <ezannoni@redhat.com>
6601
997b089a 6602 Fix PR gdb/898
ae66c1fc
EZ
6603 * breakpoint.c (until_break_command): Add new argument. Use it to
6604 decide whether to stop only at the current frame or not.
6605 * breakpoint.h (until_break_command): Update prototype.
6606 * infcmd.c (until_command): Add new argument to until_break_command
6607 call.
6608 (advance_command): New function.
6609 (_initialize_infcmd): Update help string for 'until' command.
6610 Add new 'advance' command.
6611
a04257e6
DC
66122003-01-14 David Carlton <carlton@math.stanford.edu>
6613
6614 * linespec.c (decode_line_1): Normalize comments.
6615 (set_flags): Ditto.
6616 (locate_first_half): Ditto.
6617 (decode_compound): Ditto.
6618 (symtab_from_filename): Ditto.
6619 (decode_all_digits): Ditto.
6620 (decode_dollar): Ditto.
6621 (find_methods): Ditto.
6622 (find_toplevel_char): Ditto.
6623
1bac305b
AC
66242003-01-13 Andrew Cagney <ac131313@redhat.com>
6625
6626 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
6627 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
6628 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
6629 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
6630 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
6631 * language.c, language.h, m32r-tdep.c: Update copyright.
6632 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
6633 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
6634 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
6635 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
6636 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
6637 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
6638
25caa7a8
EZ
66392003-01-13 Elena Zannoni <ezannoni@redhat.com>
6640
6641 * stabsread.h (process_later, resolve_cfront_continuation):
6642 Obsolete.
6643 Update copyright years.
6644 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
6645 Update copyright year.
6646 * dbxread.c(struct cont_elem): Obsolete.
6647 (process_later, process_now): Obsolete functions.
6648 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
6649 Update copyright year.
6650 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
6651 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
6652 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
6653 (parse_partial_symbols): Obsolete cfront support.
6654 * stabsread.c
6655 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
6656 macros.
6657 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
6658 read_cfront_baseclasses, read_cfront_member_functions,
6659 resolve_cfront_continuation,read_cfront_static_fields,
6660 copy_cfront_struct_fields): Obsolete functions.
6661 (define_symbol, read_one_struct_field): Obsolete cfront support.
6662 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
6663 Update Copyright year.
6664
7789c6f5
EZ
66652003-01-13 Elena Zannoni <ezannoni@redhat.com>
6666
6667 * stack.c (print_frame_info, print_stack_frame_base_stub,
6668 print_stack_frame_base, show_and_print_stack_frame_stub,
6669 show_and_print_stack_frame, print_only_stack_frame_stub,
6670 print_only_stack_frame): Delete functions.
6671 (print_stack_frame_stub): Call print_frame_info instead of
6672 print_frame_info_base.
6673 (print_frame_info_base): Rename to print_frame_info.
6674 (backtrace_command_1): Call print_frame_info, instead of
6675 print_frame_info_base.
6676 (current_frame_command): Call print_stack_frame, instead of
6677 print_only_stack_frame.
6678 (frame_command): Call print_stack_frame, instead of
6679 show_and_print_stack_frame.
6680 (up_command): Ditto.
6681 (down_command): Ditto.
6682 * frame.h (print_only_stack_frame): Delete prototype.
6683 * infrun.c (normal_stop): Call print_stack_frame, instead of
6684 show_and_print_stack_frame.
6685 * thread.c (info_threads_command): Call print_stack_frame, instead
6686 of print_only_stack_frame.
6687
3f5a3016
AC
66882003-01-13 Andrew Cagney <ac131313@redhat.com>
6689
d99ba314
AC
6690 * README (Graphical interface to GDB): Update URL. Point at
6691 gdb/links/.
6692
3f5a3016
AC
6693 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
6694 version match.
6695
083ae935
DJ
66962003-01-13 Daniel Jacobowitz <drow@mvista.com>
6697
6698 * symtab.c (find_pc_sect_line): Don't consider end-of-function
6699 lines.
6700
5365276c
DJ
67012003-01-13 Daniel Jacobowitz <drow@mvista.com>
6702
6703 * thread-db.c (attach_thread): Prototype.
6704 (struct private_thread_info): Remove lwpid. Add thread handle (th),
6705 thread information (ti), and valid flags (th_valid, ti_valid).
6706 (attach_thread): Move target_pid_to_str call to after the thread
6707 is added to GDB's list. Initialize the cache.
6708 (thread_get_info_callback, thread_db_map_id2thr)
6709 (thread_db_get_info): New functions.
6710 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
6711 (thread_db_store_registers, thread_db_thread_alive)
6712 (thread_db_get_thread_local_address): Use them.
6713 (thread_db_pid_to_str): Likewise. Return "Missing" instead
6714 of calling error() for threads in unknown state.
6715
6716 (clear_lwpid_callback): New function.
6717 (thread_db_resume): Use it to clear the cache.
6718
9fc30b6b
DJ
67192003-01-13 Daniel Jacobowitz <drow@mvista.com>
6720
6721 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
6722 (resume_callback): Remove dead code.
6723
8f871025
AC
67242003-01-13 Andrew Cagney <ac131313@redhat.com>
6725
6726 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
6727 predicate.
6728 * gdbarch.h, gdbarch.c: Regenerate.
6729 * stack.c (frame_info): Only initialize the saved registers when
6730 FRAME_INIT_SAVED_REGS_P.
6731 * frame.c (frame_saved_regs_register_unwind): Assert
6732 FRAME_INIT_SAVED_REGS_P.
6733 (deprecated_generic_get_saved_register): Ditto.
6734
3f565f1e
DJ
67352003-01-13 Daniel Jacobowitz <drow@mvista.com>
6736
6737 * source.c (openp): Squelch warning about "filename".
6738
072b1022
DJ
67392003-01-13 Daniel Jacobowitz <drow@mvista.com>
6740
6741 * source.c (openp): If the file does not exist don't necessarily
6742 search the path.
6743
973ccf8b
DJ
67442003-01-13 Daniel Jacobowitz <drow@mvista.com>
6745
6746 Fix PR gdb/872.
6747 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
6748 (integer_types_same_name_p): New function.
6749 (rank_one_type): Use it.
6750 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
6751
030292b7
DJ
67522003-01-13 Daniel Jacobowitz <drow@mvista.com>
6753
6754 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
6755 variables.
6756 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
6757 * configure.in: Add --with-sysroot.
6758 * configure: Regenerated.
6759 * main.c (gdb_sysroot): New variable.
6760 (captured_main): Initialize gdb_sysroot.
6761 * defs.h (gdb_sysroot): New extern declaration.
6762 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
6763
afb5d334
MC
67642003-01-12 Michael Chastain <mec@shout.net>
6765
6766 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
6767
751ceeb4
MC
67682003-01-12 Michael Chastain <mec@shout.net>
6769
6770 * top.c (print_gdb_version): Bump copyright year to 2003.
6771
94cd26f8
DC
67722003-01-12 David Carlton <carlton@bactrian.org>
6773
6774 * linespec.c (symtab_from_filename): Rename variable 's' to
6775 'file_symtab'.
6776
1ce79225
AC
67772003-01-12 Andrew Cagney <ac131313@redhat.com>
6778
6779 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
6780 dummy frame.
6781 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
6782
fa1fd571
AC
67832003-01-12 Andrew Cagney <ac131313@redhat.com>
6784
6785 * d10v-tdep.c: Include "gdb_assert.h".
6786 (d10v_store_return_value): Rewrite to match current interface.
6787 (d10v_extract_struct_value_address): Ditto.
6788 (d10v_extract_return_value): Ditto.
6789 (d10v_gdbarch_init): Set store_restore_value,
6790 extract_struct_value_address and extract_return_value.
6791
68b8d23e
JB
67922003-01-12 J. Brobecker <brobecker@gnat.com>
6793
6794 * hpread.c (set_namestring): New procedure replacing the
6795 SET_NAMESTRING macro.
6796 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
6797 by calls to set_namestring.
6798
67992003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
6800
6801 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
6802 a compilation warning.
6803 (hpread_process_one_debug_symbol): Likewise.
6804
88d262ca
DC
68052003-01-10 David Carlton <carlton@math.stanford.edu>
6806
6807 * linespec.c (decode_line_1): Rename variable 's' to
6808 'file_symtab'.
6809 (decode_all_digits): Rename argument 's' to 'file_symtab'.
6810 (decode_dollar): Ditto.
6811 (decode_variable): Ditto.
6812 (symbol_found): Ditto.
6813
86669319
MC
68142003-01-09 Michael Chastain <mec@shout.net>
6815
6816 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
6817
616a9dc4
CV
68182003-01-07 Corinna Vinschen <vinschen@redhat.com>
6819
6820 * win32-nat.c (set_process_privilege): New function.
6821 (child_attach): Call set_process_privilege() to enable the
6822 SE_DEBUG_NAME user privilege if available in process token.
6823
3269bcfa
JB
68242003-01-10 J. Brobecker <brobecker@gnat.com>
6825
6826 * hpread.c (hpread_process_one_debug_symbol): Fix a small
6827 compilation error in the previous revision.
6828
2b0ee454
DC
68292003-01-09 David Carlton <carlton@math.stanford.edu>
6830
6831 * linespec.c: Update copyright.
6832
b3ba1b44
DJ
68332003-01-09 Daniel Jacobowitz <drow@mvista.com>
6834
6835 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
6836 than inferior_ptid.
6837 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
6838
4ef3f3be
AC
68392003-01-09 Andrew Cagney <ac131313@redhat.com>
6840
479ab5a0
AC
6841 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
6842 Update comments.
6843 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
6844 (frame_saved_regs_zalloc): Update.
6845 (frame_saved_regs_register_unwind): Update.
6846 (create_new_frame): Update.
6847 (get_prev_frame): Update.
6848 (frame_extra_info_zalloc): Update.
6849 (deprecated_get_frame_saved_regs): Update.
6850 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
6851 * cris-tdep.c: Update comment.
6852
bde58177
AC
6853 * somsolib.h: Fix function indentation.
6854 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
6855 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
6856 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
6857 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
6858 * somsolib.c, inftarg.c: Remove assignment in if conditional.
6859
4ef3f3be
AC
6860 * infrun.c (follow_fork): Use ISO C definition.
6861 * expprint.c (print_subexp): Use xfree instead of free.
6862 * charset.c: Include "gdb_string.h" instead of <string.h>.
6863 (register_iconv_charsets): Use ISO C definition.
6864 (host_charset, target_charset): Ditto.
6865 * Makefile.in (charset.o): Update dependencies.
6866 (mi-cmd-env.o): Update dependencies.
6867
1c615f7a
AC
68682003-01-08 Andrew Cagney <cagney@redhat.com>
6869
6870 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
6871 get_frame_base.
6872
c9a1dc08
AC
68732003-01-08 Andrew Cagney <ac131313@redhat.com>
6874
6875 * gdb_mbuild.sh: Add --keep option. When specified, keep the
6876 build directories. Save edited gdb output in Mbuild.log. If a
6877 build fails, remove any final GDB executable.
6878
dbad9d94
AC
68792003-01-08 Andrew Cagney <ac131313@redhat.com>
6880
6881 * gdb_mbuild.sh: Edit the output of `maint print architecture'
6882 replacing hex constants with function names and stripping leading
6883 file name directory prefixes.
6884
8d357cca
AC
68852003-01-08 Andrew Cagney <cagney@redhat.com>
6886
6887 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
6888 get_frame_base.
6889
bca02a8a
DC
68902003-01-08 David Carlton <carlton@math.stanford.edu>
6891
6892 * linespec.c (decode_line_1): Move code into decode_variable.
6893 (decode_variable): New function.
6894
7f8ab3a0
AC
68952003-01-08 Andrew Cagney <ac131313@redhat.com>
6896
6897 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
6898
7b5849cc
AC
68992003-01-08 Andrew Cagney <cagney@redhat.com>
6900
6901 * cris-tdep.c (cris_frame_init_saved_regs): Use
6902 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
6903 saved_regs buffer.
6904 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6905 (sh64_nofp_frame_init_saved_regs): Ditto.
6906 (sh_fp_frame_init_saved_regs): Ditto.
6907 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
6908 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6909 * mcore-tdep.c (analyze_dummy_frame): Ditto.
6910 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6911
72a5efb3
DJ
69122003-01-08 Daniel Jacobowitz <drow@mvista.com>
6913
6914 * minsyms.c (lookup_minimal_symbol): Update comment.
6915 (lookup_minimal_symbol_text): Update comment. Use the hash table.
6916 (lookup_minimal_symbol_solib_trampoline): Likewise.
6917
11c02a10
AC
69182003-01-08 Andrew Cagney <cagney@redhat.com>
6919
aab3ea25
AC
6920 * d10v-tdep.c (d10v_init_extra_frame_info): Use
6921 frame_relative_level.
6922
da50a4b7
AC
6923 * alpha-tdep.c: Use get_frame_extra_info.
6924 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6925 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
6926 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6927 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
6928
11c02a10
AC
6929 * alpha-tdep.c: Use get_next_frame.
6930 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6931 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6932 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
6933 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
6934 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
6935 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
6936 * xstormy16-tdep.c: Ditto.
6937
1e2330ba
AC
69382003-01-07 Andrew Cagney <cagney@redhat.com>
6939
6940 * alpha-tdep.c: Use get_frame_base.
6941 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6942 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6943 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6944 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6945 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
6946 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
6947 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
6948 * config/sparc/tm-sparc.h: Ditto.
6949
2d75187b
AC
69502003-01-07 Andrew Cagney <cagney@redhat.com>
6951
6952 * frame.c (deprecated_get_frame_context): New function.
6953 (deprecated_set_frame_context): New function.
6954 * frame.h (deprecated_get_frame_context): Declare.
6955 (deprecated_set_frame_context): Declare.
6956 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
6957 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
6958
483d36b2
AC
69592003-01-07 Andrew Cagney <cagney@redhat.com>
6960
6961 * frame.c (deprecated_set_frame_next_hack): New function.
6962 (deprecated_set_frame_prev_hack): New function.
6963 * frame.h (deprecated_set_frame_next_hack): Declare.
6964 (deprecated_set_frame_prev_hack): Declare.
6965 * mcore-tdep.c (analyze_dummy_frame): Use
6966 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
6967 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6968
14e91ac5
DC
69692003-01-07 David Carlton <carlton@math.stanford.edu>
6970
6971 * linespec.c (decode_line_1): Move code into decode_dollar.
6972 (decode_dollar): New function.
6973
b0c6b05c
AC
69742003-01-07 Andrew Cagney <cagney@redhat.com>
6975
6976 * arm-tdep.c (arm_init_extra_frame_info): Use
6977 deprecated_update_frame_base_hack.
6978 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
6979 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6980 (fix_frame_pointer): Ditto.
6981 (mn10300_analyze_prologue): Ditto.
6982
a00a19e9
AC
69832003-01-07 Andrew Cagney <cagney@redhat.com>
6984
6985 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
6986 extra_info using frame_extra_info_zalloc.
6987 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6988 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
6989 (sh64_init_extra_frame_info): Ditto.
6990 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
6991 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
6992 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6993 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
6994 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
6995 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
6996 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
6997 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
6998 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
6999 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
7000 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7001 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
7002
7003 * mn10300-tdep.c (analyze_dummy_frame): Use
7004 deprecated_set_frame_extra_info_hack.
7005 * mcore-tdep.c (analyze_dummy_frame): Ditto.
7006
1fb4c65b
JB
70072003-01-07 J. Brobecker <brobecker@gnat.com>
7008
7009 * mdebugread.c (parse_symbol): Skip stProc entries which storage
7010 class is not scText. These do not define "real" procedures.
7011 (parse_partial_symbols): Likewise.
7012
9fe7d6bf
MS
70132003-01-06 Michael Snyder <msnyder@redhat.com>
7014
7015 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
7016
f6c609c4
AC
70172003-01-06 Andrew Cagney <ac131313@redhat.com>
7018
7019 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
7020 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
7021 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
7022 deprecated_frame_xmalloc_with_cleanup.
7023 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
7024 deprecated_frame_xmalloc.
7025 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
7026 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
7027
d995ff4b
AC
70282003-01-06 Andrew Cagney <cagney@redhat.com>
7029
84dc46cb
AC
7030 * x86-64-linux-tdep.c: Include "osabi.h".
7031 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
7032
d995ff4b
AC
7033 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
7034
66140c26
AC
70352003-01-06 Andrew Cagney <cagney@redhat.com>
7036
7037 * MAINTAINERS (Target Instruction Set Architectures): Update
7038 arm-elf. Can be built with -Werror, has been multiarched.
7039
7040 * value.h (unpack_long): Make buffer parameter constant.
7041 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
7042 * scm-lang.h (scm_parse): Ditto.
7043 * defs.h (extract_typed_address, extract_address): Ditto.
7044 (extract_long_unsigned_integer): Ditto.
7045 * inferior.h (unsigned_pointer_to_address): Ditto.
7046 (signed_pointer_to_address): Ditto.
7047 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
7048 * gdbarch.h, gdbarch.c: Regenerate.
7049 * findvar.c (extract_long_unsigned_integer): Update.
7050 (extract_address): Update.
7051 (extract_typed_address): Update.
7052 (unsigned_pointer_to_address): Update.
7053 * values.c (unpack_long): Update.
7054 (unpack_double): Update.
7055 (unpack_pointer): Update.
7056 (unpack_field_as_long): Update.
7057 * d10v-tdep.c (d10v_pointer_to_address): Update.
7058 * avr-tdep.c (avr_pointer_to_address): Update.
7059 * scm-lang.c (scm_unpack): Update.
7060 * findvar.c (signed_pointer_to_address): Update.
7061
b089b3da
ML
70622003-01-06 Michal Ludvig <mludvig@suse.cz>
7063
7064 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
7065 since it is in i386-tdep.c.
7066
aff87235
JB
70672003-01-06 J. Brobecker <brobecker@gnat.com>
7068
7069 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
7070 failure introduced in the previous change.
7071
34f5e845
MC
70722003-01-05 Michael Chastain <mec@shout.net>
7073
7074 * README: Remove references to deleted remote-*.c files:
7075 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
7076 remote-nrom.c, remote-os9k.c, remote-udi.c.
7077
28bcfd30
MK
70782003-01-05 Mark Kettenis <kettenis@gnu.org>
7079
7080 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
7081 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
7082 i386_get_longjmp_target.
7083
15a5b3ee
AC
70842003-01-05 Andrew Cagney <ac131313@redhat.com>
7085
7086 * arm-tdep.c (prologue_cache): Change to a pointer.
7087 (_initialize_arm_tdep): Allocate prologue_cache.
7088 (check_prologue_cache): Update.
7089 (save_prologue_cache): Update.
7090 (arm_gdbarch_init): Update.
7091
c263362b
DJ
70922003-01-04 Daniel Jacobowitz <drow@mvista.com>
7093
7094 * stabsread.c (update_method_name_from_physname): Call complaint()
7095 instead of error.
7096
51603483
DJ
70972003-01-04 Daniel Jacobowitz <drow@mvista.com>
7098
7099 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
7100 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
7101 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
7102
7103 * blockframe.c: Include "gdbcmd.h" and "command.h".
7104 (backtrace_below_main): New variable.
7105 (file_frame_chain_valid, func_frame_chain_valid)
7106 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
7107 (generic_func_frame_chain_valid): Remove functions.
7108 (frame_chain_valid, do_flush_frames_sfunc): New functions.
7109 (_initialize_blockframe): New function.
7110 * Makefile.in (blockframe.o): Update dependencies.
7111 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
7112 comment. Call frame_chain_valid ().
7113 * frame.h: Remove old prototypes. Add prototype for
7114 frame_chain_valid and update comments to match.
7115 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
7116 Remove old comment.
7117 * gdbarch.h: Regenerated.
7118 * gdbarch.c: Regenerated.
7119
7120 * alpha-tdep.c (alpha_gdbarch_init): Don't call
7121 set_gdbarch_frame_chain_valid.
7122 * avr-tdep.c (avr_gdbarch_init): Likewise.
7123 * cris-tdep.c (cris_gdbarch_init): Likewise.
7124 * frv-tdep.c (frv_gdbarch_init): Likewise.
7125 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7126 * i386-tdep.c (i386_svr4_init_abi): Likewise.
7127 (i386_nw_init_abi): Likewise.
7128 (i386_gdbarch_init): Likewise.
7129 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
7130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
7131 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
7132 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
7133 * mips-tdep.c (mips_gdbarch_init): Likewise.
7134 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
7135 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
7136 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7137 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7138 * s390-tdep.c (s390_gdbarch_init): Likewise.
7139 * sh-tdep.c (sh_gdbarch_init): Likewise.
7140 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
7141 * v850-tdep.c (v850_gdbarch_init): Likewise.
7142 * vax-tdep.c (vax_gdbarch_init): Likewise.
7143 * x86-64-tdep.c (x86_64_init_abi): Likewise.
7144
7145 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
7146 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
7147 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
7148 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
7149 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
7150 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
7151 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
7152 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
7153
b00a8037
DJ
71542002-01-04 Daniel Jacobowitz <drow@mvista.com>
7155
7156 * Makefile.in (acconfig_h): Remove incorrect macro.
7157 (config_h): Define.
7158 (osabi.o): Update dependencies.
7159 * configure.tgt: Set gdb_osabi based on target triplet.
7160 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
7161 * configure: Regenerated.
7162 * config.in: Regenerated.
7163 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
7164 (GDB_OSABI_DEFAULT): Define if not already defined.
7165 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
7166 (set_osabi_string): New variables.
7167 (gdbarch_register_osabi): Add new OS ABI to
7168 gdb_osabi_available_names.
7169 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
7170 (set_osabi, show_osabi): New functions.
7171 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
7172
4be87837
DJ
71732003-01-04 Daniel Jacobowitz <drow@mvista.com>
7174
7175 * arch-utils.c (gdbarch_info_init): Set osabi to
7176 GDB_OSABI_UNINITIALIZED.
7177 * gdbarch.sh: Add osabi to struct gdbarch and to struct
7178 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
7179 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
7180 * gdbarch.c: Regenerated.
7181 * gdbarch.h: Regenerated.
7182 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
7183 there's no BFD.
7184 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
7185 * osabi.h (enum gdb_osabi): Move to defs.h.
7186 (gdbarch_init_osabi): Update prototype.
7187 * defs.h (enum gdb_osabi): Moved here.
7188 * Makefile.in: Update dependencies.
7189
7190 * alpha-tdep.h: Don't include "osabi.h".
7191 (struct gdbarch_tdep): Remove osabi member.
7192 * alpha-tdep.c: Include "osabi.h".
7193 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7194 iterate over arches. Update call to gdbarch_init_osabi.
7195 (alpha_dump_tdep): Don't dump osabi.
7196 * alpha-linux-tdep.c: Include "osabi.h".
7197 * alpha-osf1-tdep.c: Include "osabi.h".
7198 * alphafbsd-tdep.c: Include "osabi.h".
7199 * alphanbsd-tdep.c: Include "osabi.h".
7200
7201 * arm-tdep.h: Don't include "osabi.h".
7202 (struct gdbarch_tdep): Remove osabi member.
7203 * arm-tdep.c: Include "osabi.h".
7204 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7205 iterate over arches. Update call to gdbarch_init_osabi.
7206 (arm_dump_tdep): Don't dump osabi.
7207 * arm-linux-tdep.c: Include "osabi.h".
7208 * armnbsd-tdep.c: Include "osabi.h".
7209
7210 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
7211 Update call to gdbarch_init_osabi.
7212
7213 * i386-tdep.h: Don't include "osabi.h".
7214 (struct gdbarch_tdep): Remove osabi member.
7215 * i386-tdep.c: Include "osabi.h".
7216 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7217 iterate over arches. Update call to gdbarch_init_osabi.
7218 (i386_dump_tdep): Don't dump osabi.
7219 * i386-linux-tdep.c: Include "osabi.h".
7220 * i386-sol2-tdep.c: Include "osabi.h".
7221 * i386bsd-tdep.c: Include "osabi.h".
7222 * i386gnu-tdep.c: Include "osabi.h".
7223 * i386ly-tdep.c: Include "osabi.h".
7224 * i386nbsd-tdep.c: Include "osabi.h".
7225 * i386obsd-tdep.c: Include "osabi.h".
7226
7227 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
7228 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7229 check osabi when iterating over arches. Update call to
7230 gdbarch_init_osabi.
7231 (mips_dump_tdep): Don't dump osabi.
7232
7233 * ns32k-tdep.h: Don't include "osabi.h".
7234 (struct gdbarch_tdep): Remove.
7235 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
7236 gdbarch_lookup_osabi. Don't iterate over arches. Don't
7237 allocate tdep. Update call to gdbarch_init_osabi.
7238 (ns32k_dump_tdep): Remove.
7239 (_initialize_ns32k_tdep): Update call to gdbarch_register.
7240 * ns32knbsd-tdep.c: Include "osabi.h".
7241
7242 * ppc-tdep.h: Don't include "osabi.h".
7243 (struct gdbarch_tdep): Remove osabi member.
7244 * rs6000-tdep.c: Include "osabi.h".
7245 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
7246 osabi when iterating over arches. Update call to
7247 gdbarch_init_osabi.
7248 (rs6000_dump_tdep): Don't dump osabi.
7249 * ppc-linux-tdep.c: Include "osabi.h".
7250 * ppcnbsd-tdep.c: Include "osabi.h".
7251
7252 * sh-tdep.h: Don't include "osabi.h".
7253 (struct gdbarch_tdep): Remove osabi member.
7254 * sh-tdep.c: Include "osabi.h".
7255 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7256 iterate over arches. Update call to gdbarch_init_osabi.
7257 (sh_dump_tdep): Don't dump osabi.
7258 * shnbsd-tdep.c: Include "osabi.h".
7259
7260 * sparc-tdep.c: Include "osabi.h".
7261 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7262 iterate over arches. Update call to gdbarch_init_osabi.
7263 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
7264 tdep structure.
7265
7266 * vax-tdep.h: Don't include "osabi.h".
7267 (struct gdbarch_tdep): Remove.
7268 * vax-tdep.c: Include "osabi.h".
7269 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7270 iterate over arches. Don't allocate tdep. Update call
7271 to gdbarch_init_osabi.
7272 (vax_dump_tdep): Remove.
7273 (_initialize_vax_tdep): Update call to gdbarch_register.
7274
a881cf8e
DJ
72752003-01-04 Daniel Jacobowitz <drow@mvista.com>
7276
7277 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
7278 entirely.
7279 (breakpoint_re_set_one): Don't fetch the value for a disabled
7280 watchpoint.
7281
1e698235
DJ
72822003-01-04 Daniel Jacobowitz <drow@mvista.com>
7283
7284 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
7285 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
7286 (COERCE_FLOAT_TO_DOUBLE): Remove.
7287 * gdbarch.c: Regenerate.
7288 * gdbarch.h: Regenerate.
7289 * Makefile.in: Remove value_h from gdbarch_h.
7290 * valops.c (coerce_float_to_double): New variable.
7291 (default_coerce_float_to_double): Remove.
7292 (standard_coerce_float_to_double): Remove.
7293 (value_arg_coerce): Use coerce_float_to_double.
7294 (_initialize_valops): Add "set coerce-float-to-double".
7295 * value.h (default_coerce_float_to_double): Remove prototype.
7296 (standard_coerce_float_to_double): Remove prototype.
7297
7298 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
7299 prototyped.
7300 * mdebugread.c (parse_symbol): Likewise.
7301 * stabsread.c (define_symbol): Mark all functions as prototyped.
7302
7303 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
7304 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
7305 set_gdbarch_coerce_float_to_double.
7306 * arm-tdep.c (arm_gdbarch_init): Likewise.
7307 * frv-tdep.c (frv_gdbarch_init): Likewise.
7308 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
7309 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
7310 * mips-tdep.c (mips_gdbarch_init): Likewise.
7311 (mips_coerce_float_to_double): Remove.
7312 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7313 (rs6000_coerce_float_to_double): Remove.
7314 * s390-tdep.c (s390_gdbarch_init): Likewise.
7315 * sh-tdep.c (sh_gdbarch_init): Likewise.
7316 (sh_coerce_float_to_double): Remove.
7317 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
7318 (sparc_coerce_float_to_double): Remove.
7319 * v850-tdep.c (v850_gdbarch_init): Likewise.
7320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7321 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7322 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
7323 (hppa_coerce_float_to_double): Remove prototype.
7324 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7325
f436a26a
DJ
73262003-01-04 Daniel Jacobowitz <drow@mvista.com>
7327
7328 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
7329
248f8055
DJ
73302003-01-04 Daniel Jacobowitz <drow@mvista.com>
7331
7332 Suggested by Stewart Brown <sb24@avaya.com>:
7333 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
7334 in recursive calls. Handle TYPE_CODE_TYPEDEF.
7335 (c_type_print_varspec_suffix): Likewise.
7336
72cfdc76
MK
73372003-01-04 Mark Kettenis <kettenis@gnu.org>
7338
bfd260bb
MK
7339 * configure.in: Don't set and AC_SUBST SUBDIRS.
7340 * configure: Regenerated.
7341
72cfdc76
MK
7342 * configure.in: Remove code dealing with shared libraries.
7343 * Makefile.in: Remove HLDFLAGS and HLDENV.
7344 * configure: Regenerated.
7345
c8b8a898
AC
73462003-01-04 Andrew Cagney <ac131313@redhat.com>
7347
7348 * frame.c (deprecated_frame_xmalloc): New function.
7349 (deprecated_set_frame_saved_regs_hack): New function.
7350 (deprecated_set_frame_extra_info_hack): New function.
7351 * frame.h (deprecated_frame_xmalloc): Declare.
7352 (deprecated_set_frame_saved_regs_hack): Declare.
7353 (deprecated_set_frame_extra_info_hack): Declare.
7354
14abd0fb
MK
73552003-01-04 Mark Kettenis <kettenis@gnu.org>
7356
8ee53726
MK
7357 * configure.in: Move code that provides the --enable-gdbtk option
7358 right after the code that handles the --enable-tui option, and
7359 polish it somewhat.
7360 * configure: Regenerated.
7361
14abd0fb
MK
7362 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
7363 AC_CHECK_FUNCS and remove the old check for pread64.
7364 * acinclude.m4 (AC_GNU_SOURCE): New macro.
7365 * acconfig.h (_GNU_SOURCE): Add.
7366 (HAVE_PREAD64): Remove.
7367 * configure, aclocal.m4, config.in: Regenerated.
7368
b2fb4676
AC
73692003-01-03 Andrew Cagney <ac131313@redhat.com>
7370
7371 * alpha-tdep.c: Use get_frame_saved_regs.
7372 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7373 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
7374 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
7375 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
7376 * vax-tdep.c, xstormy16-tdep.c: Ditto.
7377
8dcde887
MK
73782003-01-03 Mark Kettenis <kettenis@gnu.org>
7379
7380 * configure.in: Remove all use of the SUBDIRS variable; add
7381 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
7382 code providing the --enable-multi-ice option, and move it right in
7383 front of the code that checks whether gdbserver is supported.
7384 Polish that too.
7385 * configure: Regenerated.
7386 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
7387 @SUBDIRS@.
7388
8ccd593b
AC
73892003-01-03 Andrew Cagney <cagney@redhat.com>
7390
7391 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
7392 * avr-tdep.c, cris-tdep.c: Ditto.
7393 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
7394 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
7395
91151a06
MK
73962003-01-03 Mark Kettenis <kettenis@gnu.org>
7397
7398 * configure.in: Remove --enable-netrom option.
7399 * configure: Regenerated.
7400
8fe84d01
MK
74012003-01-03 Mark Kettenis <kettenis@gnu.org>
7402
7403 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
7404 declaration for `struct re_pattern_buffer' instead.
7405 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
7406
f0394be6
JB
74072003-01-03 J. Brobecker <brobecker@gnat.com>
7408
7409 * mdebugread.c (parse_symbol): Count until the stEnd matching
7410 the structure name.
7411
27e9bf90
MK
74122003-01-02 Mark Kettenis <kettenis@gnu.org>
7413
93d331ba
MK
7414 * configure.in: Remove --with-cpu option.
7415 subscripts. Remove evil changequotes here.
7416 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
7417 * config.in, configure: Regenerated.
7418
27e9bf90
MK
7419 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
7420 * configure.in: Cleanup section that sources GDB and BFD configure
7421 subscripts. Remove evil changequotes here.
7422 * config.in, configure: Regenerated.
7423
50abf9e5
AC
74242003-01-02 Andrew Cagney <ac131313@redhat.com>
7425
7426 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
7427 frame accessor methods.
7428 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7429 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
7430 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
7431 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
7432 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
7433 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
7434 * z8k-tdep.c: Ditto.
7435
287c1a40
MK
74362003-01-02 Mark Kettenis <kettenis@gnu.org>
7437
f5dbc56d
MK
7438 * configure.in: Remove UI_OUT configuration code.
7439 * ada-lang.c: Update assuming UI_OUT is always true.
7440 * Makefile.in (UIOUT_CFLAGS): Remove.
7441 * configure: Regenerated.
7442 * TODO: Remove blurb about elimination of -DUI_OUT.
7443
627af7ea
MK
7444 * configure.in: Move code that provides the --enable-gdbcli,
7445 --enable-gdbmi options right before the code that handles the
7446 --enable-tui option. Polish a bit.
7447 * configure: Regenerated.
7448
06825bd1
MK
7449 * configure.in: Rewrite check for GNU regex and the
7450 --without-included regex option, and move it into the "Checks for
7451 library functions" section. This makes us use the system regex
7452 again by default on systems with version 2 of the GNU C library.
7453 This was apparently broken.
7454 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
7455 * acconfig.h (USE_INCLUDED_REGEX): Remove.
7456 * config.in, configure: Regenerated.
7457
287c1a40
MK
7458 * configure.in: Move code that provides the --enable-tui option
7459 before the "Checks for libraries" section. Polish the code
7460 somewhat and set need_curses to yes if we build the TUI. Rewrite
7461 code that looks for a library providing termcap functionality to
7462 match more closely what's done in the Readline library, and move
7463 it into to the "Checks for libraries" section.
7464 * configure: Regenerated.
7465 * Makefile.in (TERMCAP): Remove variable.
7466 * config/i386/go32.mh (TERMCAP): Remove variable.
7467
684e56bf
AC
74682003-01-02 Andrew Cagney <ac131313@redhat.com>
7469
7470 * MAINTAINERS: Mention gdb_mbuild.sh.
7471 * gdb_mbuild.sh: Rewrite.
7472
e1ea1d75
MK
74732003-01-02 Mark Kettenis <kettenis@gnu.org>
7474
7475 * configure.in: Fix typo in last change.
7476 * config.in, configure: Regenerated.
7477
1b831c93
AC
74782003-01-02 Andrew Cagney <ac131313@redhat.com>
7479
7480 * valarith.c (value_binop): Delete obsolete code and comments.
7481 * configure.host: Ditto.
7482 * buildsym.h (make_blockvector): Ditto.
7483 * buildsym.c (make_blockvector): Ditto.
7484 * defs.h (enum language): Ditto.
7485 (chill_demangle): Ditto.
7486 * elfread.c (elf_symtab_read): Ditto.
7487 * dwarfread.c (CHILL_PRODUCER): Ditto.
7488 (set_cu_language): Ditto.
7489 (handle_producer): Ditto.
7490 * expprint.c (print_subexp): Ditto.
7491 * gdbtypes.c (chill_varying_type): Ditto.
7492 * gdbtypes.h (builtin_type_chill_bool): Ditto.
7493 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
7494 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
7495 (chill_varying_type): Ditto.
7496 * language.h (_LANG_chill): Ditto.
7497 * language.c (binop_result_type, integral_type): Ditto.
7498 (character_type, string_type, structured_type): Ditto.
7499 (lang_bool_type, binop_type_check): Ditto.
7500 * stabsread.h (os9k_stabs): Ditto.
7501 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
7502 (define_symbol, read_type, read_struct_fields): Ditto.
7503 (read_array_type, read_enum_type, read_huge_number): Ditto.
7504 (read_range_type, start_stabs): Ditto.
7505 * symfile.c (init_filename_language_table): Ditto.
7506 (add_psymbol_with_dem_name_to_list): Ditto.
7507 * symtab.c (symbol_init_language_specific): Ditto.
7508 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
7509 * symtab.h (struct general_symbol_info): Ditto.
7510 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
7511 * typeprint.c (typedef_print): Ditto.
7512 * utils.c (fprintf_symbol_filtered): Ditto.
7513 * valops.c (value_cast, search_struct_field, value_slice): Delete
7514 obsolete code.
7515 (varying_to_slice): Delete function.
7516 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
7517 (varying_to_slice): Delete declaration.
7518 * MAINTAINERS: Update.
7519
8bb2c122
MK
75202003-01-02 Mark Kettenis <kettenis@gnu.org>
7521
97bf5e38
MK
7522 * configure.in: Reorganize "Checks for library functions section"
7523 a bit. Remove check for `btowc' and `isascii' functions.
7524 * configure: Regenerated.
7525
5ee754fc
MK
7526 * acconfig.h (_MSE_INT_H): Remove.
7527 * configure.in: Create "Checks for header files" section, and move
7528 appropriate tests there. Don't check for objlist.h, wchar.h,
7529 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
7530 misdetection fix. Also add "Checks for types", "Checks for
7531 compiler characteristics" and "Checks for library functions"
7532 sections.
7533 * config.in, configure: Regenerated.
7534
8bb2c122
MK
7535 * configure.in: Create "Checks for programs" section, and move
7536 appropriate tests there.
7537
9a156167
MK
75382003-01-01 Mark Kettenis <kettenis@gnu.org>
7539
7540 * configure.in: Create "Checks for libraries" section, and move
7541 appropriate tests there. Cleanup check for wctype in libw. Use
7542 AC_SEARCH_LIBS to see whether we need libsocket.
7543 * configure: Regenerated.
7544
a80e2bcb 7545For older changes see ChangeLog-2002
c906108c
SS
7546\f
7547Local Variables:
7548mode: change-log
7549left-margin: 8
7550fill-column: 74
7551version-control: never
7552End:
This page took 0.758194 seconds and 4 git commands to generate.