* solib.c (reload_shared_libraries): New function.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2
3 * solib.c (reload_shared_libraries): New function.
4 (_initialize_solib): Add callbacks for ``set solib-search-path''
5 and ``set solib-absolute-prefix''.
6
7 2003-02-20 David Carlton <carlton@math.stanford.edu>
8
9 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10 expand comment.
11 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
13 * ada-typeprint.c (ada_typedef_print): Ditto.
14 * ax-gdb.c (gen_var_ref): Ditto.
15 * breakpoint.c (print_one_breakpoint): Ditto.
16 * buildsym.c (finish_block): Ditto.
17 * c-valprint.c (c_val_print): Ditto.
18 * expprint.c (print_subexp): Ditto.
19 * findvar.c (locate_var_value): Ditto.
20 * infcmd.c (jump_command): Ditto.
21 * linespec.c (decode_line_2, decode_compound): Ditto.
22 * maint.c (maintenance_translate_address): Ditto.
23 * objc-lang.c (compare_selectors, compare_classes): Ditto.
24 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
25 Ditto.
26 * p-valprint.c (pascal_val_print): Ditto.
27 * stabsread.c (define_symbol): Ditto.
28 * stack.c (print_frame, frame_info, print_block_frame_locals)
29 (print_frame_arg_vars, return_command): Ditto.
30 * symfile.c (compare_symbols, compare_psymbols): Ditto.
31 * symmisc.c (print_symbol): Ditto.
32 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
33 (compare_search_syms, print_symbol_info, print_msymbol_info)
34 (rbreak_command): Ditto.
35 * tracepoint.c (tracepoints_info): Ditto.
36 * typeprint.c (typedef_print): Ditto.
37 * valops.c (value_of_variable, hand_function_call): Ditto.
38 * cli/cli-cmds.c (edit_command, list_command): Ditto.
39 * ada-typeprint.c: Update Copyright.
40 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
41 * tracepoint.c, cli/cli-cmds.c: Ditto.
42
43 2003-02-20 Kevin Buettner <kevinb@redhat.com>
44
45 * frame.c (generic_unwind_get_saved_register): Make non-static.
46 * frame.h (generic_unwind_get_saved_register): Declare.
47 * mips-tdep.c (read_next_frame_reg): Fetch register from
48 current regcache when frame is NULL.
49 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
50 that must be NULL.
51 (mips_get_saved_register): Call generic_unwind_get_saved_register()
52 instead of frame_register_unwind().
53
54 2003-02-20 Andrew Cagney <ac131313@redhat.com>
55
56 * remote-sim.c (gdbsim_insert_breakpoint)
57 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
58 code.
59
60 2003-02-20 Andrew Cagney <ac131313@redhat.com>
61
62 * remote.c (_initialize_remote): Add commands "set/show remote
63 hardware-watchpoint-limit" and "set/show remote
64 hardware-breakpoint-limit".
65 (remote_hw_watchpoint_limit): Initialize to -1.
66 (remote_hw_breakpoint_limit): Ditto.
67 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
68
69 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
70
71 * coff-pe-read.c: New file - support reading of minimal symbols from a
72 portable executable using the export table.
73 * coff-pe-read.h: New file.
74 * coffread.c: Include coff-pe-read.h.
75 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
76 debugging symbols found.
77 * Makefile.in (SFILES): Add coff-pe-read.o.
78 (coff_pe_read_h): Define.
79 (COMMON_OBS): Add coff-pe-read.o.
80 (coffread.o): Add coff_pe_read_h dependency.
81 (coff-pe-read.o): New target.
82
83 2003-02-19 David Carlton <carlton@math.stanford.edu>
84
85 * Makefile.in (SFILES): Add block.c.
86 (block_h): New.
87 (COMMON_OBS): Add block.o.
88 (block.o): New.
89 (x86-64-tdep.o): Add $(block_h).
90 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
91 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
92 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
93 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
94 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
95 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
96 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
97 * value.h: Add opaque declaration for struct block.
98 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
99 * ada-lang.h: Ditto.
100 * x86-64-tdep.c: #include "block.h"
101 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
102 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
103 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
104 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
105 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
106 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
107 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
108 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
109 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
110 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
111 * symtab.c (block_function): Ditto.
112 (contained_in): Ditto.
113 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
114 block.h. Add opaque declaration for struct block.
115 * symtab.h: Move block_function and contained_in declarations to
116 block.h. Add opaque declarations for struct block, struct
117 blockvector.
118 (struct block): Move to block.h.
119 (struct blockvector): Ditto.
120 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
121 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
122 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
123 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
124 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
125 Ditto.
126 * block.c: New file.
127 * block.h: New file.
128
129 2003-02-19 Theodore A. Roth <troth@openavr.org>
130
131 * avr-tdep.c (avr_extract_return_value): Remove function.
132 (avr_store_return_value): Remove function.
133 (avr_extract_struct_value_address): Remove function.
134 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
135
136 2003-02-19 Andrew Cagney <ac131313@redhat.com>
137
138 * rs6000-tdep.c: Include "gdb_assert.h".
139 (registers_e500): Add "acc" and "spefscr".
140 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
141 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
142 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
143 really is "r0".
144 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
145
146 2003-02-18 Keith Seitz <keiths@redhat.com>
147
148 * Makefile.in: Add gdbtk-interps.c.
149
150 2003-02-18 Kevin Buettner <kevinb@redhat.com>
151
152 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
153 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
154
155 2003-02-18 Andrew Cagney <cagney@redhat.com>
156
157 * symtab.h (struct objfile): Add opaque declaration.
158
159 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
160
161 From Jim Ingham <jingham@apple.com>:
162 * dbxread.c (process_one_symbol): Use last_function_start rather
163 than function_start_offset to find the real beginning of the
164 current function. The latter is just the text section offset on
165 some systems, the former is always the real function start.
166
167 2003-02-17 Andrew Cagney <cagney@redhat.com>
168
169 * configure.in: Revert ${target} != ${host}.
170
171 2003-02-17 Andrew Cagney <ac131313@redhat.com>
172
173 * configure.in (Makefile): Use the test ${target} != ${host},
174 instead of the absence of the "nm.h" file, to determine of the
175 configuration non-native.
176 * configure: Regenerate.
177
178 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
179
180 From Brian Ford <ford@vss.fsi.com>
181
182 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
183 conditionalize tui_active test.
184 (lookup_cmd_1): Ditto.
185
186 2003-02-14 Mark Kettenis <kettenis@gnu.org>
187
188 * configure.in: Add check for _etext.
189 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
190 available.
191 * config.in, configure: regenerated.
192
193 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
194
195 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
196
197 2003-02-14 Andrew Cagney <ac131313@redhat.com>
198
199 * main.c (tui_version): Delete variable.
200 (captured_main): When --tui, set interpreter_p to "tui" instead of
201 enabling tui_version.
202 * printcmd.c (display_command) [TUI]: Test tui_active instead of
203 tui_version.
204 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
205 * cli/cli-cmds.c (disassemble_command): Ditto.
206 * defs.h (tui_version): Delete declaration.
207 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
208 (tui-interp.o): Add rules.
209 (SUBDIR_TUI_OBS): Add "tui-interp.o".
210
211 2003-02-14 Christopher Faylor <cgf@redhat.com>
212
213 * win32-nat.cc (register_loaded_dll): Correctly set address range for
214 just-loaded dll.
215
216 2003-02-12 Jason Molenda (jmolenda@apple.com)
217
218 * symmisc.c (print_objfile_statistics): Include information about
219 the number of psymtabs and symtabs in each object file.
220
221 2003-02-13 Keith R Seitz <keiths@redhat.com>
222
223 * main.h (struct captured_main_args): Add interpreter_p.
224 * main.c (captured_main): Initialize interpreter_p from context.
225 * gdb.c (main): Set interpreter_p argument.
226 * Makefile.in (gdb.o): Add dependency for interps.h.
227
228 2003-02-12 Andrew Cagney <ac131313@redhat.com>
229
230 * event-top.c (cli_command_loop): Delete declaration.
231 (_initialize_event_loop): Delete function setting event_loop_hook.
232 * event-top.h (cli_command_loop): Declare. Update copyright.
233 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
234 * interps.c (current_interp_command_loop): When event_loop_p, call
235 cli_command_loop.
236
237 2003-02-12 Andrew Cagney <ac131313@redhat.com>
238
239 * interps.h (interp_command_loop_ftype): Change return type to
240 void.
241
242 2003-02-12 Michal Ludvig <mludvig@suse.cz>
243
244 * x86-64-tdep.c (x86_64_extract_return_value)
245 (x86_64_store_return_value): Use regcache instead of regbuf.
246 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
247 * x86-64-linux-nat.c (fill_gregset): Use regcache.
248
249 2003-02-11 Andrew Cagney <ac131313@redhat.com>
250
251 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
252 * aclocal.m4: Regenerate.
253 * configure: Regenerate.
254
255 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
256 TCL_LD_SEARCH_FLAGS.
257
258 2003-02-10 Michal Ludvig <mludvig@suse.cz>
259
260 * dwarf2cfi.c: Reindented.
261
262 2003-02-09 Andrew Cagney <ac131313@redhat.com>
263
264 * interps.c (clear_interpreter_hooks): Convert function definition
265 to ISO C.
266
267 2003-02-07 David Carlton <carlton@math.stanford.edu>
268
269 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
270
271 2003-02-07 Kevin Buettner <kevinb@redhat.com>
272
273 * gdbtypes.h (struct main_type): Move ``length'' field from here...
274 (struct type): ...to here.
275 (TYPE_LENGTH): Adjust to reflect different location of ``length''
276 field.
277 * gdbtypes.c (make_qualified_type): Set length on newly created type.
278 (replace_type): Set length on all type variants for a given type.
279
280 2003-02-07 Andrew Cagney <ac131313@redhat.com>
281
282 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
283 <sys/stat.h>.
284 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
285
286 2003-02-06 Andrew Cagney <ac131313@redhat.com>
287
288 * Makefile.in (symm-nat.o): Update dependencies.
289 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
290 (lynx-nat.o, ia64-linux-nat.): Ditto.
291 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
292 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
293 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
294
295 * Makefile.in (inflow_h): Define.
296 (procfs.o, inflow.o, procfs.o): Update dependencies.
297 * inftarg.c (child_stop): Delete extern declaration of
298 inferior_process_group. Include "inflow.h".
299 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
300 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
301 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
302 (our_process_group, inferior_process_group): Extern declarations.
303
304 * procfs.c: Include "gdb_assert.h".
305
306 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
307 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
308 * jv-typeprint.c (java_type_print_base): Ditto.
309 * typeprint.c (typedef_print): Eliminate STREQ.
310 * cli/cli-script.c (define_command, define_command): Ditto.
311 * main.c (captured_main): Ditto.
312 * values.c (lookup_internalvar): Ditto.
313 * utils.c (safe_strerror, parse_escape): Eliminate assignment
314 within `if' conditional.
315 * linespec.c (decode_line_2): Ditto.
316 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
317 (bfd_openw_with_cleanup): Ditto.
318
319 2003-02-07 Mark Kettenis <kettenis@gnu.org>
320
321 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
322 legacy_extract_return_value and store_return_value to
323 legacy_return_value.
324
325 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
326
327 * win32-nat.c (get_relocated_section_addrs): New function. Find
328 section load addresses for symbol handling in relocated DLLs.
329 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
330
331 2003-02-05 Fred Fish <fnf@intrinsity.com>
332
333 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
334 '=' and '!='.
335 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
336 with '&' and '=='.
337 (angel_RDI_info): Ditto.
338 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
339 with '&' and '!='.
340 (threads_continue_all_with_signals): Ditto.
341
342 2003-02-05 Jim Ingham <jingham@apple.com>
343 Keith Seitz <keiths@redhat.com>
344 Elena Zannoni <ezannoni@redhat.com>
345 Andrew Cagney <ac131313@redhat.com>
346
347 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
348 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
349 (SUBDIR_MI_OBS): Add "mi-interp.o".
350 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
351 (SFILES): Add "interps.c".
352 (COMMON_OBS): Add "interps.o".
353 (interps_h, mi_main_h): Define.
354 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
355 (mi-main.o, main.o, event-top.o): Update dependencies.
356 * cli/cli-interp.c: New file.
357 * interps.h, interps.c: New files.
358 * top.c: (gdb_init): Don't install the default interpreter, handed
359 by captured_main.
360 * main.c: Include "interps.h".
361 (interpreter_p): Note that it should malloc'ed.
362 (captured_command_loop): Call current_interp_command_loop.
363 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
364 xfree and xstrdup when updating interpreter_p. Install the
365 default interpreter. Add hack to stop mi1's copyright notice
366 being encoded.
367 * event-top.h (gdb_setup_readline): Declare.
368 (gdb_disable_readline): Declare.
369 * event-top.c: Include "interps.h".
370 (display_gdb_prompt): Call current_interp_display_prompt_p.
371 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
372 gdb_stdlog, and gdb_stdtarg.
373 (_initialize_event_loop): Don't call gdb_setup_readline.
374 * cli-out.c (cli_out_set_stream): New function.
375 * cli-out.h (cli_out_set_stream): Declare.
376
377 2003-02-06 Mark Kettenis <kettenis@gnu.org>
378
379 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
380 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
381 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
382 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
383 config/i386/i386v42mp.mt: Removed.
384
385 2003-02-05 Mark Kettenis <kettenis@gnu.org>
386
387 * configure.tgt (*-*-solaris*): Set gdb_osabi to
388 GDB_OSABI_SOLARIS.
389
390 2003-02-05 Michael Chastain <mec@shout.net>
391
392 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
393 2.12.1 and earlier versions.
394
395 2003-02-05 Andrew Cagney <ac131313@redhat.com>
396
397 Remove orphaned hosts, targets and files.
398 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
399 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
400 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
401 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
402 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
403 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
404 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
405 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
406 * config/sparc/tm-sp64sim.h: Delete.
407 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
408 hosts.
409 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
410 mips*-dec-mach3* targets.
411
412 2003-02-04 Michael Chastain <mec@shout.net>
413
414 * NEWS: Fix typo: sepcifying -> specifying.
415
416 2003-02-04 Michael Chastain <mec@shout.net>
417
418 * dwarfread.c: Add documentation on the state of dwarf-1,
419 looking towards obsoletion.
420
421 2003-02-03 Michael Chastain <mec@shout.net>
422
423 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
424 gdb/testsuite/gdb.c++/pr-1023.exp.
425
426 2003-02-04 Andrew Cagney <ac131313@redhat.com>
427
428 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
429 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
430
431 * utils.c (init_page_info): Delete reference to MPW in comments.
432 * main.c (captured_main): Delete #ifdef MPW.
433
434 2003-02-04 Andrew Cagney <ac131313@redhat.com>
435
436 * NEWS: Note that the m32r-*-elf* is obsolete.
437 * monitor.c (monitor_expect): Obsolete reference to m32r.
438 * configure.tgt: Mark m32r-*-elf* as obsolete.
439 * MAINTAINERS: Mark m32k as obsolete.
440 * m32r-rom.c: Obsolete file.
441 * config/m32r/m32r.mt: Obsolete file.
442 * config/m32r/tm-m32r.h: Obsolete file.
443 * m32r-stub.c: Obsolete file.
444 * m32r-tdep.c: Obsolete file.
445
446 2003-02-04 Andrew Cagney <ac131313@redhat.com>
447
448 * NEWS: Mention that the z8k-zilog-none is obsolete.
449 * MAINTAINERS: Mark z8k as obsolete.
450 * configure.tgt: Obsolete the z8k-*-coff* target.
451 * config/z8k/z8k.mt: Obsolete file.
452 * config/z8k/tm-z8k.h: Obsolete file.
453 * z8k-tdep.c: Obsolete file.
454
455 2003-02-04 Andrew Cagney <ac131313@redhat.com>
456
457 * NEWS: Mention that the mn10200-elf is obsolete.
458 * configure.tgt: Obsolete mn10200-*-* target.
459 * breakpoint.c (update_breakpoints_after_exec): Update comment to
460 mention that the mn10200 is obsolete.
461 * breakpoint.h: Ditto.
462 * MAINTAINERS: Mark the mn10200-elf as obsolete.
463 * config/mn10200/mn10200.mt: Obsolete file.
464 * config/mn10200/tm-mn10200.h: Obsolete file.
465 * mn10200-tdep.c: Obsolete file.
466
467 2003-02-04 Andrew Cagney <ac131313@redhat.com>
468
469 * MAINTAINERS: Mark h8500 as obsolete.
470 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
471 * findvar.c (value_from_register): Ditto.
472 * h8500-tdep.c: Mark file as obsolete.
473 * config/h8500/h8500.mt: Ditto.
474 * config/h8500/tm-h8500.h: Ditto.
475 * NEWS: Mention that h8500 is obsolete.
476
477 2003-02-04 David Carlton <carlton@math.stanford.edu>
478
479 * objfiles.c (allocate_objfile): Always set name. Add comment at
480 start of function.
481 * jv-lang.c (get_dynamics_objfile): Add comment.
482
483 2003-02-04 David Carlton <carlton@math.stanford.edu>
484
485 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
486 * printcmd.c (build_address_symbolic): Replace uses of
487 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
488 SYMBOL_NAME, and asm_demangle.
489 Update copyright.
490
491 2003-02-04 David Carlton <carlton@math.stanford.edu>
492
493 * linespec.c (decode_compound): Extract code into
494 lookup_prefix_sym.
495 (lookup_prefix_sym): New function.
496
497 2003-02-04 David Carlton <carlton@math.stanford.edu>
498
499 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
500 FLOAT_COERCION_BADNESS.
501 * gdbtypes.c (rank_one_type): Replace all uses of
502 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
503
504 2003-02-04 Jim Blandy <jimb@redhat.com>
505
506 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
507 section, let dwarf_macinfo_section point to it, not
508 dwarf_loc_section.
509
510 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
511
512 Pointed out by Anton Blanchard <anton@samba.org>.
513 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
514 (ppc_linux_at_sigtramp_return_path): Use it.
515
516 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
517
518 * defs.h (streq): Add prototype.
519 * utils.c (streq): New function.
520
521 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
522 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
523 * mdebugread.c (new_symbol): Likewise.
524 * stabsread.c (define_symbol): Likewise.
525 * coffread.c (process_coff_symbol): Likewise.
526 * dwarfread.c (new_symbol): Likewise.
527
528 * minsyms.c (prim_record_minimal_symbol_and_info): Use
529 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
530 here.
531 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
532 SYMBOL_INIT_DEMANGLED_NAME.
533 * objfiles.c: Include "hashtab.h".
534 (allocate_objfile): Call htab_set_functions_ex for the
535 demangled_names_hash.
536 (free_objfile): Call htab_delete for the demangled_names_hash.
537 * objfiles.h (struct htab): Add declaration.
538 (struct objfile): Add demangled_names_hash.
539 * symfile.c: Include "hashtab.h".
540 (reread_symbols): Call htab_delete for the demangled_names_hash.
541 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
542 SYMBOL_NAME in the bcache.
543 * symtab.c: Include "hashtab.h". Update comments.
544 (create_demangled_names_hash, symbol_set_names): New functions.
545 (symbol_find_demangled_name): New function, broken out from
546 symbol_init_demangled_names.
547 (symbol_init_demangled_names): Use it.
548 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
549 (SYMBOL_SET_NAMES): New macro.
550 (symbol_set_names): Add prototype.
551
552 2003-02-03 Jim Blandy <jimb@redhat.com>
553
554 Use a single, consistent representation for an empty minimal
555 symbol table in an objfile.
556 * objfiles.c (terminate_minimal_symbol_table): New function.
557 (allocate_objfile): Call it.
558 * objfiles.h (terminate_minimal_symbol_table): New declaration.
559 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
560 non-NULL.
561 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
562 objfile has minimal symbols, compare minimal_symbol_count to zero,
563 instead of comparing msymbols with NULL.
564 * objfiles.c (have_minimal_symbols): Same.
565 * solib-sunos.c (solib_add_common_symbols): Call
566 terminate_minimal_symbol_table.
567 * symfile.c (reread_symbols): Same.
568
569 2003-02-03 Kevin Buettner <kevinb@redhat.com>
570
571 * s390-tdep.c (s390_address_class_type_flags)
572 (s390_address_class_type_flags_to_name)
573 (s390_address_class_name_to_type_flags): New functions.
574 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
575 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
576
577 2003-02-03 Michael Snyder <msnyder@redhat.com>
578
579 * arm-tdep.c: Fix spell-o in comment.
580
581 2003-02-03 Michal Ludvig <mludvig@suse.cz>
582
583 * dwarf2cfi.c (pointer_encoding): Added new parameter.
584 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
585 error messages to contain BFD filename.
586
587 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
588
589 Fix PR gdb/742 gdb/743 gdb/877
590 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
591 (do_mixed_source_and_assembly): Use
592 make_cleanup_ui_out_tuple_begin_end and
593 make_cleanup_ui_out_tuple_begin_end.
594 (do_mixed_source_and_assembly): Ditto.
595 * thread.c (do_captured_list_thread_ids): Ditto.
596 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
597 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
598 ui_out_tuple_end): Delete prototypes.
599 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
600 ui_out_list_end, ui_out_tuple_end): Delete.
601
602 From Kevin Buettner <kevinb@redhat.com>:
603 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
604 * ui-out.c (make_cleanup_ui_out_table_begin_end)
605 (do_cleanup_table_end): New functions.
606 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
607 Use cleanups to invoke_ui_out_tuple_end().
608 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
609 * cli/cli-setshow.c (cmd_show_list): Use
610 make_cleanup_ui_out_tuple_begin_end.
611
612 2003-02-02 Andrew Cagney <ac131313@redhat.com>
613
614 * frame.c (frame_unwind_register): New function.
615 (frame_unwind_unsigned_register): Use.
616 (frame_unwind_signed_register): Use.
617 (frame_read_register): New function.
618 * frame.h (frame_unwind_register): Declare.
619 (frame_read_register): Declare.
620
621 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
622 and frame_unwind_register instead of read_memory, write_register
623 and deprecated_write_register_bytes.
624
625 2003-02-02 Andrew Cagney <ac131313@redhat.com>
626
627 * frame.h: Note that namelen can be negative.
628 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
629 NAME's length.
630
631 * NEWS: Mention that the d10v's `regs' command is deprecated.
632 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
633 (d10v_print_registers_info): New function.
634 (show_regs): Call d10v_print_registers_info.
635 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
636
637 2003-02-02 Mark Kettenis <kettenis@gnu.org>
638
639 * stack.c (print_frame_info): Restore call to annotate_frame_begin
640 lost in the previous patch.
641
642 2003-02-01 Andrew Cagney <ac131313@redhat.com>
643
644 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
645 * stack.c (print_frame_info_base): Output complete FRAME tuple
646 for synthesized frames.
647
648 2003-02-02 Andrew Cagney <ac131313@redhat.com>
649
650 * mips-nat.c (zerobuf): Delete.
651 (fetch_inferior_registers): Alloc local zerobuf.
652 (fetch_core_registers): Alloc local zerobuf.
653 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
654 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
655 * thread-db.c (thread_db_store_registers): Ditto.
656 * sh-tdep.c (sh_do_register): Ditto.
657 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
658 * remote-sim.c (gdbsim_store_register): Ditto.
659 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
660 * remote-e7000.c (fetch_regs_from_dump): Ditto.
661 * monitor.c (monitor_supply_register): Ditto.
662 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
663 * mips-nat.c (fetch_inferior_registers): Ditto.
664 * m68klinux-nat.c (fetch_register): Ditto.
665 * lynx-nat.c (fetch_inferior_registers): Ditto.
666 (fetch_inferior_registers): Ditto.
667 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
668 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
669 (hpux_thread_store_registers): Ditto.
670 * hppah-nat.c (fetch_register): Ditto.
671 * hppab-nat.c (fetch_register): Ditto.
672 * hppa-tdep.c (pa_register_look_aside): Ditto.
673 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
674 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
675
676 2003-02-01 Andrew Cagney <ac131313@redhat.com>
677
678 * gdbarch.sh: Explictly specify all method levels. When a
679 variable with an empty level, provide a non-multi-arch default.
680 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
681 * gdbarch.h: Re-generate.
682 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
683 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
684
685 2003-02-01 Andrew Cagney <ac131313@redhat.com>
686
687 * defs.h (host_pointer_to_address): Delete declaration.
688 (address_to_host_pointer): Delete declaration.
689 * utils.c (host_pointer_to_address): Delete function.
690 (address_to_host_pointer): Delete function.
691 * procfs.c (procfs_address_to_host_pointer): New function.
692 * procfs.c (proc_set_watchpoint): Use.
693 (procfs_can_use_hw_breakpoint): Update comments.
694 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
695 (som_solib_add): Use.
696 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
697 * hppa-tdep.c (unwind_command): Use.
698
699 2003-02-01 Andrew Cagney <ac131313@redhat.com>
700
701 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
702 strlen d_name.
703
704 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
705 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
706 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
707 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
708 (define_symbol): Update.
709 * symfile.c (generic_load): Remove references to nindy.
710 * symtab.c: Remove references to nindy.
711
712 2003-02-01 Andrew Cagney <ac131313@redhat.com>
713
714 * infcmd.c (print_float_info): Delete code conditional on
715 FLOAT_INFO.
716 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
717 * config/m68k/nm-apollo68b.h: Ditto.
718 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
719 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
720 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
721
722 2003-02-01 Mark Kettenis <kettenis@gnu.org>
723
724 * config/i386/tm-i386os9k.h: Removed.
725
726 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
727 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
728 they're identical to i[3456]86-*-sysv* now.
729 * config/i386/i386v32.mh: Removed.
730 * config/i386/xm-i386v32.h: Removed.
731 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
732
733 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
734
735 * config/i386/i386dgux.mh: Removed.
736 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
737
738 * configure.in: Fix typo.
739 * configure: Regenerated.
740
741 2003-01-31 David Carlton <carlton@math.stanford.edu>
742
743 * dwarf2read.c (dwarf2_locate_sections): Set
744 dwarf_ranges_section.
745
746 2003-01-31 Andrew Cagney <ac131313@redhat.com>
747
748 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
749 * utils.c: Update comments documenting legitimate uses of PTR.
750
751 * utils.c: Re-indent.
752
753 * config/djgpp/fnchange.lst: Delete nindy files.
754 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
755 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
756 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
757 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
758 * nindy-share/README, nindy-share/Onindy.c: Delete files.
759 * nindy-tdep.c, nindy-share/Makefile: Delete files.
760 * Makefile.in (init.c): Remove nindy references.
761 (saber_gdb): Delete rule.
762 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
763 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
764 and a68v-nat.c.
765 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
766 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
767 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
768 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
769 nindy-share/stop.h.
770 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
771 * saber.suppress: Delete file.
772
773 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
774
775 * dbxread.c (stabs_data): New static variable.
776 (fill_symbuf): Support an in-memory buffer for stabs data.
777 (stabs_seek): New function.
778 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
779 (read_ofile_symtab): Use stabs_seek.
780 (elfstab_build_psymtabs): Take an asection* instead of
781 an offset and size. Relocate the stabs data if necessary.
782 Save the section* for dbx_psymtab_to_symtab.
783 * dwarf2read.c: Add section variables for each debug section.
784 (dwarf2_locate_sections): Fill them in.
785 (dwarf2_read_section): Take an asection* argument.
786 Relocate the section contents if necessary.
787 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
788 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
789 it to dwarf2_read_section.
790 (dwarf2_build_frame_info): Update callers.
791 * elfread.c (elf_symfile_read): Update call to
792 elfstab_build_psymtabs.
793 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
794 (DBX_STAB_SECTION): New macro.
795 * stabsread.h (elfstab_build_psymtabs): Update prototype.
796 * symfile.c (symfile_dummy_outputs): New function.
797 (symfile_relocate_debug_section): New function.
798 * symfile.h (symfile_relocate_debug_section): Add prototype.
799
800 2003-01-31 Richard Henderson <rth@redhat.com>
801
802 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
803 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
804 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
805 * alpha-tdep.c (alpha_register_name): Add "unique".
806 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
807 (ALPHA_UNIQUE_REGNUM): New.
808 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
809
810 2003-01-31 Andrew Cagney <ac131313@redhat.com>
811
812 * README: Remove reference to Ericsson 1800 monitor.
813 * Makefile.in (remote-es.o): Delete rule.
814 (ALLDEPFILES): Delete remote-es.c.
815 * remote-es.c: Delete file.
816 * config/m68k/es1800.mt: Delete file.
817 * config/djgpp/fnchange.lst: Update.
818 * configure.tgt: Delete m68*-ericsson-* target.
819
820 2003-01-31 Adam Fedor <fedor@gnu.org>
821
822 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
823 Remove duplicate/shadowing variable of same name.
824
825 2003-01-30 Jim Blandy <jimb@redhat.com>
826
827 * symfile.c (find_separate_debug_file): Assert that the objfile's
828 directory name we compute ends with a slash, and then assume that
829 that's so everywhere we use it.
830
831 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
832
833 * valops.c (value_assign): Flush frame cache after stores to memory
834 also.
835
836 2003-01-30 Andrew Cagney <ac131313@redhat.com>
837
838 * Makefile.in (mon960-rom.o): Delete rule.
839 * mon960-rom.c: Delete file.
840
841 2003-01-30 Andrew Cagney <ac131313@redhat.com>
842
843 * d10v-tdep.c: Include "frame-unwind.h".
844 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
845 list.
846 (next_addr, uses_frame): Delete.
847 (struct d10v_unwind_cache): Define.
848 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
849 Use info instead of next_addr and uses_frame globals.
850 (d10v_frame_init_saved_regs): Delete function.
851 (d10v_init_extra_frame_info): Delete function.
852 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
853 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
854 init_frame_pc or frame_saved_pc.
855 (d10v_pop_frame): Delete function.
856 (do_d10v_pop_frame): Delete function.
857 (d10v_frame_chain): Delete function.
858 (d10v_frame_chain_valid): Delete function.
859 (d10v_frame_pc_unwind): New function.
860 (d10v_frame_id_unwind): New function.
861 (saved_regs_unwinder): New function.
862 (d10v_frame_register_unwind): New function.
863 (d10v_frame_pop): New function.
864 (d10v_frame_unwind): New variable.
865 (d10v_frame_p): New function.
866 (d10v_frame_saved_pc): Delete function.
867 * Makefile.in (d10v-tdep.o): Update dependencies.
868
869 2003-01-30 J. Brobecker <brobecker@gnat.com>
870
871 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
872 causing some regressions due to a change in the default value
873 for this macro.
874
875 2003-01-29 Richard Henderson <rth@redhat.com>
876 Elena Zannoni <ezannoni@redhat.com>
877 Daniel Jacobowitz <drow@mvista.com>
878
879 Fix PR gdb/961.
880 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
881 variables.
882 (RANGES_SECTION): New.
883 (dwarf_ranges_buffer): New variable.
884 (struct comp_unit_head): Add member "die".
885 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
886 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
887 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
888 (dwarf2_locate_sections): Likewise.
889 (dwarf2_build_psymtabs): Read .debug_ranges.
890 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
891 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
892 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
893 Look for DW_AT_ranges and return the bounding box.
894
895 2003-01-29 Brian Ford <ford@vss.fsi.com>
896
897 * win32-nat.c (cygwin_pid): Removed as unused.
898 (child_attach): Try fall back to Cygwin pid.
899
900 2003-01-29 Jim Blandy <jimb@redhat.com>
901
902 * objfiles.h (struct objfile): Doc fix.
903
904 2003-01-29 Andrew Cagney <ac131313@redhat.com>
905
906 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
907 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
908 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
909 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
910 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
911 (FRAME_SAVED_PC): Change to a function with predicate.
912 * gdbarch.h, gdbarch.c: Re-generate.
913
914 2003-01-28 Andrew Cagney <ac131313@redhat.com>
915
916 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
917
918 * complaints.c (complain): Delete function.
919 * complaints.h (struct deprecated_complaint): Delete definition.
920 (complain): Delete declaration.
921
922 2003-01-28 Kevin Buettner <kevinb@redhat.com>
923
924 * mips-tdep.c (mips_init_extra_frame_info): Return early for
925 dummy frames.
926
927 2003-01-27 Andrew Cagney <ac131313@redhat.com>
928
929 * sentinel-frame.h, sentinel-frame.c: New files.
930 * Makefile.in (frame.o): Update dependencies.
931 (SFILES): Add sentinel-frame.c.
932 (sentinel_frame_h): Define.
933 (COMMON_OBS): Add sentinel-frame.o.
934 (sentinel-frame.o): Specify dependencies.
935 * frame.c: Include "sentinel-frame.h".
936 (frame_register_unwind): Rewrite assuming that there is always a a
937 ->next frame.
938 (frame_register, generic_unwind_get_saved_register): Ditto.
939 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
940 (create_sentinel_frame, unwind_to_current_frame): New functions.
941 (get_current_frame): Rewrite using create_sentinel_frame and
942 unwind_to_current_frame. When possible, always create a frame.
943 (create_new_frame): Set next to the sentinel frame.
944 (get_next_frame): Rewrite. Don't go below the level 0 frame.
945 (deprecated_update_frame_pc_hack): Update the next frame's PC and
946 ID cache when necessary.
947 (frame_saved_regs_id_unwind): Use frame_relative_level.
948 (deprecated_generic_get_saved_register): Use frame_relative_level,
949 get_frame_saved_regs, get_frame_pc, get_frame_base and
950 get_next_frame.
951 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
952 frame_register.
953
954 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
955
956 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
957
958 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
959
960 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
961 (maintenance_set_profile_cmd): Use error () instead of warning ().
962
963 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
964
965 * configure.in: Check that -pg works if using --enable-profiling.
966 Check for monstartup and _mcleanup regardless of --enable-profiling.
967 * maint.c: Check for monstartup and _mcleanup before using them.
968 * config.in: Regenerated.
969 * configure: Regenerated.
970
971 2003-01-24 Nick Clifton <nickc@redhat.com>
972
973 * Add sh2e support:
974
975 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
976
977 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
978 (sh2e_show_regs): New.
979 (sh_gdbarch_init): Handle bfd_mach_sh2e.
980 * config/sh/tm-sh.h: Added sh2e to comments.
981
982 2003-01-23 Jim Blandy <jimb@redhat.com>
983
984 * symfile.c (syms_from_objfile): Don't print the "(no debugging
985 symbols found)" message here; we haven't checked for a separate
986 debug info file yet, so we don't know yet.
987 (symbol_file_add_with_addrs_or_offsets): Print it here, after
988 we've looked everywhere. Also, there's no need to print a special
989 message when we're loading the separate debug info file: the one
990 symbol_file_add prints is fine.
991
992 2003-01-23 Alexander Larsson <alexl@redhat.com>
993 Jim Blandy <jimb@redhat.com>
994
995 Add support for executables whose debug info has been separated
996 out into a separate file, leaving only a link behind.
997 * objfiles.h (struct objfile): New fields: separate_debug_objfile
998 and separate_debug_objfile_backlink.
999 (put_objfile_before): New declaration.
1000 * symfile.c: #include "filenames.h".
1001 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
1002 debug info in a separate file, read that, too. Save the addrs
1003 argument, so we can use it again to read the separated debug info;
1004 syms_from_objfile modifies the table we pass it.
1005 (reread_symbols): After re-reading an objfile, call
1006 reread_separate_symbols to refresh its separate debug info
1007 objfile, if it has one.
1008 (reread_separate_symbols, find_separate_debug_file,
1009 get_debug_link_info, separate_debug_file_exists): New functions.
1010 (debug_file_directory): New global var.
1011 (_initialize_symfile): Initialize debug_file_directory, and
1012 provide the new `set debug-file-directory' command to let the user
1013 change it.
1014 * objfiles.c (free_objfile): If this objfile has its debug info in
1015 a separate objfile, free that one too. If this is itself a
1016 separate debug info objfile, clear our parent's backlink.
1017 (put_objfile_before): New function.
1018 * utils.c (gnu_debuglink_crc32): New function.
1019 * defs.h (gnu_debuglink_crc32): New declaration.
1020 * Makefile.in (symfile.o): Note dependency on "filenames.h".
1021 * configure.in: Handle --with-separate-debug-dir config option.
1022 * acinclude.m4 (AC_DEFINE_DIR): New macro.
1023 * acconfig.h (DEBUGDIR): New macro.
1024 * configure, aclocal.m4, config.in: Regenerated.
1025
1026 2003-01-22 Jim Blandy <jimb@redhat.com>
1027
1028 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
1029 like the old symbol_file_add, but taking new arguments: you can
1030 now pass in either a `struct section_addr_info' list to say where
1031 each section is loaded, or a `struct section_offsets' table. Pass
1032 these new arguments through to syms_from_objfile as appropriate.
1033 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
1034 with the appropriate quiescent values for the new arguments.
1035
1036 * symfile.c: #include "gdb_assert.h".
1037 (syms_from_objfile): Add the ability to pass in a section offset
1038 table directly, as an alternative to the section_addr_info table.
1039 Document arguments better.
1040 (symbol_file_add): Pass extra arguments to syms_from_objfile.
1041 * symfile.h (syms_from_objfile): Update declaration.
1042 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
1043 syms_from_objfile.
1044 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
1045
1046 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
1047
1048 Original patch by Tom Tromey <tromey@cygnus.com> and
1049 Jason Molenda <jmolenda@apple.com>.
1050 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
1051 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
1052 * NEWS: Mention profiling.
1053 * configure.in (--enable-gdbtk): Fix typo.
1054 (--enable-profiling): New. Set PROFILE_CFLAGS.
1055 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
1056 Fill in function.
1057 (profiling_state): New variable.
1058 (mcleanup_wrapper): New function.
1059 (_initialize_maint): Remove NOTYET, fix call to
1060 add_setshow_boolean_cmd for "maint set profile".
1061 * configure: Regenerated.
1062
1063 2003-01-21 Martin M. Hunt <hunt@redhat.com>
1064
1065 * Makefile.in (install-gdbtk): Install PNG images too.
1066
1067 2003-01-21 Andrew Cagney <ac131313@redhat.com>
1068
1069 * exec.c (text_start): Delete global variable.
1070 (exec_file_attach): Make text_start local to the function.
1071 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
1072 * valops.c (hand_function_call): Delete code that handles
1073 BEFORE_TEXT_END and AFTER_TEXT_END.
1074 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
1075 of CALL_DUMMY_LOCATION.
1076 * gdbarch.c: Regenerate.
1077 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
1078 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
1079 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1080 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
1081 (text_end): Delete extern declaration.
1082
1083 2003-01-21 Andrew Cagney <ac131313@redhat.com>
1084
1085 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
1086 * blockframe.c (backtrace_below_main): Move to "frame.c".
1087 (frame_chain_valid): Delete check for backtrace_below_main.
1088 (_initialize_blockframe): Delete initialization, move ``set
1089 backtrace-below-main'' command to "frame.c".
1090 (do_flush_frames_sfunc): Delete function.
1091 * frame.c: Include "command.h" and "gdbcmd.h".
1092 (frame_type_from_pc): New function.
1093 (create_new_frame): Use frame_type_from_pc.
1094 (legacy_get_prev_frame): New function.
1095 (get_prev_frame): Rewrite. When an old style frame, call
1096 legacy_get_prev_frame. Otherwize, unwind the PC first.
1097 (_initialize_frame): Add ``set backtrace-below-main'' command.
1098 * Makefile.in (frame.o): Update dependencies.
1099
1100 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1101
1102 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
1103 DEPRECATED_REGISTERS_INFO.
1104
1105 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1106
1107 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
1108 Maintainers'. Update `Various Maintainers'.
1109
1110 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1111
1112 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
1113 * gdbarch.sh (POP_FRAME): Change to function with predicate.
1114 Suppress actual parameters when `-'.
1115 * gdbarch.h, gdbarch.c: Regenerate.
1116
1117 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1118
1119 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
1120 code handling dummy frames.
1121
1122 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1123
1124 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
1125 (struct frame_unwind): Add field pop.
1126 * frame.h (frame_pop): Declare.
1127 * frame.c (frame_saved_regs_pop): New function.
1128 (trad_frame_unwinder): Add frame_saved_regs_pop.
1129 (frame_pop): New function.
1130 * dummy-frame.c (dummy_frame_pop): New function.
1131 (discard_innermost_dummy): New function.
1132 (generic_pop_dummy_frame): Use discard_innermost_dummy.
1133 (dummy_frame_unwind): Add dummy_frame_pop.
1134 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
1135 * valops.c (hand_function_call): Ditto.
1136 * stack.c (return_command): Ditto.
1137
1138 2003-01-18 Andrew Cagney <ac131313@redhat.com>
1139
1140 * cris-tdep.c: Fix function declaration indentation.
1141 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
1142 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
1143 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
1144 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
1145 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
1146 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
1147
1148 2003-01-18 Michael Chastain <mec@shout.net>
1149
1150 * README (Unpacking and Installation -- quick overview):
1151 Warn against ".../gdb-5.3/gdb/configure".
1152
1153 2003-01-18 Andrew Cagney <ac131313@redhat.com>
1154
1155 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
1156 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
1157 (struct frame_unwind): Declare opaque.
1158 (dummy_frame_p): Declare function.
1159 * dummy-frame.c (dummy_frame_id_unwind): Make static.
1160 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
1161 * dummy-frame.c: Include "frame-unwind.h".
1162 (dummy_frame_p): New function.
1163 (dummy_frame_unwind): New variable.
1164 * frame.c: Include "frame-unwind.h".
1165 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
1166 to use the new unwind field.
1167 (set_unwind_by_pc): Delete function.
1168 (create_new_frame, get_prev_frame): Set unwind field using
1169 frame_unwind_find_by_pc.
1170 (trad_frame_unwind, trad_frame_unwinder): New variables.
1171 * frame.h (trad_frame_unwind): Declare variable.
1172 (frame_id_unwind_ftype): Delete declaration.
1173 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
1174 (struct frame_unwind): Declare opaque.
1175 (struct frame_info): Replace the fields id_unwind, pc_unwind and
1176 register_unwind with a single unwind pointer.
1177 * frame-unwind.h, frame-unwind.c: New files.
1178 * Makefile.in (SFILES): Add frame-unwind.c.
1179 (frame_unwind_h): Define.
1180 (COMMON_OBS): Add frame-unwind.o.
1181 (frame-unwind.o): Specify dependencies.
1182 (frame.o, dummy-frame.o): Update dependencies.
1183
1184 2003-01-18 Andrew Cagney <ac131313@redhat.com>
1185
1186 * ada-valprint.c: Eliminate PTR.
1187 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
1188 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
1189 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
1190 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
1191 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
1192 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
1193 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
1194
1195 2003-01-17 Andrew Cagney <ac131313@redhat.com>
1196
1197 * main.c (captured_main): Don't use PTR.
1198 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
1199 * gdbtypes.c (lookup_primitive_typename): Ditto.
1200 (lookup_struct_elt_type): Ditto.
1201 * f-valprint.c (info_common_command): Ditto.
1202 (list_all_visible_commons): Ditto.
1203 * jv-typeprint.c (java_type_print_base): Ditto.
1204
1205 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
1206 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
1207 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
1208 i386-interix-nat.c and i386-interix-tdep.c. Rename
1209 m68klinux-nat.c and m68klinux-tdep.c. Rename
1210 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
1211 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
1212 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
1213 * main.c (captured_main): Use xfree, not free.
1214
1215 2003-01-16 Andrew Cagney <ac131313@redhat.com>
1216
1217 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
1218 ID back using a parameter.
1219 * frame.c (frame_id_unwind): Update call.
1220 (frame_saved_regs_id_unwind): Update.
1221 * dummy-frame.c (dummy_frame_id_unwind): Update function.
1222 * dummy-frame.h (struct frame_id): Add opaque declaration.
1223 (dummy_frame_id_unwind): Update declaration.
1224
1225 2003-01-15 Andrew Cagney <ac131313@redhat.com>
1226
1227 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
1228
1229 2003-01-15 Stephen P. Smith <ischis2@cox.net>
1230
1231 * MAINTAINERS (Stephen P. Smith): Updated email address.
1232
1233 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
1234
1235 Fix PR gdb/898
1236 * breakpoint.c (until_break_command): Add new argument. Use it to
1237 decide whether to stop only at the current frame or not.
1238 * breakpoint.h (until_break_command): Update prototype.
1239 * infcmd.c (until_command): Add new argument to until_break_command
1240 call.
1241 (advance_command): New function.
1242 (_initialize_infcmd): Update help string for 'until' command.
1243 Add new 'advance' command.
1244
1245 2003-01-14 David Carlton <carlton@math.stanford.edu>
1246
1247 * linespec.c (decode_line_1): Normalize comments.
1248 (set_flags): Ditto.
1249 (locate_first_half): Ditto.
1250 (decode_compound): Ditto.
1251 (symtab_from_filename): Ditto.
1252 (decode_all_digits): Ditto.
1253 (decode_dollar): Ditto.
1254 (find_methods): Ditto.
1255 (find_toplevel_char): Ditto.
1256
1257 2003-01-13 Andrew Cagney <ac131313@redhat.com>
1258
1259 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
1260 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
1261 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
1262 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
1263 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
1264 * language.c, language.h, m32r-tdep.c: Update copyright.
1265 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
1266 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
1267 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
1268 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
1269 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
1270 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
1271
1272 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
1273
1274 * stabsread.h (process_later, resolve_cfront_continuation):
1275 Obsolete.
1276 Update copyright years.
1277 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
1278 Update copyright year.
1279 * dbxread.c(struct cont_elem): Obsolete.
1280 (process_later, process_now): Obsolete functions.
1281 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
1282 Update copyright year.
1283 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
1284 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
1285 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
1286 (parse_partial_symbols): Obsolete cfront support.
1287 * stabsread.c
1288 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
1289 macros.
1290 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
1291 read_cfront_baseclasses, read_cfront_member_functions,
1292 resolve_cfront_continuation,read_cfront_static_fields,
1293 copy_cfront_struct_fields): Obsolete functions.
1294 (define_symbol, read_one_struct_field): Obsolete cfront support.
1295 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
1296 Update Copyright year.
1297
1298 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
1299
1300 * stack.c (print_frame_info, print_stack_frame_base_stub,
1301 print_stack_frame_base, show_and_print_stack_frame_stub,
1302 show_and_print_stack_frame, print_only_stack_frame_stub,
1303 print_only_stack_frame): Delete functions.
1304 (print_stack_frame_stub): Call print_frame_info instead of
1305 print_frame_info_base.
1306 (print_frame_info_base): Rename to print_frame_info.
1307 (backtrace_command_1): Call print_frame_info, instead of
1308 print_frame_info_base.
1309 (current_frame_command): Call print_stack_frame, instead of
1310 print_only_stack_frame.
1311 (frame_command): Call print_stack_frame, instead of
1312 show_and_print_stack_frame.
1313 (up_command): Ditto.
1314 (down_command): Ditto.
1315 * frame.h (print_only_stack_frame): Delete prototype.
1316 * infrun.c (normal_stop): Call print_stack_frame, instead of
1317 show_and_print_stack_frame.
1318 * thread.c (info_threads_command): Call print_stack_frame, instead
1319 of print_only_stack_frame.
1320
1321 2003-01-13 Andrew Cagney <ac131313@redhat.com>
1322
1323 * README (Graphical interface to GDB): Update URL. Point at
1324 gdb/links/.
1325
1326 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
1327 version match.
1328
1329 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1330
1331 * symtab.c (find_pc_sect_line): Don't consider end-of-function
1332 lines.
1333
1334 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1335
1336 * thread-db.c (attach_thread): Prototype.
1337 (struct private_thread_info): Remove lwpid. Add thread handle (th),
1338 thread information (ti), and valid flags (th_valid, ti_valid).
1339 (attach_thread): Move target_pid_to_str call to after the thread
1340 is added to GDB's list. Initialize the cache.
1341 (thread_get_info_callback, thread_db_map_id2thr)
1342 (thread_db_get_info): New functions.
1343 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
1344 (thread_db_store_registers, thread_db_thread_alive)
1345 (thread_db_get_thread_local_address): Use them.
1346 (thread_db_pid_to_str): Likewise. Return "Missing" instead
1347 of calling error() for threads in unknown state.
1348
1349 (clear_lwpid_callback): New function.
1350 (thread_db_resume): Use it to clear the cache.
1351
1352 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1353
1354 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
1355 (resume_callback): Remove dead code.
1356
1357 2003-01-13 Andrew Cagney <ac131313@redhat.com>
1358
1359 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
1360 predicate.
1361 * gdbarch.h, gdbarch.c: Regenerate.
1362 * stack.c (frame_info): Only initialize the saved registers when
1363 FRAME_INIT_SAVED_REGS_P.
1364 * frame.c (frame_saved_regs_register_unwind): Assert
1365 FRAME_INIT_SAVED_REGS_P.
1366 (deprecated_generic_get_saved_register): Ditto.
1367
1368 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1369
1370 * source.c (openp): Squelch warning about "filename".
1371
1372 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1373
1374 * source.c (openp): If the file does not exist don't necessarily
1375 search the path.
1376
1377 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1378
1379 Fix PR gdb/872.
1380 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
1381 (integer_types_same_name_p): New function.
1382 (rank_one_type): Use it.
1383 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
1384
1385 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1386
1387 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
1388 variables.
1389 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
1390 * configure.in: Add --with-sysroot.
1391 * configure: Regenerated.
1392 * main.c (gdb_sysroot): New variable.
1393 (captured_main): Initialize gdb_sysroot.
1394 * defs.h (gdb_sysroot): New extern declaration.
1395 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
1396
1397 2003-01-12 Michael Chastain <mec@shout.net>
1398
1399 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
1400
1401 2003-01-12 Michael Chastain <mec@shout.net>
1402
1403 * top.c (print_gdb_version): Bump copyright year to 2003.
1404
1405 2003-01-12 David Carlton <carlton@bactrian.org>
1406
1407 * linespec.c (symtab_from_filename): Rename variable 's' to
1408 'file_symtab'.
1409
1410 2003-01-12 Andrew Cagney <ac131313@redhat.com>
1411
1412 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
1413 dummy frame.
1414 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
1415
1416 2003-01-12 Andrew Cagney <ac131313@redhat.com>
1417
1418 * d10v-tdep.c: Include "gdb_assert.h".
1419 (d10v_store_return_value): Rewrite to match current interface.
1420 (d10v_extract_struct_value_address): Ditto.
1421 (d10v_extract_return_value): Ditto.
1422 (d10v_gdbarch_init): Set store_restore_value,
1423 extract_struct_value_address and extract_return_value.
1424
1425 2003-01-12 J. Brobecker <brobecker@gnat.com>
1426
1427 * hpread.c (set_namestring): New procedure replacing the
1428 SET_NAMESTRING macro.
1429 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
1430 by calls to set_namestring.
1431
1432 2003-01-11 J. Brobecker <brobecker@gnat.com>
1433
1434 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
1435 a compilation warning.
1436 (hpread_process_one_debug_symbol): Likewise.
1437
1438 2003-01-10 David Carlton <carlton@math.stanford.edu>
1439
1440 * linespec.c (decode_line_1): Rename variable 's' to
1441 'file_symtab'.
1442 (decode_all_digits): Rename argument 's' to 'file_symtab'.
1443 (decode_dollar): Ditto.
1444 (decode_variable): Ditto.
1445 (symbol_found): Ditto.
1446
1447 2003-01-09 Michael Chastain <mec@shout.net>
1448
1449 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
1450
1451 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
1452
1453 * win32-nat.c (set_process_privilege): New function.
1454 (child_attach): Call set_process_privilege() to enable the
1455 SE_DEBUG_NAME user privilege if available in process token.
1456
1457 2003-01-10 J. Brobecker <brobecker@gnat.com>
1458
1459 * hpread.c (hpread_process_one_debug_symbol): Fix a small
1460 compilation error in the previous revision.
1461
1462 2003-01-09 David Carlton <carlton@math.stanford.edu>
1463
1464 * linespec.c: Update copyright.
1465
1466 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1467
1468 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
1469 than inferior_ptid.
1470 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
1471
1472 2003-01-09 Andrew Cagney <ac131313@redhat.com>
1473
1474 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
1475 Update comments.
1476 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
1477 (frame_saved_regs_zalloc): Update.
1478 (frame_saved_regs_register_unwind): Update.
1479 (create_new_frame): Update.
1480 (get_prev_frame): Update.
1481 (frame_extra_info_zalloc): Update.
1482 (deprecated_get_frame_saved_regs): Update.
1483 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
1484 * cris-tdep.c: Update comment.
1485
1486 * somsolib.h: Fix function indentation.
1487 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
1488 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
1489 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
1490 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
1491 * somsolib.c, inftarg.c: Remove assignment in if conditional.
1492
1493 * infrun.c (follow_fork): Use ISO C definition.
1494 * expprint.c (print_subexp): Use xfree instead of free.
1495 * charset.c: Include "gdb_string.h" instead of <string.h>.
1496 (register_iconv_charsets): Use ISO C definition.
1497 (host_charset, target_charset): Ditto.
1498 * Makefile.in (charset.o): Update dependencies.
1499 (mi-cmd-env.o): Update dependencies.
1500
1501 2003-01-08 Andrew Cagney <cagney@redhat.com>
1502
1503 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
1504 get_frame_base.
1505
1506 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1507
1508 * gdb_mbuild.sh: Add --keep option. When specified, keep the
1509 build directories. Save edited gdb output in Mbuild.log. If a
1510 build fails, remove any final GDB executable.
1511
1512 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1513
1514 * gdb_mbuild.sh: Edit the output of `maint print architecture'
1515 replacing hex constants with function names and stripping leading
1516 file name directory prefixes.
1517
1518 2003-01-08 Andrew Cagney <cagney@redhat.com>
1519
1520 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
1521 get_frame_base.
1522
1523 2003-01-08 David Carlton <carlton@math.stanford.edu>
1524
1525 * linespec.c (decode_line_1): Move code into decode_variable.
1526 (decode_variable): New function.
1527
1528 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1529
1530 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
1531
1532 2003-01-08 Andrew Cagney <cagney@redhat.com>
1533
1534 * cris-tdep.c (cris_frame_init_saved_regs): Use
1535 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
1536 saved_regs buffer.
1537 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
1538 (sh64_nofp_frame_init_saved_regs): Ditto.
1539 (sh_fp_frame_init_saved_regs): Ditto.
1540 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
1541 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
1542 * mcore-tdep.c (analyze_dummy_frame): Ditto.
1543 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1544
1545 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
1546
1547 * minsyms.c (lookup_minimal_symbol): Update comment.
1548 (lookup_minimal_symbol_text): Update comment. Use the hash table.
1549 (lookup_minimal_symbol_solib_trampoline): Likewise.
1550
1551 2003-01-08 Andrew Cagney <cagney@redhat.com>
1552
1553 * d10v-tdep.c (d10v_init_extra_frame_info): Use
1554 frame_relative_level.
1555
1556 * alpha-tdep.c: Use get_frame_extra_info.
1557 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1558 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
1559 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
1560 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
1561
1562 * alpha-tdep.c: Use get_next_frame.
1563 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1564 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
1565 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
1566 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
1567 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
1568 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
1569 * xstormy16-tdep.c: Ditto.
1570
1571 2003-01-07 Andrew Cagney <cagney@redhat.com>
1572
1573 * alpha-tdep.c: Use get_frame_base.
1574 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1575 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
1576 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
1577 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
1578 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
1579 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
1580 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
1581 * config/sparc/tm-sparc.h: Ditto.
1582
1583 2003-01-07 Andrew Cagney <cagney@redhat.com>
1584
1585 * frame.c (deprecated_get_frame_context): New function.
1586 (deprecated_set_frame_context): New function.
1587 * frame.h (deprecated_get_frame_context): Declare.
1588 (deprecated_set_frame_context): Declare.
1589 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
1590 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
1591
1592 2003-01-07 Andrew Cagney <cagney@redhat.com>
1593
1594 * frame.c (deprecated_set_frame_next_hack): New function.
1595 (deprecated_set_frame_prev_hack): New function.
1596 * frame.h (deprecated_set_frame_next_hack): Declare.
1597 (deprecated_set_frame_prev_hack): Declare.
1598 * mcore-tdep.c (analyze_dummy_frame): Use
1599 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
1600 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1601
1602 2003-01-07 David Carlton <carlton@math.stanford.edu>
1603
1604 * linespec.c (decode_line_1): Move code into decode_dollar.
1605 (decode_dollar): New function.
1606
1607 2003-01-07 Andrew Cagney <cagney@redhat.com>
1608
1609 * arm-tdep.c (arm_init_extra_frame_info): Use
1610 deprecated_update_frame_base_hack.
1611 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
1612 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1613 (fix_frame_pointer): Ditto.
1614 (mn10300_analyze_prologue): Ditto.
1615
1616 2003-01-07 Andrew Cagney <cagney@redhat.com>
1617
1618 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
1619 extra_info using frame_extra_info_zalloc.
1620 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
1621 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
1622 (sh64_init_extra_frame_info): Ditto.
1623 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
1624 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
1625 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
1626 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
1627 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
1628 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
1629 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
1630 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
1631 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
1632 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
1633 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
1634 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
1635
1636 * mn10300-tdep.c (analyze_dummy_frame): Use
1637 deprecated_set_frame_extra_info_hack.
1638 * mcore-tdep.c (analyze_dummy_frame): Ditto.
1639
1640 2003-01-07 J. Brobecker <brobecker@gnat.com>
1641
1642 * mdebugread.c (parse_symbol): Skip stProc entries which storage
1643 class is not scText. These do not define "real" procedures.
1644 (parse_partial_symbols): Likewise.
1645
1646 2003-01-06 Michael Snyder <msnyder@redhat.com>
1647
1648 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
1649
1650 2003-01-06 Andrew Cagney <ac131313@redhat.com>
1651
1652 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
1653 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
1654 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
1655 deprecated_frame_xmalloc_with_cleanup.
1656 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
1657 deprecated_frame_xmalloc.
1658 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
1659 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
1660
1661 2003-01-06 Andrew Cagney <cagney@redhat.com>
1662
1663 * x86-64-linux-tdep.c: Include "osabi.h".
1664 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
1665
1666 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
1667
1668 2003-01-06 Andrew Cagney <cagney@redhat.com>
1669
1670 * MAINTAINERS (Target Instruction Set Architectures): Update
1671 arm-elf. Can be built with -Werror, has been multiarched.
1672
1673 * value.h (unpack_long): Make buffer parameter constant.
1674 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
1675 * scm-lang.h (scm_parse): Ditto.
1676 * defs.h (extract_typed_address, extract_address): Ditto.
1677 (extract_long_unsigned_integer): Ditto.
1678 * inferior.h (unsigned_pointer_to_address): Ditto.
1679 (signed_pointer_to_address): Ditto.
1680 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
1681 * gdbarch.h, gdbarch.c: Regenerate.
1682 * findvar.c (extract_long_unsigned_integer): Update.
1683 (extract_address): Update.
1684 (extract_typed_address): Update.
1685 (unsigned_pointer_to_address): Update.
1686 * values.c (unpack_long): Update.
1687 (unpack_double): Update.
1688 (unpack_pointer): Update.
1689 (unpack_field_as_long): Update.
1690 * d10v-tdep.c (d10v_pointer_to_address): Update.
1691 * avr-tdep.c (avr_pointer_to_address): Update.
1692 * scm-lang.c (scm_unpack): Update.
1693 * findvar.c (signed_pointer_to_address): Update.
1694
1695 2003-01-06 Michal Ludvig <mludvig@suse.cz>
1696
1697 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
1698 since it is in i386-tdep.c.
1699
1700 2003-01-06 J. Brobecker <brobecker@gnat.com>
1701
1702 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
1703 failure introduced in the previous change.
1704
1705 2003-01-05 Michael Chastain <mec@shout.net>
1706
1707 * README: Remove references to deleted remote-*.c files:
1708 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
1709 remote-nrom.c, remote-os9k.c, remote-udi.c.
1710
1711 2003-01-05 Mark Kettenis <kettenis@gnu.org>
1712
1713 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
1714 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
1715 i386_get_longjmp_target.
1716
1717 2003-01-05 Andrew Cagney <ac131313@redhat.com>
1718
1719 * arm-tdep.c (prologue_cache): Change to a pointer.
1720 (_initialize_arm_tdep): Allocate prologue_cache.
1721 (check_prologue_cache): Update.
1722 (save_prologue_cache): Update.
1723 (arm_gdbarch_init): Update.
1724
1725 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1726
1727 * stabsread.c (update_method_name_from_physname): Call complaint()
1728 instead of error.
1729
1730 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1731
1732 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
1733 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
1734 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
1735
1736 * blockframe.c: Include "gdbcmd.h" and "command.h".
1737 (backtrace_below_main): New variable.
1738 (file_frame_chain_valid, func_frame_chain_valid)
1739 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
1740 (generic_func_frame_chain_valid): Remove functions.
1741 (frame_chain_valid, do_flush_frames_sfunc): New functions.
1742 (_initialize_blockframe): New function.
1743 * Makefile.in (blockframe.o): Update dependencies.
1744 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
1745 comment. Call frame_chain_valid ().
1746 * frame.h: Remove old prototypes. Add prototype for
1747 frame_chain_valid and update comments to match.
1748 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
1749 Remove old comment.
1750 * gdbarch.h: Regenerated.
1751 * gdbarch.c: Regenerated.
1752
1753 * alpha-tdep.c (alpha_gdbarch_init): Don't call
1754 set_gdbarch_frame_chain_valid.
1755 * avr-tdep.c (avr_gdbarch_init): Likewise.
1756 * cris-tdep.c (cris_gdbarch_init): Likewise.
1757 * frv-tdep.c (frv_gdbarch_init): Likewise.
1758 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
1759 * i386-tdep.c (i386_svr4_init_abi): Likewise.
1760 (i386_nw_init_abi): Likewise.
1761 (i386_gdbarch_init): Likewise.
1762 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
1763 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1764 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1765 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1766 * mips-tdep.c (mips_gdbarch_init): Likewise.
1767 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1768 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
1769 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
1770 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1771 * s390-tdep.c (s390_gdbarch_init): Likewise.
1772 * sh-tdep.c (sh_gdbarch_init): Likewise.
1773 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1774 * v850-tdep.c (v850_gdbarch_init): Likewise.
1775 * vax-tdep.c (vax_gdbarch_init): Likewise.
1776 * x86-64-tdep.c (x86_64_init_abi): Likewise.
1777
1778 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
1779 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
1780 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
1781 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
1782 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
1783 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
1784 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
1785 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
1786
1787 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
1788
1789 * Makefile.in (acconfig_h): Remove incorrect macro.
1790 (config_h): Define.
1791 (osabi.o): Update dependencies.
1792 * configure.tgt: Set gdb_osabi based on target triplet.
1793 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
1794 * configure: Regenerated.
1795 * config.in: Regenerated.
1796 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
1797 (GDB_OSABI_DEFAULT): Define if not already defined.
1798 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
1799 (set_osabi_string): New variables.
1800 (gdbarch_register_osabi): Add new OS ABI to
1801 gdb_osabi_available_names.
1802 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
1803 (set_osabi, show_osabi): New functions.
1804 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
1805
1806 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1807
1808 * arch-utils.c (gdbarch_info_init): Set osabi to
1809 GDB_OSABI_UNINITIALIZED.
1810 * gdbarch.sh: Add osabi to struct gdbarch and to struct
1811 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
1812 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
1813 * gdbarch.c: Regenerated.
1814 * gdbarch.h: Regenerated.
1815 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
1816 there's no BFD.
1817 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
1818 * osabi.h (enum gdb_osabi): Move to defs.h.
1819 (gdbarch_init_osabi): Update prototype.
1820 * defs.h (enum gdb_osabi): Moved here.
1821 * Makefile.in: Update dependencies.
1822
1823 * alpha-tdep.h: Don't include "osabi.h".
1824 (struct gdbarch_tdep): Remove osabi member.
1825 * alpha-tdep.c: Include "osabi.h".
1826 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1827 iterate over arches. Update call to gdbarch_init_osabi.
1828 (alpha_dump_tdep): Don't dump osabi.
1829 * alpha-linux-tdep.c: Include "osabi.h".
1830 * alpha-osf1-tdep.c: Include "osabi.h".
1831 * alphafbsd-tdep.c: Include "osabi.h".
1832 * alphanbsd-tdep.c: Include "osabi.h".
1833
1834 * arm-tdep.h: Don't include "osabi.h".
1835 (struct gdbarch_tdep): Remove osabi member.
1836 * arm-tdep.c: Include "osabi.h".
1837 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1838 iterate over arches. Update call to gdbarch_init_osabi.
1839 (arm_dump_tdep): Don't dump osabi.
1840 * arm-linux-tdep.c: Include "osabi.h".
1841 * armnbsd-tdep.c: Include "osabi.h".
1842
1843 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
1844 Update call to gdbarch_init_osabi.
1845
1846 * i386-tdep.h: Don't include "osabi.h".
1847 (struct gdbarch_tdep): Remove osabi member.
1848 * i386-tdep.c: Include "osabi.h".
1849 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1850 iterate over arches. Update call to gdbarch_init_osabi.
1851 (i386_dump_tdep): Don't dump osabi.
1852 * i386-linux-tdep.c: Include "osabi.h".
1853 * i386-sol2-tdep.c: Include "osabi.h".
1854 * i386bsd-tdep.c: Include "osabi.h".
1855 * i386gnu-tdep.c: Include "osabi.h".
1856 * i386ly-tdep.c: Include "osabi.h".
1857 * i386nbsd-tdep.c: Include "osabi.h".
1858 * i386obsd-tdep.c: Include "osabi.h".
1859
1860 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
1861 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1862 check osabi when iterating over arches. Update call to
1863 gdbarch_init_osabi.
1864 (mips_dump_tdep): Don't dump osabi.
1865
1866 * ns32k-tdep.h: Don't include "osabi.h".
1867 (struct gdbarch_tdep): Remove.
1868 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
1869 gdbarch_lookup_osabi. Don't iterate over arches. Don't
1870 allocate tdep. Update call to gdbarch_init_osabi.
1871 (ns32k_dump_tdep): Remove.
1872 (_initialize_ns32k_tdep): Update call to gdbarch_register.
1873 * ns32knbsd-tdep.c: Include "osabi.h".
1874
1875 * ppc-tdep.h: Don't include "osabi.h".
1876 (struct gdbarch_tdep): Remove osabi member.
1877 * rs6000-tdep.c: Include "osabi.h".
1878 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
1879 osabi when iterating over arches. Update call to
1880 gdbarch_init_osabi.
1881 (rs6000_dump_tdep): Don't dump osabi.
1882 * ppc-linux-tdep.c: Include "osabi.h".
1883 * ppcnbsd-tdep.c: Include "osabi.h".
1884
1885 * sh-tdep.h: Don't include "osabi.h".
1886 (struct gdbarch_tdep): Remove osabi member.
1887 * sh-tdep.c: Include "osabi.h".
1888 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1889 iterate over arches. Update call to gdbarch_init_osabi.
1890 (sh_dump_tdep): Don't dump osabi.
1891 * shnbsd-tdep.c: Include "osabi.h".
1892
1893 * sparc-tdep.c: Include "osabi.h".
1894 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1895 iterate over arches. Update call to gdbarch_init_osabi.
1896 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
1897 tdep structure.
1898
1899 * vax-tdep.h: Don't include "osabi.h".
1900 (struct gdbarch_tdep): Remove.
1901 * vax-tdep.c: Include "osabi.h".
1902 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1903 iterate over arches. Don't allocate tdep. Update call
1904 to gdbarch_init_osabi.
1905 (vax_dump_tdep): Remove.
1906 (_initialize_vax_tdep): Update call to gdbarch_register.
1907
1908 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1909
1910 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
1911 entirely.
1912 (breakpoint_re_set_one): Don't fetch the value for a disabled
1913 watchpoint.
1914
1915 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1916
1917 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
1918 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
1919 (COERCE_FLOAT_TO_DOUBLE): Remove.
1920 * gdbarch.c: Regenerate.
1921 * gdbarch.h: Regenerate.
1922 * Makefile.in: Remove value_h from gdbarch_h.
1923 * valops.c (coerce_float_to_double): New variable.
1924 (default_coerce_float_to_double): Remove.
1925 (standard_coerce_float_to_double): Remove.
1926 (value_arg_coerce): Use coerce_float_to_double.
1927 (_initialize_valops): Add "set coerce-float-to-double".
1928 * value.h (default_coerce_float_to_double): Remove prototype.
1929 (standard_coerce_float_to_double): Remove prototype.
1930
1931 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
1932 prototyped.
1933 * mdebugread.c (parse_symbol): Likewise.
1934 * stabsread.c (define_symbol): Mark all functions as prototyped.
1935
1936 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
1937 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
1938 set_gdbarch_coerce_float_to_double.
1939 * arm-tdep.c (arm_gdbarch_init): Likewise.
1940 * frv-tdep.c (frv_gdbarch_init): Likewise.
1941 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
1942 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1943 * mips-tdep.c (mips_gdbarch_init): Likewise.
1944 (mips_coerce_float_to_double): Remove.
1945 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1946 (rs6000_coerce_float_to_double): Remove.
1947 * s390-tdep.c (s390_gdbarch_init): Likewise.
1948 * sh-tdep.c (sh_gdbarch_init): Likewise.
1949 (sh_coerce_float_to_double): Remove.
1950 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1951 (sparc_coerce_float_to_double): Remove.
1952 * v850-tdep.c (v850_gdbarch_init): Likewise.
1953 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
1954 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1955 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
1956 (hppa_coerce_float_to_double): Remove prototype.
1957 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1958
1959 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1960
1961 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
1962
1963 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1964
1965 Suggested by Stewart Brown <sb24@avaya.com>:
1966 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
1967 in recursive calls. Handle TYPE_CODE_TYPEDEF.
1968 (c_type_print_varspec_suffix): Likewise.
1969
1970 2003-01-04 Mark Kettenis <kettenis@gnu.org>
1971
1972 * configure.in: Don't set and AC_SUBST SUBDIRS.
1973 * configure: Regenerated.
1974
1975 * configure.in: Remove code dealing with shared libraries.
1976 * Makefile.in: Remove HLDFLAGS and HLDENV.
1977 * configure: Regenerated.
1978
1979 2003-01-04 Andrew Cagney <ac131313@redhat.com>
1980
1981 * frame.c (deprecated_frame_xmalloc): New function.
1982 (deprecated_set_frame_saved_regs_hack): New function.
1983 (deprecated_set_frame_extra_info_hack): New function.
1984 * frame.h (deprecated_frame_xmalloc): Declare.
1985 (deprecated_set_frame_saved_regs_hack): Declare.
1986 (deprecated_set_frame_extra_info_hack): Declare.
1987
1988 2003-01-04 Mark Kettenis <kettenis@gnu.org>
1989
1990 * configure.in: Move code that provides the --enable-gdbtk option
1991 right after the code that handles the --enable-tui option, and
1992 polish it somewhat.
1993 * configure: Regenerated.
1994
1995 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
1996 AC_CHECK_FUNCS and remove the old check for pread64.
1997 * acinclude.m4 (AC_GNU_SOURCE): New macro.
1998 * acconfig.h (_GNU_SOURCE): Add.
1999 (HAVE_PREAD64): Remove.
2000 * configure, aclocal.m4, config.in: Regenerated.
2001
2002 2003-01-03 Andrew Cagney <ac131313@redhat.com>
2003
2004 * alpha-tdep.c: Use get_frame_saved_regs.
2005 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2006 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2007 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
2008 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
2009 * vax-tdep.c, xstormy16-tdep.c: Ditto.
2010
2011 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2012
2013 * configure.in: Remove all use of the SUBDIRS variable; add
2014 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
2015 code providing the --enable-multi-ice option, and move it right in
2016 front of the code that checks whether gdbserver is supported.
2017 Polish that too.
2018 * configure: Regenerated.
2019 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
2020 @SUBDIRS@.
2021
2022 2003-01-03 Andrew Cagney <cagney@redhat.com>
2023
2024 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
2025 * avr-tdep.c, cris-tdep.c: Ditto.
2026 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2027 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
2028
2029 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2030
2031 * configure.in: Remove --enable-netrom option.
2032 * configure: Regenerated.
2033
2034 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2035
2036 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
2037 declaration for `struct re_pattern_buffer' instead.
2038 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
2039
2040 2003-01-03 J. Brobecker <brobecker@gnat.com>
2041
2042 * mdebugread.c (parse_symbol): Count until the stEnd matching
2043 the structure name.
2044
2045 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2046
2047 * configure.in: Remove --with-cpu option.
2048 subscripts. Remove evil changequotes here.
2049 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
2050 * config.in, configure: Regenerated.
2051
2052 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
2053 * configure.in: Cleanup section that sources GDB and BFD configure
2054 subscripts. Remove evil changequotes here.
2055 * config.in, configure: Regenerated.
2056
2057 2003-01-02 Andrew Cagney <ac131313@redhat.com>
2058
2059 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
2060 frame accessor methods.
2061 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2062 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
2063 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2064 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
2065 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
2066 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
2067 * z8k-tdep.c: Ditto.
2068
2069 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2070
2071 * configure.in: Remove UI_OUT configuration code.
2072 * ada-lang.c: Update assuming UI_OUT is always true.
2073 * Makefile.in (UIOUT_CFLAGS): Remove.
2074 * configure: Regenerated.
2075 * TODO: Remove blurb about elimination of -DUI_OUT.
2076
2077 * configure.in: Move code that provides the --enable-gdbcli,
2078 --enable-gdbmi options right before the code that handles the
2079 --enable-tui option. Polish a bit.
2080 * configure: Regenerated.
2081
2082 * configure.in: Rewrite check for GNU regex and the
2083 --without-included regex option, and move it into the "Checks for
2084 library functions" section. This makes us use the system regex
2085 again by default on systems with version 2 of the GNU C library.
2086 This was apparently broken.
2087 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
2088 * acconfig.h (USE_INCLUDED_REGEX): Remove.
2089 * config.in, configure: Regenerated.
2090
2091 * configure.in: Move code that provides the --enable-tui option
2092 before the "Checks for libraries" section. Polish the code
2093 somewhat and set need_curses to yes if we build the TUI. Rewrite
2094 code that looks for a library providing termcap functionality to
2095 match more closely what's done in the Readline library, and move
2096 it into to the "Checks for libraries" section.
2097 * configure: Regenerated.
2098 * Makefile.in (TERMCAP): Remove variable.
2099 * config/i386/go32.mh (TERMCAP): Remove variable.
2100
2101 2003-01-02 Andrew Cagney <ac131313@redhat.com>
2102
2103 * MAINTAINERS: Mention gdb_mbuild.sh.
2104 * gdb_mbuild.sh: Rewrite.
2105
2106 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2107
2108 * configure.in: Fix typo in last change.
2109 * config.in, configure: Regenerated.
2110
2111 2003-01-02 Andrew Cagney <ac131313@redhat.com>
2112
2113 * valarith.c (value_binop): Delete obsolete code and comments.
2114 * configure.host: Ditto.
2115 * buildsym.h (make_blockvector): Ditto.
2116 * buildsym.c (make_blockvector): Ditto.
2117 * defs.h (enum language): Ditto.
2118 (chill_demangle): Ditto.
2119 * elfread.c (elf_symtab_read): Ditto.
2120 * dwarfread.c (CHILL_PRODUCER): Ditto.
2121 (set_cu_language): Ditto.
2122 (handle_producer): Ditto.
2123 * expprint.c (print_subexp): Ditto.
2124 * gdbtypes.c (chill_varying_type): Ditto.
2125 * gdbtypes.h (builtin_type_chill_bool): Ditto.
2126 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
2127 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
2128 (chill_varying_type): Ditto.
2129 * language.h (_LANG_chill): Ditto.
2130 * language.c (binop_result_type, integral_type): Ditto.
2131 (character_type, string_type, structured_type): Ditto.
2132 (lang_bool_type, binop_type_check): Ditto.
2133 * stabsread.h (os9k_stabs): Ditto.
2134 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
2135 (define_symbol, read_type, read_struct_fields): Ditto.
2136 (read_array_type, read_enum_type, read_huge_number): Ditto.
2137 (read_range_type, start_stabs): Ditto.
2138 * symfile.c (init_filename_language_table): Ditto.
2139 (add_psymbol_with_dem_name_to_list): Ditto.
2140 * symtab.c (symbol_init_language_specific): Ditto.
2141 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
2142 * symtab.h (struct general_symbol_info): Ditto.
2143 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2144 * typeprint.c (typedef_print): Ditto.
2145 * utils.c (fprintf_symbol_filtered): Ditto.
2146 * valops.c (value_cast, search_struct_field, value_slice): Delete
2147 obsolete code.
2148 (varying_to_slice): Delete function.
2149 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
2150 (varying_to_slice): Delete declaration.
2151 * MAINTAINERS: Update.
2152
2153 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2154
2155 * configure.in: Reorganize "Checks for library functions section"
2156 a bit. Remove check for `btowc' and `isascii' functions.
2157 * configure: Regenerated.
2158
2159 * acconfig.h (_MSE_INT_H): Remove.
2160 * configure.in: Create "Checks for header files" section, and move
2161 appropriate tests there. Don't check for objlist.h, wchar.h,
2162 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
2163 misdetection fix. Also add "Checks for types", "Checks for
2164 compiler characteristics" and "Checks for library functions"
2165 sections.
2166 * config.in, configure: Regenerated.
2167
2168 * configure.in: Create "Checks for programs" section, and move
2169 appropriate tests there.
2170
2171 2003-01-01 Mark Kettenis <kettenis@gnu.org>
2172
2173 * configure.in: Create "Checks for libraries" section, and move
2174 appropriate tests there. Cleanup check for wctype in libw. Use
2175 AC_SEARCH_LIBS to see whether we need libsocket.
2176 * configure: Regenerated.
2177
2178 For older changes see ChangeLog-2002
2179 \f
2180 Local Variables:
2181 mode: change-log
2182 left-margin: 8
2183 fill-column: 74
2184 version-control: never
2185 End:
This page took 0.081387 seconds and 4 git commands to generate.