* symtab.c (find_pc_sect_line): Don't consider end-of-function
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2
3 * symtab.c (find_pc_sect_line): Don't consider end-of-function
4 lines.
5
6 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
7
8 * thread-db.c (attach_thread): Prototype.
9 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10 thread information (ti), and valid flags (th_valid, ti_valid).
11 (attach_thread): Move target_pid_to_str call to after the thread
12 is added to GDB's list. Initialize the cache.
13 (thread_get_info_callback, thread_db_map_id2thr)
14 (thread_db_get_info): New functions.
15 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
16 (thread_db_store_registers, thread_db_thread_alive)
17 (thread_db_get_thread_local_address): Use them.
18 (thread_db_pid_to_str): Likewise. Return "Missing" instead
19 of calling error() for threads in unknown state.
20
21 (clear_lwpid_callback): New function.
22 (thread_db_resume): Use it to clear the cache.
23
24 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
25
26 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
27 (resume_callback): Remove dead code.
28
29 2003-01-13 Andrew Cagney <ac131313@redhat.com>
30
31 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
32 predicate.
33 * gdbarch.h, gdbarch.c: Regenerate.
34 * stack.c (frame_info): Only initialize the saved registers when
35 FRAME_INIT_SAVED_REGS_P.
36 * frame.c (frame_saved_regs_register_unwind): Assert
37 FRAME_INIT_SAVED_REGS_P.
38 (deprecated_generic_get_saved_register): Ditto.
39
40 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
41
42 * source.c (openp): Squelch warning about "filename".
43
44 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
45
46 * source.c (openp): If the file does not exist don't necessarily
47 search the path.
48
49 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
50
51 Fix PR gdb/872.
52 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
53 (integer_types_same_name_p): New function.
54 (rank_one_type): Use it.
55 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
56
57 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
58
59 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
60 variables.
61 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
62 * configure.in: Add --with-sysroot.
63 * configure: Regenerated.
64 * main.c (gdb_sysroot): New variable.
65 (captured_main): Initialize gdb_sysroot.
66 * defs.h (gdb_sysroot): New extern declaration.
67 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
68
69 2003-01-12 Michael Chastain <mec@shout.net>
70
71 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
72
73 2003-01-12 Michael Chastain <mec@shout.net>
74
75 * top.c (print_gdb_version): Bump copyright year to 2003.
76
77 2003-01-12 David Carlton <carlton@bactrian.org>
78
79 * linespec.c (symtab_from_filename): Rename variable 's' to
80 'file_symtab'.
81
82 2003-01-12 Andrew Cagney <ac131313@redhat.com>
83
84 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
85 dummy frame.
86 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
87
88 2003-01-12 Andrew Cagney <ac131313@redhat.com>
89
90 * d10v-tdep.c: Include "gdb_assert.h".
91 (d10v_store_return_value): Rewrite to match current interface.
92 (d10v_extract_struct_value_address): Ditto.
93 (d10v_extract_return_value): Ditto.
94 (d10v_gdbarch_init): Set store_restore_value,
95 extract_struct_value_address and extract_return_value.
96
97 2003-01-12 J. Brobecker <brobecker@gnat.com>
98
99 * hpread.c (set_namestring): New procedure replacing the
100 SET_NAMESTRING macro.
101 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
102 by calls to set_namestring.
103
104 2003-01-11 J. Brobecker <brobecker@gnat.com>
105
106 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
107 a compilation warning.
108 (hpread_process_one_debug_symbol): Likewise.
109
110 2003-01-10 David Carlton <carlton@math.stanford.edu>
111
112 * linespec.c (decode_line_1): Rename variable 's' to
113 'file_symtab'.
114 (decode_all_digits): Rename argument 's' to 'file_symtab'.
115 (decode_dollar): Ditto.
116 (decode_variable): Ditto.
117 (symbol_found): Ditto.
118
119 2003-01-09 Michael Chastain <mec@shout.net>
120
121 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
122
123 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
124
125 * win32-nat.c (set_process_privilege): New function.
126 (child_attach): Call set_process_privilege() to enable the
127 SE_DEBUG_NAME user privilege if available in process token.
128
129 2003-01-10 J. Brobecker <brobecker@gnat.com>
130
131 * hpread.c (hpread_process_one_debug_symbol): Fix a small
132 compilation error in the previous revision.
133
134 2003-01-09 David Carlton <carlton@math.stanford.edu>
135
136 * linespec.c: Update copyright.
137
138 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
139
140 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
141 than inferior_ptid.
142 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
143
144 2003-01-09 Andrew Cagney <ac131313@redhat.com>
145
146 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
147 Update comments.
148 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
149 (frame_saved_regs_zalloc): Update.
150 (frame_saved_regs_register_unwind): Update.
151 (create_new_frame): Update.
152 (get_prev_frame): Update.
153 (frame_extra_info_zalloc): Update.
154 (deprecated_get_frame_saved_regs): Update.
155 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
156 * cris-tdep.c: Update comment.
157
158 * somsolib.h: Fix function indentation.
159 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
160 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
161 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
162 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
163 * somsolib.c, inftarg.c: Remove assignment in if conditional.
164
165 * infrun.c (follow_fork): Use ISO C definition.
166 * expprint.c (print_subexp): Use xfree instead of free.
167 * charset.c: Include "gdb_string.h" instead of <string.h>.
168 (register_iconv_charsets): Use ISO C definition.
169 (host_charset, target_charset): Ditto.
170 * Makefile.in (charset.o): Update dependencies.
171 (mi-cmd-env.o): Update dependencies.
172
173 2003-01-08 Andrew Cagney <cagney@redhat.com>
174
175 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
176 get_frame_base.
177
178 2003-01-08 Andrew Cagney <ac131313@redhat.com>
179
180 * gdb_mbuild.sh: Add --keep option. When specified, keep the
181 build directories. Save edited gdb output in Mbuild.log. If a
182 build fails, remove any final GDB executable.
183
184 2003-01-08 Andrew Cagney <ac131313@redhat.com>
185
186 * gdb_mbuild.sh: Edit the output of `maint print architecture'
187 replacing hex constants with function names and stripping leading
188 file name directory prefixes.
189
190 2003-01-08 Andrew Cagney <cagney@redhat.com>
191
192 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
193 get_frame_base.
194
195 2003-01-08 David Carlton <carlton@math.stanford.edu>
196
197 * linespec.c (decode_line_1): Move code into decode_variable.
198 (decode_variable): New function.
199
200 2003-01-08 Andrew Cagney <ac131313@redhat.com>
201
202 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
203
204 2003-01-08 Andrew Cagney <cagney@redhat.com>
205
206 * cris-tdep.c (cris_frame_init_saved_regs): Use
207 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
208 saved_regs buffer.
209 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
210 (sh64_nofp_frame_init_saved_regs): Ditto.
211 (sh_fp_frame_init_saved_regs): Ditto.
212 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
213 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
214 * mcore-tdep.c (analyze_dummy_frame): Ditto.
215 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
216
217 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
218
219 * minsyms.c (lookup_minimal_symbol): Update comment.
220 (lookup_minimal_symbol_text): Update comment. Use the hash table.
221 (lookup_minimal_symbol_solib_trampoline): Likewise.
222
223 2003-01-08 Andrew Cagney <cagney@redhat.com>
224
225 * d10v-tdep.c (d10v_init_extra_frame_info): Use
226 frame_relative_level.
227
228 * alpha-tdep.c: Use get_frame_extra_info.
229 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
230 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
231 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
232 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
233
234 * alpha-tdep.c: Use get_next_frame.
235 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
236 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
237 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
238 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
239 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
240 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
241 * xstormy16-tdep.c: Ditto.
242
243 2003-01-07 Andrew Cagney <cagney@redhat.com>
244
245 * alpha-tdep.c: Use get_frame_base.
246 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
247 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
248 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
249 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
250 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
251 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
252 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
253 * config/sparc/tm-sparc.h: Ditto.
254
255 2003-01-07 Andrew Cagney <cagney@redhat.com>
256
257 * frame.c (deprecated_get_frame_context): New function.
258 (deprecated_set_frame_context): New function.
259 * frame.h (deprecated_get_frame_context): Declare.
260 (deprecated_set_frame_context): Declare.
261 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
262 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
263
264 2003-01-07 Andrew Cagney <cagney@redhat.com>
265
266 * frame.c (deprecated_set_frame_next_hack): New function.
267 (deprecated_set_frame_prev_hack): New function.
268 * frame.h (deprecated_set_frame_next_hack): Declare.
269 (deprecated_set_frame_prev_hack): Declare.
270 * mcore-tdep.c (analyze_dummy_frame): Use
271 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
272 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
273
274 2003-01-07 David Carlton <carlton@math.stanford.edu>
275
276 * linespec.c (decode_line_1): Move code into decode_dollar.
277 (decode_dollar): New function.
278
279 2003-01-07 Andrew Cagney <cagney@redhat.com>
280
281 * arm-tdep.c (arm_init_extra_frame_info): Use
282 deprecated_update_frame_base_hack.
283 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
284 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
285 (fix_frame_pointer): Ditto.
286 (mn10300_analyze_prologue): Ditto.
287
288 2003-01-07 Andrew Cagney <cagney@redhat.com>
289
290 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
291 extra_info using frame_extra_info_zalloc.
292 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
293 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
294 (sh64_init_extra_frame_info): Ditto.
295 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
296 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
297 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
298 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
299 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
300 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
301 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
302 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
303 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
304 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
305 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
306 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
307
308 * mn10300-tdep.c (analyze_dummy_frame): Use
309 deprecated_set_frame_extra_info_hack.
310 * mcore-tdep.c (analyze_dummy_frame): Ditto.
311
312 2003-01-07 J. Brobecker <brobecker@gnat.com>
313
314 * mdebugread.c (parse_symbol): Skip stProc entries which storage
315 class is not scText. These do not define "real" procedures.
316 (parse_partial_symbols): Likewise.
317
318 2003-01-06 Michael Snyder <msnyder@redhat.com>
319
320 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
321
322 2003-01-06 Andrew Cagney <ac131313@redhat.com>
323
324 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
325 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
326 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
327 deprecated_frame_xmalloc_with_cleanup.
328 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
329 deprecated_frame_xmalloc.
330 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
331 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
332
333 2003-01-06 Andrew Cagney <cagney@redhat.com>
334
335 * x86-64-linux-tdep.c: Include "osabi.h".
336 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
337
338 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
339
340 2003-01-06 Andrew Cagney <cagney@redhat.com>
341
342 * MAINTAINERS (Target Instruction Set Architectures): Update
343 arm-elf. Can be built with -Werror, has been multiarched.
344
345 * value.h (unpack_long): Make buffer parameter constant.
346 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
347 * scm-lang.h (scm_parse): Ditto.
348 * defs.h (extract_typed_address, extract_address): Ditto.
349 (extract_long_unsigned_integer): Ditto.
350 * inferior.h (unsigned_pointer_to_address): Ditto.
351 (signed_pointer_to_address): Ditto.
352 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
353 * gdbarch.h, gdbarch.c: Regenerate.
354 * findvar.c (extract_long_unsigned_integer): Update.
355 (extract_address): Update.
356 (extract_typed_address): Update.
357 (unsigned_pointer_to_address): Update.
358 * values.c (unpack_long): Update.
359 (unpack_double): Update.
360 (unpack_pointer): Update.
361 (unpack_field_as_long): Update.
362 * d10v-tdep.c (d10v_pointer_to_address): Update.
363 * avr-tdep.c (avr_pointer_to_address): Update.
364 * scm-lang.c (scm_unpack): Update.
365 * findvar.c (signed_pointer_to_address): Update.
366
367 2003-01-06 Michal Ludvig <mludvig@suse.cz>
368
369 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
370 since it is in i386-tdep.c.
371
372 2003-01-06 J. Brobecker <brobecker@gnat.com>
373
374 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
375 failure introduced in the previous change.
376
377 2003-01-05 Michael Chastain <mec@shout.net>
378
379 * README: Remove references to deleted remote-*.c files:
380 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
381 remote-nrom.c, remote-os9k.c, remote-udi.c.
382
383 2003-01-05 Mark Kettenis <kettenis@gnu.org>
384
385 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
386 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
387 i386_get_longjmp_target.
388
389 2003-01-05 Andrew Cagney <ac131313@redhat.com>
390
391 * arm-tdep.c (prologue_cache): Change to a pointer.
392 (_initialize_arm_tdep): Allocate prologue_cache.
393 (check_prologue_cache): Update.
394 (save_prologue_cache): Update.
395 (arm_gdbarch_init): Update.
396
397 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
398
399 * stabsread.c (update_method_name_from_physname): Call complaint()
400 instead of error.
401
402 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
403
404 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
405 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
406 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
407
408 * blockframe.c: Include "gdbcmd.h" and "command.h".
409 (backtrace_below_main): New variable.
410 (file_frame_chain_valid, func_frame_chain_valid)
411 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
412 (generic_func_frame_chain_valid): Remove functions.
413 (frame_chain_valid, do_flush_frames_sfunc): New functions.
414 (_initialize_blockframe): New function.
415 * Makefile.in (blockframe.o): Update dependencies.
416 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
417 comment. Call frame_chain_valid ().
418 * frame.h: Remove old prototypes. Add prototype for
419 frame_chain_valid and update comments to match.
420 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
421 Remove old comment.
422 * gdbarch.h: Regenerated.
423 * gdbarch.c: Regenerated.
424
425 * alpha-tdep.c (alpha_gdbarch_init): Don't call
426 set_gdbarch_frame_chain_valid.
427 * avr-tdep.c (avr_gdbarch_init): Likewise.
428 * cris-tdep.c (cris_gdbarch_init): Likewise.
429 * frv-tdep.c (frv_gdbarch_init): Likewise.
430 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
431 * i386-tdep.c (i386_svr4_init_abi): Likewise.
432 (i386_nw_init_abi): Likewise.
433 (i386_gdbarch_init): Likewise.
434 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
435 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
436 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
437 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
438 * mips-tdep.c (mips_gdbarch_init): Likewise.
439 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
440 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
441 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
442 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
443 * s390-tdep.c (s390_gdbarch_init): Likewise.
444 * sh-tdep.c (sh_gdbarch_init): Likewise.
445 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
446 * v850-tdep.c (v850_gdbarch_init): Likewise.
447 * vax-tdep.c (vax_gdbarch_init): Likewise.
448 * x86-64-tdep.c (x86_64_init_abi): Likewise.
449
450 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
451 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
452 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
453 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
454 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
455 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
456 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
457 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
458
459 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
460
461 * Makefile.in (acconfig_h): Remove incorrect macro.
462 (config_h): Define.
463 (osabi.o): Update dependencies.
464 * configure.tgt: Set gdb_osabi based on target triplet.
465 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
466 * configure: Regenerated.
467 * config.in: Regenerated.
468 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
469 (GDB_OSABI_DEFAULT): Define if not already defined.
470 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
471 (set_osabi_string): New variables.
472 (gdbarch_register_osabi): Add new OS ABI to
473 gdb_osabi_available_names.
474 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
475 (set_osabi, show_osabi): New functions.
476 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
477
478 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
479
480 * arch-utils.c (gdbarch_info_init): Set osabi to
481 GDB_OSABI_UNINITIALIZED.
482 * gdbarch.sh: Add osabi to struct gdbarch and to struct
483 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
484 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
485 * gdbarch.c: Regenerated.
486 * gdbarch.h: Regenerated.
487 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
488 there's no BFD.
489 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
490 * osabi.h (enum gdb_osabi): Move to defs.h.
491 (gdbarch_init_osabi): Update prototype.
492 * defs.h (enum gdb_osabi): Moved here.
493 * Makefile.in: Update dependencies.
494
495 * alpha-tdep.h: Don't include "osabi.h".
496 (struct gdbarch_tdep): Remove osabi member.
497 * alpha-tdep.c: Include "osabi.h".
498 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
499 iterate over arches. Update call to gdbarch_init_osabi.
500 (alpha_dump_tdep): Don't dump osabi.
501 * alpha-linux-tdep.c: Include "osabi.h".
502 * alpha-osf1-tdep.c: Include "osabi.h".
503 * alphafbsd-tdep.c: Include "osabi.h".
504 * alphanbsd-tdep.c: Include "osabi.h".
505
506 * arm-tdep.h: Don't include "osabi.h".
507 (struct gdbarch_tdep): Remove osabi member.
508 * arm-tdep.c: Include "osabi.h".
509 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
510 iterate over arches. Update call to gdbarch_init_osabi.
511 (arm_dump_tdep): Don't dump osabi.
512 * arm-linux-tdep.c: Include "osabi.h".
513 * armnbsd-tdep.c: Include "osabi.h".
514
515 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
516 Update call to gdbarch_init_osabi.
517
518 * i386-tdep.h: Don't include "osabi.h".
519 (struct gdbarch_tdep): Remove osabi member.
520 * i386-tdep.c: Include "osabi.h".
521 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
522 iterate over arches. Update call to gdbarch_init_osabi.
523 (i386_dump_tdep): Don't dump osabi.
524 * i386-linux-tdep.c: Include "osabi.h".
525 * i386-sol2-tdep.c: Include "osabi.h".
526 * i386bsd-tdep.c: Include "osabi.h".
527 * i386gnu-tdep.c: Include "osabi.h".
528 * i386ly-tdep.c: Include "osabi.h".
529 * i386nbsd-tdep.c: Include "osabi.h".
530 * i386obsd-tdep.c: Include "osabi.h".
531
532 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
533 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
534 check osabi when iterating over arches. Update call to
535 gdbarch_init_osabi.
536 (mips_dump_tdep): Don't dump osabi.
537
538 * ns32k-tdep.h: Don't include "osabi.h".
539 (struct gdbarch_tdep): Remove.
540 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
541 gdbarch_lookup_osabi. Don't iterate over arches. Don't
542 allocate tdep. Update call to gdbarch_init_osabi.
543 (ns32k_dump_tdep): Remove.
544 (_initialize_ns32k_tdep): Update call to gdbarch_register.
545 * ns32knbsd-tdep.c: Include "osabi.h".
546
547 * ppc-tdep.h: Don't include "osabi.h".
548 (struct gdbarch_tdep): Remove osabi member.
549 * rs6000-tdep.c: Include "osabi.h".
550 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
551 osabi when iterating over arches. Update call to
552 gdbarch_init_osabi.
553 (rs6000_dump_tdep): Don't dump osabi.
554 * ppc-linux-tdep.c: Include "osabi.h".
555 * ppcnbsd-tdep.c: Include "osabi.h".
556
557 * sh-tdep.h: Don't include "osabi.h".
558 (struct gdbarch_tdep): Remove osabi member.
559 * sh-tdep.c: Include "osabi.h".
560 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
561 iterate over arches. Update call to gdbarch_init_osabi.
562 (sh_dump_tdep): Don't dump osabi.
563 * shnbsd-tdep.c: Include "osabi.h".
564
565 * sparc-tdep.c: Include "osabi.h".
566 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
567 iterate over arches. Update call to gdbarch_init_osabi.
568 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
569 tdep structure.
570
571 * vax-tdep.h: Don't include "osabi.h".
572 (struct gdbarch_tdep): Remove.
573 * vax-tdep.c: Include "osabi.h".
574 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
575 iterate over arches. Don't allocate tdep. Update call
576 to gdbarch_init_osabi.
577 (vax_dump_tdep): Remove.
578 (_initialize_vax_tdep): Update call to gdbarch_register.
579
580 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
581
582 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
583 entirely.
584 (breakpoint_re_set_one): Don't fetch the value for a disabled
585 watchpoint.
586
587 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
588
589 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
590 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
591 (COERCE_FLOAT_TO_DOUBLE): Remove.
592 * gdbarch.c: Regenerate.
593 * gdbarch.h: Regenerate.
594 * Makefile.in: Remove value_h from gdbarch_h.
595 * valops.c (coerce_float_to_double): New variable.
596 (default_coerce_float_to_double): Remove.
597 (standard_coerce_float_to_double): Remove.
598 (value_arg_coerce): Use coerce_float_to_double.
599 (_initialize_valops): Add "set coerce-float-to-double".
600 * value.h (default_coerce_float_to_double): Remove prototype.
601 (standard_coerce_float_to_double): Remove prototype.
602
603 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
604 prototyped.
605 * mdebugread.c (parse_symbol): Likewise.
606 * stabsread.c (define_symbol): Mark all functions as prototyped.
607
608 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
609 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
610 set_gdbarch_coerce_float_to_double.
611 * arm-tdep.c (arm_gdbarch_init): Likewise.
612 * frv-tdep.c (frv_gdbarch_init): Likewise.
613 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
614 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
615 * mips-tdep.c (mips_gdbarch_init): Likewise.
616 (mips_coerce_float_to_double): Remove.
617 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
618 (rs6000_coerce_float_to_double): Remove.
619 * s390-tdep.c (s390_gdbarch_init): Likewise.
620 * sh-tdep.c (sh_gdbarch_init): Likewise.
621 (sh_coerce_float_to_double): Remove.
622 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
623 (sparc_coerce_float_to_double): Remove.
624 * v850-tdep.c (v850_gdbarch_init): Likewise.
625 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
626 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
627 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
628 (hppa_coerce_float_to_double): Remove prototype.
629 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
630
631 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
632
633 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
634
635 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
636
637 Suggested by Stewart Brown <sb24@avaya.com>:
638 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
639 in recursive calls. Handle TYPE_CODE_TYPEDEF.
640 (c_type_print_varspec_suffix): Likewise.
641
642 2003-01-04 Mark Kettenis <kettenis@gnu.org>
643
644 * configure.in: Don't set and AC_SUBST SUBDIRS.
645 * configure: Regenerated.
646
647 * configure.in: Remove code dealing with shared libraries.
648 * Makefile.in: Remove HLDFLAGS and HLDENV.
649 * configure: Regenerated.
650
651 2003-01-04 Andrew Cagney <ac131313@redhat.com>
652
653 * frame.c (deprecated_frame_xmalloc): New function.
654 (deprecated_set_frame_saved_regs_hack): New function.
655 (deprecated_set_frame_extra_info_hack): New function.
656 * frame.h (deprecated_frame_xmalloc): Declare.
657 (deprecated_set_frame_saved_regs_hack): Declare.
658 (deprecated_set_frame_extra_info_hack): Declare.
659
660 2003-01-04 Mark Kettenis <kettenis@gnu.org>
661
662 * configure.in: Move code that provides the --enable-gdbtk option
663 right after the code that handles the --enable-tui option, and
664 polish it somewhat.
665 * configure: Regenerated.
666
667 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
668 AC_CHECK_FUNCS and remove the old check for pread64.
669 * acinclude.m4 (AC_GNU_SOURCE): New macro.
670 * acconfig.h (_GNU_SOURCE): Add.
671 (HAVE_PREAD64): Remove.
672 * configure, aclocal.m4, config.in: Regenerated.
673
674 2003-01-03 Andrew Cagney <ac131313@redhat.com>
675
676 * alpha-tdep.c: Use get_frame_saved_regs.
677 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
678 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
679 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
680 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
681 * vax-tdep.c, xstormy16-tdep.c: Ditto.
682
683 2003-01-03 Mark Kettenis <kettenis@gnu.org>
684
685 * configure.in: Remove all use of the SUBDIRS variable; add
686 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
687 code providing the --enable-multi-ice option, and move it right in
688 front of the code that checks whether gdbserver is supported.
689 Polish that too.
690 * configure: Regenerated.
691 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
692 @SUBDIRS@.
693
694 2003-01-03 Andrew Cagney <cagney@redhat.com>
695
696 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
697 * avr-tdep.c, cris-tdep.c: Ditto.
698 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
699 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
700
701 2003-01-03 Mark Kettenis <kettenis@gnu.org>
702
703 * configure.in: Remove --enable-netrom option.
704 * configure: Regenerated.
705
706 2003-01-03 Mark Kettenis <kettenis@gnu.org>
707
708 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
709 declaration for `struct re_pattern_buffer' instead.
710 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
711
712 2003-01-03 J. Brobecker <brobecker@gnat.com>
713
714 * mdebugread.c (parse_symbol): Count until the stEnd matching
715 the structure name.
716
717 2003-01-02 Mark Kettenis <kettenis@gnu.org>
718
719 * configure.in: Remove --with-cpu option.
720 subscripts. Remove evil changequotes here.
721 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
722 * config.in, configure: Regenerated.
723
724 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
725 * configure.in: Cleanup section that sources GDB and BFD configure
726 subscripts. Remove evil changequotes here.
727 * config.in, configure: Regenerated.
728
729 2003-01-02 Andrew Cagney <ac131313@redhat.com>
730
731 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
732 frame accessor methods.
733 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
734 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
735 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
736 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
737 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
738 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
739 * z8k-tdep.c: Ditto.
740
741 2003-01-02 Mark Kettenis <kettenis@gnu.org>
742
743 * configure.in: Remove UI_OUT configuration code.
744 * ada-lang.c: Update assuming UI_OUT is always true.
745 * Makefile.in (UIOUT_CFLAGS): Remove.
746 * configure: Regenerated.
747 * TODO: Remove blurb about elimination of -DUI_OUT.
748
749 * configure.in: Move code that provides the --enable-gdbcli,
750 --enable-gdbmi options right before the code that handles the
751 --enable-tui option. Polish a bit.
752 * configure: Regenerated.
753
754 * configure.in: Rewrite check for GNU regex and the
755 --without-included regex option, and move it into the "Checks for
756 library functions" section. This makes us use the system regex
757 again by default on systems with version 2 of the GNU C library.
758 This was apparently broken.
759 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
760 * acconfig.h (USE_INCLUDED_REGEX): Remove.
761 * config.in, configure: Regenerated.
762
763 * configure.in: Move code that provides the --enable-tui option
764 before the "Checks for libraries" section. Polish the code
765 somewhat and set need_curses to yes if we build the TUI. Rewrite
766 code that looks for a library providing termcap functionality to
767 match more closely what's done in the Readline library, and move
768 it into to the "Checks for libraries" section.
769 * configure: Regenerated.
770 * Makefile.in (TERMCAP): Remove variable.
771 * config/i386/go32.mh (TERMCAP): Remove variable.
772
773 2003-01-02 Andrew Cagney <ac131313@redhat.com>
774
775 * MAINTAINERS: Mention gdb_mbuild.sh.
776 * gdb_mbuild.sh: Rewrite.
777
778 2003-01-02 Mark Kettenis <kettenis@gnu.org>
779
780 * configure.in: Fix typo in last change.
781 * config.in, configure: Regenerated.
782
783 2003-01-02 Andrew Cagney <ac131313@redhat.com>
784
785 * valarith.c (value_binop): Delete obsolete code and comments.
786 * configure.host: Ditto.
787 * buildsym.h (make_blockvector): Ditto.
788 * buildsym.c (make_blockvector): Ditto.
789 * defs.h (enum language): Ditto.
790 (chill_demangle): Ditto.
791 * elfread.c (elf_symtab_read): Ditto.
792 * dwarfread.c (CHILL_PRODUCER): Ditto.
793 (set_cu_language): Ditto.
794 (handle_producer): Ditto.
795 * expprint.c (print_subexp): Ditto.
796 * gdbtypes.c (chill_varying_type): Ditto.
797 * gdbtypes.h (builtin_type_chill_bool): Ditto.
798 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
799 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
800 (chill_varying_type): Ditto.
801 * language.h (_LANG_chill): Ditto.
802 * language.c (binop_result_type, integral_type): Ditto.
803 (character_type, string_type, structured_type): Ditto.
804 (lang_bool_type, binop_type_check): Ditto.
805 * stabsread.h (os9k_stabs): Ditto.
806 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
807 (define_symbol, read_type, read_struct_fields): Ditto.
808 (read_array_type, read_enum_type, read_huge_number): Ditto.
809 (read_range_type, start_stabs): Ditto.
810 * symfile.c (init_filename_language_table): Ditto.
811 (add_psymbol_with_dem_name_to_list): Ditto.
812 * symtab.c (symbol_init_language_specific): Ditto.
813 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
814 * symtab.h (struct general_symbol_info): Ditto.
815 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
816 * typeprint.c (typedef_print): Ditto.
817 * utils.c (fprintf_symbol_filtered): Ditto.
818 * valops.c (value_cast, search_struct_field, value_slice): Delete
819 obsolete code.
820 (varying_to_slice): Delete function.
821 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
822 (varying_to_slice): Delete declaration.
823 * MAINTAINERS: Update.
824
825 2003-01-02 Mark Kettenis <kettenis@gnu.org>
826
827 * configure.in: Reorganize "Checks for library functions section"
828 a bit. Remove check for `btowc' and `isascii' functions.
829 * configure: Regenerated.
830
831 * acconfig.h (_MSE_INT_H): Remove.
832 * configure.in: Create "Checks for header files" section, and move
833 appropriate tests there. Don't check for objlist.h, wchar.h,
834 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
835 misdetection fix. Also add "Checks for types", "Checks for
836 compiler characteristics" and "Checks for library functions"
837 sections.
838 * config.in, configure: Regenerated.
839
840 * configure.in: Create "Checks for programs" section, and move
841 appropriate tests there.
842
843 2003-01-01 Mark Kettenis <kettenis@gnu.org>
844
845 * configure.in: Create "Checks for libraries" section, and move
846 appropriate tests there. Cleanup check for wctype in libw. Use
847 AC_SEARCH_LIBS to see whether we need libsocket.
848 * configure: Regenerated.
849
850 For older changes see ChangeLog-2002
851 \f
852 Local Variables:
853 mode: change-log
854 left-margin: 8
855 fill-column: 74
856 version-control: never
857 End:
This page took 0.046322 seconds and 4 git commands to generate.