2007-04-13 Paul Brook <paul@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2007-04-13 Paul Brook <paul@codesourcery.com>
2
3 * target-descriptions.c (tdesc_named_type): Add ieee_single and
4 ieee_double.
5 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
6
7 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8
9 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
10 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
11 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
12 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
13 * Makefile.in: Remove references to deleted files.
14 * README: Do not mention deleted ROM monitor interfaces.
15 * defs.h (enum language): Delete language_scm.
16 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
17 (dump_subexp_body_standard): Likewise.
18 * parse.c (operator_length_standard): Likewise.
19 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
20 * remote-mips.c: Do not include remote-utils.h.
21 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
22 throughout.
23 * value.c: Do not include scm-lang.h.
24 (unpack_long): Delete scm_unpack call.
25 * config/h8300/h8300.mt, config/mips/embed.mt,
26 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
27 config/sh/embed.mt, config/sh/linux.mt: Remove references to
28 deleted files.
29 * NEWS: Mention removed files.
30
31 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
32
33 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
34 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
35
36 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
37
38 * NEWS: Mention removal of HP aCC support.
39
40 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
41
42 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
43 first entry for static executables.
44 (breakpoint_addr): Delete unused variable.
45 (elf_locate_base): Search for _r_debug in static executables.
46 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
47 also.
48
49 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
50
51 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
52 (bpstat_what, print_one_breakpoint, allocate_bp_location)
53 (mention): Remove bp_through_sigtramp support.
54 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
55
56 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
57
58 * breakpoint.c (bpstat_what): Give step-resume higher priority than
59 shlib events.
60
61 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
62
63 * infrun.c: Doc fixes.
64 (handle_inferior_event): Clarify debug message.
65 (insert_step_resume_breakpoint_at_sal): Print a debug message.
66
67 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
68
69 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
70
71 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
72
73 * config/m68k/tm-monitor.h: Delete file.
74 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
75 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
76 call moved to ...
77 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
78 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
79
80 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
81
82 * gdbarch.sh (software_single_step): Change the return type
83 from void to int and reformatted some comments to <= 80
84 columns.
85 * gdbarch.c, gdbarch.h: Regenerated.
86 * alpha-tdep.c (alpha_software_single_step): Likewise.
87 * alpha-tdep.h (alpha_software_single_step): Likewise.
88 * arm-tdep.c (arm_software_single_step): Likewise.
89 * cris-tdep.c (cris_software_single_step): Likewise.
90 * mips-tdep.c (mips_software_single_step): Likewise.
91 * mips-tdep.h (mips_software_single_step): Likewise.
92 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
93 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
94 * sparc-tdep.c (sparc_software_single_step): Likewise.
95 * sparc-tdep.h (sparc_software_single_step): Likewise.
96 * spu-tdep.c (spu_software_single_step): Likewise.
97 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
98 and act accordingly.
99
100 2007-04-11 Steve Ellcey <sje@cup.hp.com>
101
102 * configure.ac (build_warnings): Add -Wno-char-subscripts.
103 * configure: Regenerate.
104 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
105
106 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
107
108 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
109
110 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
111
112 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
113 macros.
114 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
115 distinct on the TYPE_STUB_SUPPORTED debug targets.
116 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
117
118 2007-04-11 Joel Brobecker <brobecker@adacore.com>
119
120 * sparc-tdep.c (X_RS2): New macro.
121 (sparc_skip_stack_check): New function.
122 (sparc_analyze_prologue): Adjust PC past stack probing
123 sequence if necessary.
124
125 2007-04-10 Andreas Schwab <schwab@suse.de>
126
127 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
128 register.
129
130 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
131
132 * breakpoint.c (gdb_breakpoint_query): Really return an
133 enum gdb_rc.
134 (gdb_breakpoint): Likewise.
135 * thread.c (gdb_list_thread_ids): Likewise.
136 (gdb_thread_select): Likewise.
137 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
138 (mi_cmd_thread_list_ids): Remove bogus initialization.
139
140 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
141
142 * Makefile.in (SFILES): Remove hpacc-abi.c.
143 (COMMON_OBS): Remove hpacc-abi.o.
144 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
145 (hpacc-abi.o, hpread.o): Delete rules.
146 * somread.c: Delete extern declarations from hpread.c.
147 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
148 (som_symfile_finish): Do not call hpread_symfile_finish.
149 (som_symfile_init): Do not call hpread_symfile_init.
150 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
151 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
152 * hpacc-abi.c, hpread.c: Deleted.
153
154 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
155
156 * solib-svr4.c (enable_break): Simplify return value.
157 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
158
159 2007-04-10 Andreas Schwab <schwab@suse.de>
160
161 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
162 l_ld_size, l_next_size, l_prev_size, l_name_size.
163
164 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
165 to extract addresses from link map.
166 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
167 (LM_NEXT): Likewise.
168 (LM_NAME): Likewise.
169 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
170 (elf_locate_base): Likewise.
171 (open_symbol_file_object): Likewise.
172 (svr4_fetch_objfile_link_map): Likewise.
173 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
174 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
175 l_ld_size.
176 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
177 (svr4_lp64_fetch_link_map_offsets): Likewise.
178
179 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
180 removed members. Set l_ld_offset to -1 if not present.
181
182 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
183
184 Pass stderr of program run with "target remote |"
185 via gdb_stderr.
186 * serial.c (serial_open): Set error_fd to -1.
187 * serial.h (struct serial): New field error_fd.
188 (struct serial_opts): New field avail.
189 * ser-pipe.c (pipe_open): Create another pair
190 of sockets. Pass stderr to gdb.
191 * ser-mingw.c (pipe_windows_open): Pass
192 PEX_STDERR_TO_PIPE to pex_run. Initialize
193 sd->error_fd.
194 (pipe_avail): New.
195 (_initialize_ser_windows): Hook pipe_avail.
196 * ser-base.c (generic_readchar): Check if there's
197 anything in stderr channel and route that to gdb_stderr.
198
199 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
200
201 * dbxread.c (read_ofile_symtab): Move current_objfile
202 clearing to after end_stabs.
203
204 2007-04-01 Andreas Schwab <schwab@suse.de>
205
206 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
207 gdbarch instead of current_gdbarch.
208
209 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
210
211 * varobj.c (varobj_create): Keep varobj value
212 NULL when evaluating the type.
213
214 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
215
216 * NEWS: Mention new Windows CE support.
217
218 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
219
220 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
221 the obsoletion stanza.
222 * NEWS: Mention deleted targets.
223
224 * config/sh/tm-wince.h: Remove.
225 * config/sh/wince.mt: Remove.
226 * config/mips/tm-wince.h: Remove.
227 * config/mips/wince.mt: Remove.
228
229 * wince.c: Remove.
230 * wince-stub.c: Remove.
231 * wince-stub.h: Remove.
232 * Makefile.in (wince.o): Remove rule.
233 (wince-stub.o): Likewise.
234
235 * mips-tdep.c (mips_next_pc): Make static.
236 * mips-tdep.h (mips_next_pc): Remove declaration.
237 * arm-tdep.c (arm_pc_is_thumb): Make static.
238 (thumb_get_next_pc): Likewise.
239 (arm_get_next_pc): Likewise.
240 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
241 (arm_pc_is_thumb): Likewise.
242 (thumb_get_next_pc): Likewise.
243 (arm_get_next_pc): Likewise.
244
245 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
246
247 * MAINTAINERS: Remove d10v entry.
248 * Makefile.in (SFILES): Remove dwarfread.c.
249 (COMMON_OBS): Remove dwarfread.o.
250 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
251 (remote-est.o, rom68k-rom.o): Delete.
252 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
253 target est, target rom68k, and DWARF 1.
254 * configure.tgt: Mark d10v as removed.
255 * dwarf2read.c: Doc update.
256 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
257 and lnsize.
258 (elf_locate_sections): Do not set them.
259 (elf_symfile_read): Do not call dwarf_build_psymtabs.
260 * symfile.h (dwarf_build_psymtabs): Delete prototype.
261 * config/m68k/monitor.mt (TDEPFILES): Prune.
262 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
263 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
264
265 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
266
267 * doublest.c (convert_floatformat_to_doublest): Use
268 floatformat_classify.
269 (floatformat_is_nan): Rename to...
270 (floatformat_classify): ...this. Return more information.
271 * doublest.h (enum float_kind): New.
272 (floatformat_is_nan): Replace prototype...
273 (floatformat_classify): ...with this one.
274 * valprint.c (print_floating): Use floatformat_classify. Handle
275 infinity.
276
277 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
278
279 * README: Mention ISO C library requirement.
280
281 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
282
283 * Makefile.in (SFILES): Remove nlmread.c.
284 (COMMON_OBS): Remove nlmread.o.
285 (nlmread.o): Delete rule.
286 * README: Delete reference to remote-st.c.
287 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
288 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
289 GDB_OSABI_LYNXOS.
290 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
291 (_initialize_i386_tdep): Do not reference them.
292 * nlmread.c: Delete file.
293 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
294 * target.c: Doc update.
295 * thread.c: Delete commented include.
296 * config/alpha/tm-alpha.h: Doc update.
297
298 2007-03-30 Chris Dearman <chris@mips.com>
299
300 * utils.c (string_to_core_addr): Comment typo.
301
302 2007-03-30 Chris Dearman <chris@mips.com>
303
304 * mips-tdep.c: Comment typo.
305
306 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
307
308 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
309 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
310 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
311 * config/powerpc/nm-ppc64-linux.h: Remove file.
312 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
313 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
314 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
315 * infptrace.c (call_ptrace): Likewise.
316 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
317 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
318 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
319 (store_register): Likewise.
320
321 2007-03-29 Joel Brobecker <brobecker@adacore.com>
322
323 * Makefile.in (varobj.o): Add missing dependency.
324
325 2007-03-29 Michael Snyder <msnyder@access-company.com>
326
327 * MAINTAINERS: Update my email address.
328
329 2007-03-29 Joel Brobecker <brobecker@adacore.com>
330
331 Add support for exception handling with multiple versions of
332 the Ada runtime:
333 * ada-lang.c: Update general comments on how Ada exception catchpoints
334 are implemented.
335 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
336 (__gnat_raise_nodefer_with_msg): Delete.
337 (ada_unhandled_exception_name_addr_ftype): New type.
338 (exception_support_info): New type.
339 (ada_unhandled_exception_name_addr): Add forward declaration.
340 (ada_unhandled_exception_name_addr_from_raise): Likewise.
341 (default_exception_support_info): New constant.
342 (exception_support_info_fallback): Likewise.
343 (exception_info): New global variable.
344 (ada_exception_support_info_sniffer): New function.
345 (ada_executable_changed_observer): Likewise.
346 (ada_unhandled_exception_name_addr_from_raise): Renamed from
347 ada_unhandled_exception_name_addr.
348 (ada_unhandled_exception_name_addr): Reimplement to match the
349 latest Ada runtime implementation.
350 (error_breakpoint_runtime_sym_not_found): Delete.
351 (ada_exception_sym_name): Get the exception sym name from
352 exception_info rather than hardcoding it.
353 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
354 Update error handling.
355 * Makefile.in (ada-lang.o): Add dependency on observer.h.
356
357 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
358
359 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
360 (remote-st.o, uw-thread.o): Delete.
361 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
362 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
363 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
364 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
365 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
366 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
367 rs6000-*-lynxos* to an obsoletion stanza.
368 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
369 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
370 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
371 i[34567]86-*-netware*.
372 * NEWS: Mention deleted targets.
373
374 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
375 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
376 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
377 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
378 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
379 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
380 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
381 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
382 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
383 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
384 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
385 config/rs6000/tm-rs6000ly.h: Delete files.
386
387 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
388
389 * defs.h (deprecated_registers_changed_hook): Delete declaration.
390 * interps.c (clear_interpreter_hooks): Do not clear
391 deprecated_registers_changed_hook.
392 * regcache.c (registers_changed): Do not call it.
393 * top.c (deprecated_registers_changed_hook): Do not define it.
394 * mi/mi-interp.c (mi_command_loop): Do not clear it.
395 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
396 (tui_remove_hooks): Do not remove it.
397 (tui_selected_frame_level_changed_hook): Check for negative level.
398 Use get_selected_frame.
399 (tui_registers_changed_hook): Deleted.
400
401 2007-03-29 Joel Brobecker <brobecker@adacore.com>
402
403 * stabsread.c (add_undefined_type): Add extra parameter.
404 Now handles nameless types separately.
405 (struct nat): New type.
406 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
407 New static variables.
408 (read_type): Update calls to add_undefined_type.
409 (add_undefined_type_noname): New function.
410 (add_undefined_type_1): Renames from add_undefined_type.
411 (cleanup_undefined_types_noname): New function.
412 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
413 (cleanup_undefined_types): New handles nameless types separately.
414 (_initialize_stabsread): Initialize our new static constants.
415
416 2007-03-29 Denis Pilat <denis.pilat@st.com>
417
418 * configure.ac: Test for signal.h.
419 * configure, config.in: Regenerate.
420
421 2007-03-29 Denis Pilat <denis.pilat@st.com>
422
423 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
424 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
425
426 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
427
428 * arm-wince-tdep.c: New.
429 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
430 (MT_CFLAGS): Delete.
431 (TM_CLIBS): Delete.
432 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
433 solib-legacy.o, solib-svr4.o, and remove wince.o.
434 * configure.tgt (arm*-*-mingw32ce*): Add.
435 * signals/signals.c [HAVE_SIGNAL_H]: Check.
436 (do_target_signal_to_host): Silence 'not used' warning.
437 * config/arm/tm-wince.h: Remove.
438
439 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
440
441 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
442 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
443
444 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
445 * config/ia64/tm-linux.h: Remove file.
446 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
447 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
448 legacy_pc_in_sigtramp.
449 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
450 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
451 Remove func_name argument.
452 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
453
454 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
455 * target.c (update_current_target): Add to_have_steppable_watchpoint.
456 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
457 (HAVE_STEPPABLE_WATCHPOINT): Define.
458
459 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
460 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
461 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
462 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
463 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
464 target_insert_watchpoint, target_remove_watchpoint): Remove.
465 (FETCH_INFERIOR_REGISTERS): Define.
466 * ia64-linux-nat.c (ia64_register_addr): Make static.
467 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
468 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
469 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
470 (ia64_linux_stopped_data_address): Make static. Add target_ops.
471 (ia64_linux_stopped_by_watchpoint): Make static.
472 (ia64_linux_can_use_hw_breakpoint): New function.
473 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
474 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
475 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
476
477 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
478
479 * linespec.c: Include language.h.
480 (find_methods): Add language parameter. Call
481 lookup_symbol_in_language. Pass language down.
482 (add_matching_methods): Likewise. Call
483 lookup_symbol_in_language.
484 (add_constructors): Likewise.
485 (find_method): Pass sym_class to collect_methods.
486 (collect_methods): Add sym_class parameter. Pass language
487 down.
488 * symtab.c (lookup_symbol): Rename to ...
489 (lookup_symbol_in_language): ... this. Add language
490 parameter. Use passed language instead of current_language.
491 (lookup_symbol): New as wrapper around
492 lookup_symbol_in_language.
493 (lookup_symbol_aux): Add language parameter. Use passed
494 language instead of current_language.
495 (search_symbols): Indent.
496 * symtab.h (enum language): Forward declare.
497 (lookup_symbol_in_language): Declare.
498 (lookup_symbol): Update description.
499 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
500 * ada-lang.c (restore_language): Remove.
501 (lookup_symbol_in_language): Remove.
502
503 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
504
505 * breakpoint.c (bpstat_num): Add int *num parameter.
506 * breakpoint.h (bpstat_num): Likewise.
507 * infcmd.c (continue_command): Adjust to new bpstat_num
508 interface.
509 (program_info): Likewise.
510
511 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
512
513 * config/sh/tm-sh.h: Remove file.
514 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
515 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
516 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
517 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
518
519 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
520
521 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
522 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
523 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
524 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
525 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
526 sequence if target_shortname is "remote".
527
528 2007-03-27 Anton Blanchard <anton@samba.org>
529
530 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
531 instead of wordsize when looking for the LR in a stack frame.
532
533 2007-03-27 Andreas Schwab <schwab@suse.de>
534 Daniel Jacobowitz <dan@codesourcery.com>
535
536 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
537 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
538 argument. Update all callers.
539 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
540 (dwarf2_frame_set_eh_frame_regnum): Rename to...
541 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
542 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
543 (dwarf2_frame_set_adjust_regnum): ...this.
544 (dwarf2_frame_eh_frame_regnum): Delete prototype.
545 * rs6000-tdep.c: Include "dwarf2-frame.h".
546 (rs6000_adjust_frame_regnum): Define.
547 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
548 Register rs6000_adjust_frame_regnum.
549
550 * Makefile.in (rs6000-tdep.o): Update dependencies.
551
552 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
553
554 * Makefile.in: Add support for a "pdf" target.
555
556 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
557
558 * amd64-tdep.c (amd64_init_frame_cache): New function.
559 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
560
561 2007-03-26 Nigel Stephens <nigel@mips.com>
562 Maciej W. Rozycki <macro@mips.com>
563
564 * ui-out.c (ui_out_field_core_addr): Truncate address to
565 TARGET_ADDR_BIT size before printing.
566
567 2007-03-22 Nigel Stephens <nigel@mips.com>
568 Maciej W. Rozycki <macro@mips.com>
569
570 * remote-mips.c (mips_xfer_memory): Update prototype.
571
572 2007-03-22 Joel Brobecker <brobecker@adacore.com>
573
574 * symfile.h: #include "symtab.h"
575
576 2007-03-22 Denis Pilat <denis.pilat@st.com>
577
578 * utils.c (pagination_on_command, pagination_off_command):
579 Remove useless prototypes.
580
581 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
582
583 Fix PR pascal/2232.
584 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
585 instead of TYPE_NAME for object base class name.
586
587
588 2007-03-19 Kevin Buettner <kevinb@redhat.com>
589
590 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
591 Specify frame type in calls to frame_func_unwind().
592
593 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
594
595 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
596 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
597 (refine_prologue_limit): Delete.
598 (skip_prologue): Don't call it. Use extract_unsigned_integer.
599 Assume lim_pc is set. Correct check for incomplete prologues.
600 Do not skip clobbers of the frame pointer.
601 * symtab.c (skip_prologue_using_sal): Fail if there is only one
602 sal.
603
604 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
605
606 * frame.c (frame_pop): Check to see whether there's a frame to
607 which we can pop first.
608
609 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
610
611 * MAINTAINERS (Write After Approval): Add myself.
612
613 2007-03-09 Markus Deuling <deuling@de.ibm.com>
614
615 * infrun.c (breakpoints_failed): Remove unnecessary variable.
616 (handle_inferior_event): Remove unnecessary braces.
617 * breakpoint.c (bpstat_what): Remove wrong comment.
618
619 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
620
621 * spu-tdep.c (spu_in_function_epilogue_p): New function.
622 (spu_gdbarch_init): Install it.
623
624 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
625
626 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
627 object types, not 0.
628
629 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
630
631 * spu-tdep.c (spu_frame_align): New function.
632 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
633
634 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
635
636 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
637 (spu_software_single_step): Likewise.
638 (spu_read_pc, spu_write_pc): New functions.
639 (spu_gdbarch_init): Install them.
640
641 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
642
643 * cli/cli-dump.c (struct callback_data): load_offset needs to
644 have signed long type.
645
646 2007-03-07 Joel Brobecker <brobecker@adacore.com>
647
648 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
649 Revert the previous change that had some unexpected side-effects
650 on mips32.
651 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
652 function to get the address of the calling instruction.
653
654 2007-03-07 Denis Pilat <denis.pilat@st.com>
655
656 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
657 get_selected_frame by deprecated_safe_get_selected_frame.
658
659 2007-03-02 Mark Kettenis <kettenis@gnu.org>
660
661 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
662 "gdb_string.h". Don't include "nbsd-tdep.h".
663 (SIZEOF_STRUCT_REG): Remove.
664 (SHNBSD_SIZEOF_GREGS): New.
665 (shnbsd_supply_gregset, shnbsd_collect_gregset)
666 (shnbsd_regset_from_core_section): New functions.
667 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
668 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
669 shnbsd_supply_gregset, shnbsd_collect_gregset.
670 (shnbsd_gregset): New variable.
671 (shnbsd_init_abi): Set regset_from_core_section.
672 (GDB_OSABI_NETBSD_CORE): New define.
673 (shnbsd_core_osabi_sniffer): New function.
674 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
675 * Makefile.in (shnbsd-tdep.o): Update dependencies.
676 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
677 nbsd-tdep.o.
678 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
679
680 2007-02-28 Joel Brobecker <brobecker@adacore.com>
681
682 * gdbtypes.c (replace_type): Fix typo that caused us to not update
683 length of the types referenced by the new type CV ring.
684
685 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
686
687 * frame.c (frame_pop, frame_observer_target_changed): Call
688 reinit_frame_cache.
689 (flush_cached_frames): Rename to reinit_frame_cache and delete
690 old implementation.
691 * frame.h (flush_cached_frames): Delete prototype and update comment.
692
693 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
694 reinit_frame_cache instead of flush_cached_frames. Do not call
695 select_frame after reinit_frame_cache.
696 * corelow.c (core_open): Likewise.
697 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
698 * infrun.c (prepare_to_proceed, context_switch)
699 (handle_inferior_event): Likewise.
700 * linux-fork.c (fork_load_infrun_state): Likewise.
701 * ocd.c (ocd_start_remote): Likewise.
702 * remote-e7000.c (e7000_start_remote): Likewise.
703 * remote-mips.c (device): Likewise.
704 * thread.c (switch_to_thread): Likewise.
705 * tracepoint.c (finish_tfind_command): Likewise.
706 * gdbarch.c: Regenerated.
707
708 2007-02-28 Jerome Guitton <guitton@adacore.com>
709 Joel Brobecker <brobecker@adacore.com>
710
711 * gdbtypes.c (check_typedef): Do not replace stub type if
712 the resolved type is not defined in the same objfile.
713
714 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
715
716 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
717
718 2007-02-28 Joel Brobecker <brobecker@adacore.com>
719
720 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
721 symbol for Ada units when the symbol is defined using 't' rather
722 than 'Tt' as symbol descriptor.
723
724 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
725
726 * config/mips/tm-nbsd.h: Delete file.
727 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
728 * config/sh/tm-nbsd.h: Delete file.
729 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
730
731 2007-02-28 Joel Brobecker <brobecker@adacore.com>
732
733 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
734 unused WRONG_PARAM value since it was recently deleted.
735
736 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
737
738 * varobj.c (varobj_update): Free temporary vectors.
739
740 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
741
742 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
743 * config/powerpc/tm-linux.h: Delete file.
744 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
745 (PROCESS_LINENUMBER_HOOK): Do not undefine.
746 (TEXT_SEGMENT_BASE): Do not redefine.
747 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
748 from config/rs6000/tm-rs6000.h.
749 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
750 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
751 (TEXT_SEGMENT_BASE): Remove.
752 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
753 (rs6000_in_solib_return_trampoline): Remove.
754 (SKIP_TRAMPOLINE_CODE): Remove.
755 (rs6000_skip_trampoline_code): Remove.
756 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
757 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
758 (FP0_REGNUM): Remove.
759 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
760 (rs6000_set_host_arch_hook): Remove.
761 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
762 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
763 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
764 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
765 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
766 * rs6000-nat.c: Include "rs6000-tdep.h".
767 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
768 (set_host_arch): Rename to ...
769 (rs6000_create_inferior): ... this. Make public.
770 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
771 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
772 (rs6000_create_inferior): Remove.
773 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
774 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
775 set_gdbarch_in_solib_return_trampoline, and
776 set_gdbarch_skip_trampoline_code.
777 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
778 from config/rs6000/tm-rs6000.h.
779
780 2007-02-27 Joel Brobecker <brobecker@adacore.com>
781
782 * buildsym.c (record_producer): Do nothing if no producer is provided.
783
784 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
785
786 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
787 to check changelist is non-NULL. Call error if the frontend tries
788 to update a non-root variable.
789
790 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
791
792 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
793
794 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
795 (dwarf2_frame_sniffer): Update.
796 (dwarf2_signal_frame_this_id): New function.
797 (dwarf2_signal_frame_unwind): Use it.
798 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
799 * frame.c (frame_func_unwind): Add this_type argument.
800 (get_frame_func): Update.
801 (frame_unwind_address_in_block): Add this_type argument and check it.
802 Fix a typo.
803 (get_frame_address_in_block): Update.
804 * frame.h (enum frame_type): Move higher in the file.
805 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
806 argument.
807
808 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
809 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
810 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
811 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
812 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
813 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
814 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
815 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
816 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
817 frame_func_unwind and frame_unwind_address_in_block to specify
818 the frame type. Use frame_unwind_address_in_block instead of
819 frame_pc_unwind in sniffers.
820
821 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
822
823 * frame.c (deprecated_selected_frame): Rename to...
824 (selected_frame): ...this. Make static.
825 (get_selected_frame, select_frame): Update.
826 * frame.h (deprected_select_frame): Delete.
827 (deprecated_safe_get_selected_frame): Update comments.
828
829 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
830 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
831 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
832 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
833 tui/tui.c: Replace references to deprecated_selected_frame.
834
835 2007-02-27 Fred Fish <fnf@specifix.com>
836
837 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
838 directly decrement the stack pointer, accumulate their operand into
839 the stack offset, and mark the function as not being frameless.
840
841 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
842
843 * arch-utils.c (selected_byte_order): New.
844 * arch-utils.h (selected_byte_order): New prototype.
845 * remote-sim.c (gdbsim_open): Use selected_byte_order.
846
847 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
848
849 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
850 (default_symfile_offsets): Check VMA here. Update section VMAs.
851
852 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
853
854 * remote.c (init_remote_state): Add special handling for placeholder
855 registers.
856
857 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
858
859 * Makefile.in (XMLFILES): Include $(TDEP_XML).
860 (filenames_h): New variable.
861 (clean): Clean up xml-builtin.c and stamp-xml.
862 (arm-linux-nat.o): Update.
863 * config/arm/linux.mh (TDEP_XML): Define.
864 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
865 (arm_linux_has_wmmx_registers): New.
866 (GET_THREAD_ID): Fix typo.
867 (IWMMXT_REGS_SIZE): Define.
868 (fetch_wmmx_regs, store_wmmx_regs): New.
869 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
870 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
871 (super_xfer_partial, arm_linux_xfer_partial): New.
872 (_initialize_arm_linux_nat): Use them.
873 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
874 (xml_builtin_xfer_partial): New function.
875 * xml-support.h (xml_builtin_xfer_partial): New prototype.
876 * NEWS: Update mention of iWMMXt support.
877
878 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
879
880 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
881 if there are no FPA registers.
882 (arm_dwarf_reg_to_regnum): New function.
883 (arm_register_type, arm_register_name): Return minimal values for
884 unsupported registers.
885 (arm_register_sim_regno): Handle iWMMXt registers.
886 (arm_gdbarch_init): Record missing FPA registers if indicated by
887 a target description. Recognize iWMMXt registers. Only register
888 "info float" for FPA. Use ARM_NUM_REGS. Register
889 arm_dwarf_reg_to_regnum.
890 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
891 constants.
892 (struct gdbarch_tdep): Add have_fpa_registers.
893 * features/xscale-iwmmxt.xml: Update capitalization.
894 * regformats/arm-with-iwmmxt.dat: Regenerated.
895
896 2007-02-24 Kevin Buettner <kevinb@redhat.com>
897
898 * NEWS (New targets): Add entry for the Toshiba Media Processor.
899
900 2007-02-23 Kevin Buettner <kevinb@redhat.com>
901
902 * MAINTAINERS (mep): New target.
903
904 2007-02-23 Kevin Buettner <kevinb@redhat.com>
905
906 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
907 Richard Sandiford:
908 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
909 (mep-tdep.o): New rule.
910 * configure.tgt (mep-*-*): New target.
911 * mep-tdep.c: New file.
912 * config/mep/mep.mt: New file.
913
914 2007-02-22 Markus Deuling <deuling@de.ibm.com>
915
916 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
917 BREAKPOINT_HIT and STOP_UNKNOWN.
918
919 2007-02-22 Markus Deuling <deuling@de.ibm.com>
920
921 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
922
923 2007-02-20 Joel Brobecker <brobecker@adacore.com>
924
925 * gdb_expat.h (XMLCALL): Define if not already defined.
926
927 2007-02-20 Andreas Schwab <schwab@suse.de>
928
929 * Makefile.in (symfile.o): Update dependencies.
930
931 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
932
933 * MAINTAINERS: Disable -Werror for cris simulator. Build
934 sparc64-solaris2.10 instead of the broken sparc-elf.
935 * solib-frv.c: Include "solib.h".
936 * Makefile.in (solib-frv.o): Update.
937 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
938 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
939 (xtensa_frame_this_id, xtensa_frame_prev_register)
940 (xtensa_push_dummy_call): Use %p.
941
942 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
943
944 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
945 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
946 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
947 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
948 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
949 (sparc-linux-tdep.o): Update.
950
951 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
952
953 * xtensa-tdep.h (xtensa_reg_mask_t): New.
954 (xtensa_mask_t): Change mask field to be a separate array.
955 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
956 (xtensa_pseudo_register_write, xtensa_unwind_pc)
957 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
958 (xtensa_breakpoint_from_pc): Remove implicit type casting.
959 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
960 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
961 (mask14, mask15): Rename to
962 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
963 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
964 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
965 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
966 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
967 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
968 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
969 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
970 (xtensa_submask14, xtensa_submask15): New.
971 (rmap): Follow strict aliasing rules doing static initialization.
972
973 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
974
975 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
976 handling from here...
977 (tdesc_register_type): ...to here.
978 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
979 * features/arm-core.xml: Use code_ptr and data_ptr.
980
981 2007-02-13 Denis Pilat <denis.pilat@st.com>
982
983 * varobj.h (enum varobj_update_error): New enum.
984 * varobj.c (struct varobj_root): Add is_valid member.
985 (varobj_get_type): Check for invalid varobj.
986 (varobj_get_attributes): Likewise.
987 (variable_editable):Likewise.
988 (varobj_update): Likewise. Use varobj_update_error.
989 (new_root_variable): Set root varobj as valid by default.
990 (varobj_invalidate): New function.
991 * symfile.c (clear_symtab_users): Use varobj_invalidate.
992 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
993 Use varobj_update_error.
994
995 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
996
997 Fix PR pascal/2223.
998 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
999 Pascal language marker.
1000 * dwarf2read.c (set_cu_language): Likewise.
1001
1002 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
1003
1004 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
1005 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
1006 instead of target_terminal_init since inferior_ptid isn't set yet.
1007
1008 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
1009
1010 * MAINTAINERS (Write After Approval): Add myself.
1011
1012 2007-02-09 Fred Fish <fnf@specifix.com>
1013
1014 Based on work by Apple Computer, Inc.
1015 * event-top.c (async_request_quit): Call quit() whenever either
1016 quit_flag is set or immediate_quit is set.
1017
1018 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
1019
1020 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
1021 type to a pointer to const struct block.
1022 (ada_lookup_symbol_list): Don't cast away constness when calling
1023 remove_out_of_scope_renamings.
1024
1025 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
1026
1027 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
1028 address of 'filename'; it is always non null.
1029
1030 2007-02-09 Joel Brobecker <brobecker@adacore.com>
1031
1032 * exec.c (add_to_section_table): Do not discard empty sections.
1033
1034 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1035
1036 * features/Makefile, features/arm-with-iwmmxt.xml,
1037 features/gdbserver-regs.xsl, features/number-regs.xsl,
1038 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
1039 * regformats/arm-with-iwmmxt.dat: Generate.
1040 * NEWS: Mention iWMMXt.
1041
1042 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1043
1044 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
1045 (xml-tdesc.o): Update.
1046 * xml-support.c: Add a comment.
1047 (gdb_xml_enums_boolean): New variable.
1048 (gdb_xml_parse_attr_enum): Use strcasecmp.
1049 * xml-support.h (gdb_xml_enums_boolean): Declare.
1050 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
1051 next_regnum, and current_union.
1052 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
1053 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
1054 (field_attributes, union_children, reg_attributes, union_attributes)
1055 (vector_attributes, feature_attributes, feature_children): New.
1056 (target_children): Make static. Add <feature>.
1057 (tdesc_elements): Make static.
1058 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
1059 (struct tdesc_feature, tdesc_feature_p): New types.
1060 (struct target_desc): Add features member.
1061 (struct tdesc_arch_data, tdesc_data): New.
1062 (target_find_description): Clarify error message. Warn about
1063 ignored register descriptions.
1064 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1065 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
1066 (tdesc_data_cleanup, tdesc_numbered_register)
1067 (tdesc_numbered_register_choices, tdesc_find_register)
1068 (tdesc_register_name, tdesc_register_type)
1069 (tdesc_remote_register_number, tdesc_register_reggroup_p)
1070 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
1071 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
1072 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
1073 (tdesc_create_feature, tdesc_record_type): New.
1074 (free_target_description): Free features.
1075 (_initialize_target_descriptions): Initialize tdesc_data.
1076 * arch-utils.c (default_remote_register_number): New.
1077 * arch-utils.h (default_remote_register_number): New prototype.
1078 * target-descriptions.h (set_tdesc_pseudo_register_name)
1079 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
1080 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
1081 (tdesc_numbered_register, tdesc_numbered_register_choices)
1082 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1083 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
1084 (tdesc_create_reg): Declare.
1085 * gdbarch.sh (remote_register_number): New entry.
1086 * gdbarch.c, gdbarch.h: Regenerate.
1087 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
1088 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
1089
1090 * arm-tdep.c (arm_register_aliases): New.
1091 (arm_register_name_strings): Rename to...
1092 (arm_register_names): ...this. Make const. Delete the old version.
1093 (current_option, arm_register_byte): Delete.
1094 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
1095 (value_of_arm_user_reg): New.
1096 (arm_gdbarch_init): Verify any described registers. Call
1097 tdesc_use_registers. Don't use arm_register_byte. Create aliases
1098 for standard register names.
1099 (_initialize_arm_tdep): Do not adjust arm_register_names.
1100 * user-regs.c (struct user_reg): Add baton member.
1101 (append_user_reg, user_reg_add_builtin, user_regs_init)
1102 (user_reg_add, value_of_user_reg): Use a baton for user
1103 register functions.
1104 * std-regs.c: Update.
1105 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
1106 (user_reg_add): Add baton argument.
1107 * NEWS: Mention target description register support.
1108 * features/arm-core.xml, features/arm-fpa.xml: New.
1109 * eval.c (evaluate_subexp_standard): Allow ptype $register
1110 when the program is not running.
1111
1112 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
1113
1114 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
1115
1116 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1117
1118 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
1119 info->disassembler_options to "any".
1120
1121 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1122
1123 * varobj.c (install_new_value): Only call value_get_print_value
1124 if changeable.
1125
1126 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1127
1128 Reported by timeless@gmail.com:
1129 * gdb/target.c (target_flash_erase): Do not return void value.
1130 (target_flash_done): Likewise.
1131 * gdb/cli/cli-cmds.c (source_command): Likewise.
1132
1133 2007-02-08 Fred Fish <fnf@specifix.com>
1134
1135 Based on work by Apple Computer, Inc.
1136 * event-top.c (handle_sigint): Set quit_flag.
1137 (async_request_quit): Don't set quit_flag. Avoid calling quit()
1138 if quit_flag has already been reset.
1139
1140 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1141
1142 * ser-mingw.c (pipe_windows_close): Move variable initialization back
1143 up.
1144
1145 2007-02-08 Fred Fish <fnf@specifix.com>
1146
1147 * defs.h (request_quit): Remove declaration.
1148 * utils.c (request_quit): Remove definition.
1149
1150 2007-02-08 Joel Brobecker <brobecker@gnat.com>
1151 Jan Kratochvil <jan.kratochvil@redhat.com>
1152 Daniel Jacobowitz <dan@codesourcery.com>
1153
1154 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
1155 (skip_prologue): Allow bl->blrl used by PIC code.
1156
1157 2007-02-08 Mark Kettenis <kettenis@gnu.org>
1158 Daniel Jacobowitz <dan@codesourcery.com>
1159
1160 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
1161 initialize tmp_obstack.
1162 * p-valprint.c (pascal_object_print_value_fields)
1163 (pascal_object_print_value): Likewise.
1164
1165 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1166
1167 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
1168
1169 2007-02-08 Mark Kettenis <kettenis@gnu.org>
1170
1171 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1172 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
1173
1174 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1175
1176 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
1177 (xml_cache): New.
1178 (tdesc_parse_xml): Cache expanded descriptions.
1179
1180 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1181
1182 * Makefile.in (XMLFILES): New.
1183 (COMMON_OBS): Add xml-builtin.o.
1184 (xml-builtin.c, stamp-xml): New rules.
1185 (xml-tdesc.o): Update.
1186 * features/feature_to_c.sh: New file.
1187 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
1188 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
1189 (gdb_xml_start_element): Initialize scope after possibly reallocating
1190 scopes. Move cleanup later. Handle the XInclude description
1191 specially.
1192 (gdb_xml_end_element): Only parse the body if there is a current element.
1193 Call XML_DefaultCurrent if there is no element.
1194 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
1195 (struct xinclude_parsing_data, xinclude_start_include)
1196 (xinclude_end_include, xml_xinclude_default)
1197 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
1198 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
1199 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
1200 * xml-support.h (xml_fetch_another, xml_process_xincludes)
1201 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
1202 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
1203 XInclude directives. Use the compiled in DTD.
1204 (fetch_xml_from_file): Add baton argument. Treat it as a containing
1205 directory name. Do not warn here.
1206 (file_read_description_xml): Update call. Warn here instead. Pass
1207 a dirname as baton.
1208 (fetch_available_features_from_target): New.
1209 (target_read_description_xml): Use it.
1210 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
1211 to handle XInclude.
1212 * features/xinclude.dtd: New file.
1213
1214 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1215
1216 * linux-thread-db.c (check_for_thread_db): Return early if we have
1217 no libthread_db support.
1218
1219 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1220
1221 * mi/mi-parse.h: Include <sys/time.h>.
1222
1223 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
1224
1225 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
1226 instead of print_variable_value to print values.
1227
1228 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
1229
1230 * mi/mi-main.c: Numerous formatting changes.
1231 (mi_cmd_data_write_register_values): Replace clause inadvertantly
1232 removed in my previous change.
1233
1234 2007-02-03 Eli Zaretskii <eliz@gnu.org>
1235
1236 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
1237 Use 1000000L instead of 1000000.
1238
1239 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
1240
1241 Based on work by Apple Computer, Inc.
1242
1243 * configure.ac: Test for sys/resource.h and getrusage.
1244 * configure, config.in: Regenerate.
1245
1246 * mi/mi-main.c: Include <sys/resource.h> if present.
1247 (rusage): Declare if HAVE_GETRUSAGE.
1248 (current_command_ts, do_timings): New static variables.
1249 (timestamp, print_diff_now, print_diff, timeval_diff):
1250 New static timing functions.
1251 (mi_cmd_enable_timings): New function for new MI command.
1252 (captured_mi_execute_command, mi_execute_async_cli_command):
1253 Call timing functions.
1254
1255 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
1256 -enable-timings.
1257
1258 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
1259
1260 * mi/mi-parse.h: (mi_timestamp): New structure.
1261 (mi_parse): Add mi_timestamp* member.
1262
1263 2007-02-02 Denis Pilat <denis.pilat@st.com>
1264
1265 * thread.c (make_cleanup_restore_current_thread): New function.
1266 (info_threads_command): Use of make_cleanup_restore_current_thread
1267 to restore the current thread and the selected frame.
1268 (restore_selected_frame): New function.
1269 (struct current_thread_cleanup): Add frame_id field.
1270 (do_restore_current_thread_cleanup): Add restoring of the selected
1271 frame.
1272 (make_cleanup_restore_current_thread): Likewise.
1273 (thread_apply_all_command): backup the selected frame while
1274 entering the function and restore it at exit.
1275 (thread_apply_command): Likewise.
1276
1277 2007-02-02 Denis Pilat <denis.pilat@st.com>
1278
1279 * MAINTAINERS (Write After Approval): Add myself to the list.
1280
1281 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1282
1283 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
1284 (m32r_store_register): Ditto.
1285
1286 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
1287
1288 * ser-mingw.c (pipe_windows_open)
1289 (pipe_windows_read, pipe_windows_write): Declare
1290 variables at the top of the function.
1291
1292 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1293
1294 * doublest.c (floatformat_from_length): Use the right element from
1295 gdbarch floatformats.
1296 (floatformat_from_type, extract_typed_floating)
1297 (store_typed_floating): Likewise.
1298 * doublest.h: Remove declarations for undefined floatformat arrays.
1299 * gdbarch.sh (float_format, double_format, long_double_format): Change
1300 to pairs.
1301 (pformat): Update for pairs.
1302 * gdbarch.c, gdbarch.h: Regenerated.
1303 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
1304 (floatformats_ieee_double_littlebyte_bigword)
1305 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
1306 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
1307 (floatformats_vax_d): New variables.
1308 (builtin_type_ieee_single, builtin_type_ieee_double)
1309 (builtin_type_arm_ext, builtin_type_ia64_spill)
1310 (builtin_type_ia64_quad): Replace arrays with individual types.
1311 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
1312 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
1313 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
1314 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
1315 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
1316 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1317 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
1318 unused and endian-specific types.
1319 (recursive_dump_type): Update for floatformat pairs.
1320 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
1321 (build_gdbtypes): Use build_flt.
1322 (_initialize_gdbtypes): Update set of initialized types.
1323 * gdbtypes.h: Update declarations to match gdbtypes.c.
1324 (struct main_type): Store a pointer to two floatformats.
1325 * arch-utils.c (default_float_format, default_double_format): Delete.
1326 * arch-utils.h (default_float_format, default_double_format): Delete.
1327
1328 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1329 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
1330 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
1331 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
1332 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
1333
1334 2007-01-29 Joel Brobecker <brobecker@adacore.com>
1335
1336 * target.c (maintenance_print_target_stack): New function.
1337 (initialize_targets): Add new "maintenance print target-stack"
1338 command.
1339
1340 2007-01-28 Mark Kettenis <kettenis@gnu.org>
1341
1342 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
1343
1344 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
1345
1346 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
1347 (struct dwarf2_loclist_baton): Likewise.
1348
1349 2007-01-27 Eli Zaretskii <eliz@gnu.org>
1350
1351 * cli/cli-script.c: Include breakpoint.h.
1352 (build_command_line): Require arguments only for if and while
1353 commands.
1354 (get_command_line, execute_user_command, execute_control_command):
1355 Fix wording of warning messages.
1356 (print_command_lines): Print breakpoint commands.
1357 (execute_control_command): Call commands_from_control_command to
1358 handle the `commands' command inside a body of a flow-control
1359 command.
1360 (read_next_line): Recognize the `commands' command and build a
1361 command line structure for it.
1362 (recurse_read_control_structure, read_command_lines): Handle
1363 `commands' similarly to `if' and `while'.
1364
1365 * breakpoint.c (get_number_trailer): Document the special meaning
1366 of NULL as the first argument PP.
1367 (commands_from_control_command): New function.
1368
1369 * breakpoint.h (commands_from_control_command): Add prototype.
1370
1371 * defs.h (commands_control): New enumerated value for enum
1372 command_control_type.
1373
1374 2007-01-26 Joel Brobecker <brobecker@adacore.com>
1375
1376 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
1377 (ada_exception_sal): Update accordingly.
1378
1379 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1380
1381 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
1382 * NEWS: Describe CHAR array vs. string identifcation rules.
1383
1384 2007-01-25 Paul Brook <paul@codesourcery.com>
1385
1386 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
1387
1388 2007-01-24 Jim Blandy <jimb@codesourcery.com>
1389
1390 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
1391 expression is empty, bother to return the 'optimized out' value we
1392 construct. (Thanks to Carl Burch.)
1393
1394 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1395
1396 * varobj.c (c_value_of_root, c_value_of_child)
1397 (cplus_describe_child): Don't call release_value.
1398
1399 2007-01-24 Thiemo Seufer <ths@mips.com>
1400
1401 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
1402 initialization.
1403
1404 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1405
1406 Refactor getting children name, value and type access
1407 for varobjs in C++.
1408 * varobj.c (get_type_deref): Remove.
1409 (adjust_value_for_child_access): New.
1410 (c_number_of_children): Use the above.
1411 (c_describe_child): Likewise.
1412 (enum accessibility): New.
1413 (match_accessibility): New function.
1414 (cplus_describe_child): New function.
1415 (cplus_name_of_child, cplus_value_of_child)
1416 (cplus_type_of_child): Reimplement in terms
1417 of cplus_describe_child.
1418 (cplus_number_of_children): Use
1419 adjust_value_for_child_access.
1420
1421 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1422
1423 Fix computation of the 'editable' attribute and
1424 value changeability for for references.
1425 * varobj.c (get_value_type): New function.
1426 (c_variable_editable): Use get_value_type.
1427 (varobj_value_is_changeable): Likewise.
1428
1429 2007-01-24 Joel Brobecker <brobecker@adacore.com>
1430
1431 * source.c (find_and_open_source): Try rewriting the source
1432 path inside filename if dirname is NULL.
1433
1434 2007-01-24 Joel Brobecker <brobecker@adacore.com>
1435
1436 * dwarf2read.c (add_partial_symbol): Create an extra partial
1437 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
1438 (new_symbol): Likewise for symbols.
1439
1440 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
1441
1442 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
1443
1444 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
1445
1446 * value.c (value_primitive_field): Copy the full 'location'
1447 contents, instead of assuming that copying ADDRESS will
1448 bring over everything in the union. Remove obsolete comment.
1449
1450 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
1451
1452 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
1453 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
1454 (m32c_m16c_pointer_to_address): Separate code from declarations.
1455
1456 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
1457
1458 * target.c (update_current_target): Correct typo.
1459
1460 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
1461
1462 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
1463 declaration.
1464
1465 2007-01-11 Andrew Cagney <cagney@redhat.com>
1466 Daniel Jacobowitz <dan@codesourcery.com>
1467 Jan Kratochvil <jan.kratochvil@redhat.com>
1468
1469 * dwarf2-frame.c (execute_cfa_program): New support of
1470 `DW_CFA_GNU_negative_offset_extended'.
1471
1472 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1473
1474 * NEWS: Mention flash support for "load" and new remote packets.
1475
1476 2007-01-21 Markus Deuling <deuling@de.ibm.com>
1477
1478 * breakpoint.c (delete_command): Skip redundant loop iterations.
1479
1480 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1481
1482 * gdbarch.sh (register_type): Update comment.
1483 * gdbarch.h: Regenerated.
1484 * arch-utils.c (generic_register_size): Call register_type.
1485 * ia64-tdep.c (ia64_extract_return_value): Likewise.
1486 * m32c-tdep.c (check_for_saved): Likewise.
1487 * mips-tdep.c (mips_print_register, print_gp_register_row)
1488 (mips_print_registers_info): Likewise.
1489 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
1490 Likewise.
1491 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
1492 (sh64_do_register, sh64_print_register)
1493 (sh64_media_print_registers_info): Likewise.
1494 * tui/tui-regs.c (tui_register_format): Likewise.
1495
1496 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1497
1498 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
1499
1500 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
1501 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
1502 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
1503 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1504 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
1505 (make_symbol_completion_list): Likewise.
1506
1507 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1508 Daniel Jacobowitz <dan@codesourcery.com>
1509
1510 * buildsym.c (end_symtab): Use preallocated symtab if available.
1511 Fill in SYMBOL_SYMTAB.
1512 * buildsym.h (struct subfile): Add symtab member.
1513 * dwarf2read.c (struct dwarf2_cu): Add line_header.
1514 (struct file_entry): Add symtab.
1515 (free_cu_line_header): New function.
1516 (read_file_scope): Use it. Save line_header in the cu. Process
1517 lines before DIEs.
1518 (add_file_name): Initialize new symtab member.
1519 (dwarf_decode_lines): Create symtabs for included files.
1520 (new_symbol): Set SYMBOL_SYMTAB.
1521 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
1522 (search_symbols): Likewise.
1523 * symtab.h (struct symbol): Add symtab member.
1524 (SYMBOL_SYMTAB): Define.
1525
1526 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1527
1528 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
1529
1530 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1531
1532 * arch-utils.c (show_endian): Correct reversed condition.
1533
1534 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1535
1536 * MAINTAINERS (Write After Approval): Add myself.
1537
1538 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
1539 Vladimir Prus <vladimir@codesourcery.com>
1540
1541 Fix 'selected frame' varobjs.
1542 * varobj.c (struct varobj): Remove the error field.
1543 (varobj_set_value): Don't check var->error.
1544 (install_new_value): Don't set var->error.
1545 (varobj_update): Always pass the new value
1546 of the root via install_new_value.
1547 (create_child): Don't set error field.
1548 (new_variable): Likewise.
1549 (c_value_of_root): Always reevaluate the value
1550 of selected frame varobjs in the selected frame.
1551 Don't call reinit_frame_cache.
1552
1553 2007-01-15 Joel Brobecker <brobecker@adacore.com>
1554
1555 * source.c (_initialize_source): Improve the help text of
1556 the substitute-path commands.
1557
1558 2007-01-14 Mark Kettenis <kettenis@gnu.org>
1559
1560 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
1561 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
1562 (frv_skip_prologue): Remove prototypes.
1563 (frv_adjust_breakpoint_address): Renamed from
1564 frv_gdbarch_adjust_breakpoint_address.
1565 (frv_gdbarch_init): Adjust.
1566
1567 2007-01-13 Mark Kettenis <kettenis@gnu.org>
1568
1569 * gdbarch.sh (deprecated_extract_return_value)
1570 (deprecated_store_return_value): Remove.
1571 (extract_return_value, store_return_value): Remove default values.
1572 * gdbarch.c, gdbarch.h: Regenerate.
1573 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
1574 (legacy_store_return_value): Remove.
1575 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
1576 Remove.
1577
1578 * mi/mi-main.c: Remove obsolete comment.
1579
1580 * regcache.c, regcache.h (deprecated_register_bytes)
1581 (deprecated_read_register_bytes)
1582 (deprecated_write_register_bytes): Remove.
1583
1584 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
1585 Don't forget to move destination pointer.
1586
1587 2007-01-01 Mark Kettenis <kettenis@gnu.org>
1588
1589 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
1590
1591 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
1592
1593 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
1594 past entry function with recent newlib.
1595
1596 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
1597
1598 * gdb.texinfo (GDB/MI Variable Objects): Improve the
1599 introduction. Specify -var-update more exactly.
1600
1601 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
1602
1603 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
1604
1605 2007-01-10 Jim Blandy <jimb@codesourcery.com>
1606
1607 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
1608 the Global Maintainers' invitation to be a global maintainer.
1609
1610 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
1611
1612 * infrun.c (singlestep_pc): New variable.
1613 (resume): Set singlestep_pc.
1614 (context_switch): Add a debugging message. Flush the frame cache.
1615 (handle_inferior_event): Add debugging messages. Handle thread
1616 hops when a software single step has completed. Let context_switch
1617 handle flushing the frame cache.
1618
1619 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1620
1621 * NEWS: Mention target descriptions, "set tdesc filename",
1622 "unset tdesc filename", "show tdesc filename", and
1623 qXfer:features:read.
1624 * arch-utils.c (choose_architecture_for_target): New function.
1625 (gdbarch_info_fill): Call it.
1626 * target-descriptions.c (struct property): Make members non-const.
1627 (struct target_desc): Add arch member.
1628 (target_description_filename): New variable.
1629 (target_find_description): Try via XML first.
1630 (tdesc_architecture): New.
1631 (free_target_description, make_cleanup_free_target_description): New.
1632 (set_tdesc_property): Call xstrdup.
1633 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
1634 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
1635 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
1636 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
1637 * target-descriptions.h (tdesc_architecture)
1638 (make_cleanup_free_target_description, set_tdesc_architecture): New
1639 prototypes.
1640 * Makefile.in (SFILES): Add xml-tdesc.c.
1641 (COMMON_OBS): Add xml-tdesc.o.
1642 (target-descriptions.o): Update.
1643 (xml-tdesc.o): New rule.
1644 * xml-tdesc.c, xml-tdesc.h: New files.
1645 * remote.c (PACKET_qXfer_features): New enum.
1646 (remote_protocol_features): Add qXfer:features:read.
1647 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
1648 (_initialize_remote): Register qXfer:features:read.
1649 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
1650 * features/gdb-target.dtd: New file.
1651
1652 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1653
1654 * copyright.sh: Clarify error.
1655
1656 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1657
1658 * symtab.c (matching_bfd_sections): Fix VMA matching for
1659 prelinked objects.
1660
1661 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1662
1663 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
1664 nested symbols.
1665
1666 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1667
1668 Updated copyright notices for most files.
1669
1670 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1671
1672 * copyright.sh (prunes): Add step-line.inp and step-line.c.
1673
1674 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1675
1676 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
1677 exec_prefix.
1678 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
1679 '${prefix}'.
1680 * configure, config.in: Regenerate.
1681 * defs.h (debug_file_directory): Declare.
1682 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
1683 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
1684 relocate it if DEBUGDIR_RELOCATABLE.
1685 * symfile.c (debug_file_directory): Make non-static.
1686 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
1687 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
1688 (_initialize_symfile): Don't initialize debug_file_directory here.
1689
1690 2007-01-09 Jim Blandy <jimb@codesourcery.com>
1691
1692 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
1693 statements.
1694
1695 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1696
1697 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
1698 frame_unwind_register to recurse.
1699 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
1700 (alpha_heuristic_frame_prev_register): Likewise.
1701 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
1702 * m32c-tdep.c (m32c_prev_register): Likewise.
1703 * frame.c (frame_register_unwind_location): Remove FIXME.
1704
1705 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1706 Eli Zaretskii <eliz@gnu.org>
1707
1708 * copyright.sh: New file.
1709
1710 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1711
1712 * configure.ac: Check for XML_StopParser.
1713 * xml-support.c (gdb_xml_body_text): Check for an error.
1714 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
1715 (gdb_xml_end_element_wrapper): Likewise.
1716 * config.in, configure: Regenerated.
1717
1718 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1719
1720 * varobj.c (install_new_value): Always update print_value.
1721 (value_get_print_value): Immediately return NULL for missing
1722 values.
1723
1724 2007-01-08 Jim Blandy <jimb@codesourcery.com>
1725
1726 * configure.ac: Tighten pattern for extracting value of
1727 DEPRECATED_TM_FILE from the target makefile fragment.
1728 * configure: Regenerated.
1729
1730 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1731
1732 * linux-nat.c (struct simple_pid_list): Add status.
1733 (add_to_pid_list): Record the PID's status.
1734 (linux_record_stopped_pid): Likewise. Make static.
1735 (pull_pid_from_list): Return the saved status.
1736 (linux_nat_handle_extended): Deleted.
1737 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
1738 Make static. Handle non-SIGSTOP for a new thread's first signal.
1739 (flush_callback): Handle unexpected pending signals.
1740 (linux_nat_wait): Update calls to changed functions.
1741 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
1742 Remove prototypes for newly static functions.
1743
1744 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
1745
1746 * gdbarch.sh (value_from_register): New gdbarch function.
1747 * gdbarch.c, gdbarch.h: Regenerate.
1748 * findvar.c (default_value_from_register): New function.
1749 (value_from_register): Use gdbarch_value_from_register.
1750 * value.h (default_value_from_register): Declare.
1751 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
1752 spu_value_to_register): Remove.
1753 (spu_value_from_register): New function.
1754 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1755 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1756 Call set_gdbarch_value_from_register.
1757 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
1758 s390_value_to_register): Remove.
1759 (s390_value_from_register): New function.
1760 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1761 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1762 Call set_gdbarch_value_from_register.
1763
1764 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1765
1766 * NEWS: Add "set sysroot" and "show sysroot".
1767 * solib.c (solib_absolute_prefix): Delete. Replace
1768 all uses with gdb_sysroot.
1769 (_initialize_solib): Add "set sysroot" and "show sysroot".
1770 Make "solib-absolute-prefix" an alias to it.
1771
1772 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
1773
1774 * frame.c (get_frame_register_bytes): New function.
1775 (put_frame_register_bytes): Likewise.
1776 * frame.h (get_frame_register_bytes): Declare.
1777 (put_frame_register_bytes): Likewise.
1778 * findvar.c (value_from_register): Always construct lval_register
1779 values. Use get_frame_register_bytes.
1780 * valops.c (value_assign): Use get_frame_register_bytes and
1781 put_frame_register_bytes.
1782
1783 2007-01-08 Jim Blandy <jimb@codesourcery.com>
1784
1785 * MAINTAINERS: Update Stan Shebs' email address.
1786
1787 2007-01-07 Joel Brobecker <brobecker@adacore.com>
1788
1789 * ada-lang.c (is_known_support_routine): Improve the implementation.
1790
1791 2007-01-06 Joel Brobecker <brobecker@adacore.com>
1792
1793 * ada-lang.c: Add include of source.h.
1794 (is_known_support_routine): Improve the check verifying that the file
1795 associated to this frame exists.
1796 * Makefile.in (ada-lang.o): Add dependency on source.h.
1797
1798 2007-01-07 Jim Blandy <jimb@codesourcery.com>
1799
1800 * ax-general.c (ax_const_l): Select proper opcode for the given
1801 value.
1802
1803 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
1804
1805 * varobj.c (c_value_of_root): Don't select frame if variable
1806 object is out of scope.
1807
1808 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
1809
1810 * varobj.c (struct varobj): New member print_value.
1811 (install_new_value): Compare last printed value with current one
1812 instead of contents.
1813 (new_variable): Initialize var->print_value to NULL.
1814 (free_variable): Free var->print_value.
1815 (value_get_print_value): New function derived from
1816 c_value_of_variable.
1817 (c_value_of_variable): Use value_get_print_value.
1818
1819 2007-01-05 Joel Brobecker <brobecker@adacore.com>
1820
1821 * i386-tdep.c (i386_analyze_stack_align): Add comment.
1822
1823 2007-01-05 Joel Brobecker <brobecker@adacore.com>
1824
1825 * NEWS: Add entries for new catch commands.
1826
1827 2007-01-05 Joel Brobecker <brobecker@adacore.com>
1828
1829 * dwarf2read.c (partial_die_info): Add field has_byte_size.
1830 (add_partial_symbol): Correct identification of external references.
1831 (process_structure_scope): Likewise.
1832 (read_partial_die): Handle DW_AT_byte_size attribute.
1833
1834 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
1835
1836 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
1837
1838 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
1839
1840 * varobj.c (get_type_deref): Fix variable objects for references to
1841 pointers.
1842
1843 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1844
1845 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
1846 with no symbols.
1847
1848 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1849
1850 * memory-map.c (struct_memory_map_parsing_data): Remove most
1851 members. Make property_name an array.
1852 (free_memory_map_parsing_data, memory_map_start_element)
1853 (memory_map_end_element, memory_map_character_data): Delete.
1854 (memory_map_start_memory, memory_map_end_memory)
1855 (memory_map_start_property, memory_map_end_property): New functions.
1856 (property_attributes, memory_children, memory_type_enum)
1857 (memory_attributes, memory_map_children, memory_map_elements): New.
1858 (parse_memory_map): Rewrite.
1859 * xml-support.c (debug_xml): New.
1860 (xml_get_required_attribute, xml_get_integer_attribute)
1861 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
1862 Delete.
1863 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
1864 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
1865 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
1866 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
1867 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
1868 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
1869 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
1870 New.
1871 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
1872 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
1873 (enum gdb_xml_element_flag, struct gdb_xml_element)
1874 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
1875 (struct gdb_xml_enum): New.
1876 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
1877 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
1878 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
1879 (xml_get_required_attribute, xml_get_integer_attribute)
1880 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
1881 * Makefile.in (xml_support_h, xml-support.o): Update.
1882
1883 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1884
1885 * Makefile.in (eval.o): Update dependencies.
1886 * eval.c: Include "ui-out.h" and "exceptions.h".
1887 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
1888 Use value_zero if an error occurs when avoiding side effects.
1889 * varobj.c (c_value_of_root): Initialize new_val.
1890
1891 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1892
1893 * varobj.c (varobj_list_children): Stop if the number of children is
1894 unknown.
1895 (c_number_of_children):
1896
1897 2007-01-04 Mark Kettenis <kettenis@gnu.org>
1898
1899 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
1900 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
1901 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
1902 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
1903 sizeof, instead of hardcoded constants.
1904
1905 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1906
1907 * CONTRIBUTE: Use sourceware.org.
1908
1909 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1910
1911 * buildsym.c (start_subfile): Handle producer.
1912 (record_producer): New function.
1913 * buildsym.h (struct subfile): Include producer.
1914 (record_producer): New prototype.
1915 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
1916 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
1917 armcc_cfa_offsets_reversed.
1918 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
1919 (dwarf2_frame_find_quirks): New function.
1920 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
1921 (decode_frame_entry_1): Record the CIE version. Record the
1922 augmentation. Skip armcc augmentations.
1923 * dwarf2read.c (read_file_scope): Save the producer.
1924 * symtab.h (struct symtab): Rename unused version member to
1925 producer.
1926
1927 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1928
1929 * configure.ac (build_warnings): Use -Wall and
1930 -Wdeclaration-after-statement.
1931 * configure: Regenerated.
1932
1933 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1934
1935 Simplify access to variours properties of child
1936 variable objects in C.
1937 * varobj.c (value_struct_element_index): New function.
1938 (c_describe_child): New function.
1939 (c_name_of_child, c_value_of_child)
1940 (c_type_of_child): Rewrite to use c_describe_child.
1941
1942 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1943
1944 gdb/
1945 * varobj.c: Include "vec.h".
1946 (varobj_p): New typedef, declare vector of those.
1947 (struct varobj): Use vector for the 'children' member.
1948 (child_exists): Remove.
1949 (save_child_in_parent): Remove.
1950 (remove_child_from_parent): Remove.
1951 (struct varobj_child): Remove.
1952 (struct vstack): Remove.
1953 (vpush, vpop): Remove.
1954 (varobj_list_children): Adjust to work work vector.
1955 (varobj_update): Likewise. Use vectors for
1956 working stack and result.
1957 (delete_variable_1): Likewise.
1958 * Makefile.in (varobj.o): Update dependencies.
1959
1960 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1961
1962 Port from Apple's version.
1963 gdb/
1964 * varobj.c (type_changeable): Rename to...
1965 (varobj_value_is_changeable_p): ...this. Adjust all callers.
1966 (is_root_p): New function. Use it everywhere.
1967
1968 2007-01-04 Jim Blandy <jimb@codesourcery.com>
1969
1970 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
1971 then plain 'fixup'.
1972
1973 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1974
1975 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
1976
1977 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1978
1979 * hpread.c (hpread_type_lookup): Fix compilation failure.
1980
1981 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
1982
1983 * NEWS: New port to S+core.
1984 * MAINTAINERS (Write After Approval, Responsible Maintainers):
1985 Add myself.
1986
1987 * Makefile.in: Add dependencies for S+core files.
1988 * configure.tgt (score*, score-*-*): Add S+core target.
1989 * config/score/embed.mt: New file.
1990 * score-tdep.c: New file.
1991 * score-tdep.h: New file.
1992
1993 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1994
1995 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
1996 the appropriate type rather than a bogus void type.
1997
1998 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1999
2000 * ada-lang.h (ada_find_printable_frame): Remove.
2001 (ada_exception_catchpoint_p, ada_decode_exception_location)
2002 (ada_decode_assert_location): Add declaration.
2003 * ada-lang.c: Add include of annotate.h and valprint.h.
2004 (exception_catchpoint_kind): New enum.
2005 (function_name_from_pc, is_known_support_routine)
2006 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
2007 (ada_exception_name_addr_1, ada_exception_name_addr)
2008 (print_it_exception, print_one_exception, print_mention_exception)
2009 (print_it_catch_exception, print_one_catch_exception)
2010 (print_mention_catch_exception, catch_exception_breakpoint_ops)
2011 (print_it_catch_exception_unhandled)
2012 (print_one_catch_exception_unhandled)
2013 (print_mention_catch_exception_unhandled, print_it_catch_assert)
2014 (print_one_catch_assert, print_mention_catch_assert)
2015 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
2016 (ada_get_next_arg, catch_ada_exception_command_split)
2017 (ada_exception_sym_name, ada_exception_sym_name)
2018 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
2019 (ada_parse_catchpoint_condition, ada_exception_sal)
2020 (ada_decode_exception_location)
2021 (ada_decode_assert_location): New function.
2022 (catch_exception_unhandled_breakpoint_ops): New global variable.
2023 (catch_assert_breakpoint_ops): New global variable.
2024 * breakpoint.c: Add include of ada-lang.h.
2025 (print_one_breakpoint): Do not print the condition for Ada
2026 exception catchpoints.
2027 (create_ada_exception_breakpoint): New function.
2028 (catch_ada_exception_command, catch_assert_command): New function.
2029 (catch_command_1): Add support for the new "catch exception" and
2030 "catch assert" commands.
2031 (_initialize_breakpoint): Add help description for the new catch
2032 commands.
2033 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
2034 valprint.h.
2035 (breakpoint.o): Add dependency on ada-lang.h.
2036
2037 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
2038
2039 * coffread.c (cs_to_section): If bfd_section is found, always
2040 return its section index.
2041 (coff_symtab_read): Determine the minimal_symbol_type using the
2042 bfd_section flags.
2043
2044 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2045 Daniel Jacobowitz <dan@codesourcery.com>
2046
2047 * Makefile.in (top.o): Update.
2048 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
2049 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
2050 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
2051 New.
2052 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
2053
2054 2007-01-03 Mark Kettenis <kettenis@gnu.org>
2055
2056 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
2057 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
2058
2059 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
2060
2061 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
2062 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
2063 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
2064 greater than or equal to zero.
2065 * m2-typeprint.c (m2_array): Likewise.
2066 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2067 * gdbtypes.c (copy_type_recursive): Correct == typo.
2068 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
2069 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
2070 greater than zero.
2071 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
2072 (default_macro_scope): Remove unused variable.
2073 * prologue-value.h (pv_area_find_reg): Don't name an argument
2074 "register".
2075 * remote-fileio.c (remote_fio_func_map): Add missing braces.
2076 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
2077 type.
2078 (cleanup_sigint_signal_handler): Remove casts.
2079 * valprint.c (val_print): Use a volatile local for the modified
2080 argument.
2081 * varobj.c (languages): Remove extra array dimension.
2082 (varobj_create): Correct access to languages array.
2083 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
2084 missing braces.
2085 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2086 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
2087 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
2088 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2089 (mi_cmd_data_write_memory): Likewise.
2090 * signals/signals.c (target_signal_to_string): Cast to int before
2091 comparing.
2092 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
2093 Update all callers.
2094
2095 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
2096
2097 * NEWS: Mention pointer to member improvements.
2098 * Makefile.in (gnu-v3-abi.o): Delete special rule.
2099 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
2100 * ada-valprint.c (ada_print_scalar): Update for new type codes.
2101 * c-typeprint.c (c_print_type): Update for new type codes.
2102 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
2103 (c_type_print_base): Likewise.
2104 (c_type_print_args): Rewrite.
2105 * c-valprint.c (c_val_print): Update for new type codes. Remove
2106 support for references to members. Treat methods like functions.
2107 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
2108 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
2109 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
2110 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
2111 (struct cp_abi_ops): Add corresponding members.
2112 * cp-valprint.c (cp_print_class_method): Delete.
2113 (cp_find_class_member): New function.
2114 (cp_print_class_member): Use it. Simplify support for bogus
2115 member pointers.
2116 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
2117 lookup_methodptr_type.
2118 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
2119 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
2120 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
2121 pointer support.
2122 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
2123 references returned by user defined operators.
2124 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
2125 (f_type_print_varspec_suffix): Remove support for member pointers.
2126 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
2127 and adjusted.
2128 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
2129 (lookup_methodptr_type): New.
2130 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
2131 (recursive_dump_type): Update for new types.
2132 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
2133 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
2134 (lookup_memberptr_type, lookup_methodptr_type)
2135 (smash_to_memberptr_type): New prototypes.
2136 (smash_to_method_type): Formatting fix.
2137 (lookup_member_type, smash_to_member_type): Delete prototypes.
2138 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
2139 Do not rely on debug information for the vptr or the method's
2140 enclosing type. Handle function descriptors for IA64.
2141 (gnuv3_virtual_fn_field): Rewrite using the new functions.
2142 (gnuv3_find_method_in, gnuv3_print_method_ptr)
2143 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
2144 (gnuv3_method_ptr_to_value): New.
2145 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
2146 * hpread.c (hpread_type_lookup): Update for new types.
2147 * infcall.c (value_arg_coerce): Likewise.
2148 * m2-typeprint.c (m2_print_type): Remove explicit support
2149 for member pointers.
2150 * m2-valprint.c (m2_val_print): Likewise.
2151 * p-typeprint.c (pascal_type_print_varspec_prefix)
2152 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
2153 * p-valprint.c (pascal_val_print): Likewise.
2154 (pascal_object_print_class_method, pascal_object_print_class_member):
2155 Delete.
2156 * p-lang.h (pascal_object_print_class_method)
2157 (pascal_object_print_class_member): Delete prototypes.
2158 * stabsread.c (read_type): Update for new types.
2159 * typeprint.c (print_type_scalar): Likewise.
2160 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
2161 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
2162 argument. Construct a pointer to member if the address of a
2163 function or data member is requested.
2164 (value_cast_pointers): Don't modify the input value.
2165 (value_cast): Adjust pointer to member handling for new types.
2166 Allow null pointer to member constants. Don't modify the input
2167 value.
2168 (value_ind): Remove pointer to member check. Handle function
2169 descriptors for function pointers.
2170 (value_struct_elt, value_find_oload_method_list, check_field):
2171 Remove pointer to member checks.
2172 * value.c (unpack_long): Allow pointers to data members.
2173 (value_from_longest): Allow member pointers.
2174 * value.h (value_aggregate_elt): Add want_address.
2175 * varobj.c (c_variable_editable): Remove check for members.
2176 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
2177 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
2178 in virtual tables.
2179 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
2180 * c-lang.h (cp_print_class_method): Delete prototype.
2181 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
2182 * mips-tdep.c (mips_gdbarch_init): Likewise.
2183 * gdbarch.c, gdbarch.h: Regenerated.
2184
2185 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2186
2187 * rs6000-tdep.c (rs6000_use_struct_convention)
2188 (rs6000_extract_return_value, rs6000_store_return_value)
2189 (rs6000_extract_struct_value_address): Remove.
2190 (rs6000_return_value): New function.
2191 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
2192 store_return_value, deprecated_extract_struct_value_address and
2193 deprecated_use_struct_convention. Use rs6000_return_value
2194 instead.
2195
2196 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
2197
2198 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
2199 -display-disable, -display-enable, -display-insert and
2200 -display-list.
2201
2202 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2203
2204 * breakpoint.c (remove_breakpoint): Remove dead code.
2205
2206 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
2207
2208 * varobj.c: Include block.h.
2209 (c_value_of_root): Check scope within nested statements.
2210
2211 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2212
2213 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
2214 regcache_cooked_write_signed instead of
2215 deprecated_write_register_bytes.
2216
2217 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2218
2219 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
2220
2221 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2222
2223 Followed the Start of New Year Procedure:
2224 * ChangeLog-2006: New file, containing all the entries for 2006.
2225 * ChangeLog: Removed all 2006 entries, and changed the reference
2226 to the previous ChangeLog to point to ChangeLog 2006.
2227 * top.c (print_gdb_version): Update copyright year.
2228
2229 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2230
2231 * Makefile.in (remote-sds.o): Remove.
2232 * remote-sds.c: Delete.
2233
2234 For older changes see ChangeLog-2006.
2235 \f
2236 Local Variables:
2237 mode: change-log
2238 left-margin: 8
2239 fill-column: 74
2240 version-control: never
2241 End:
This page took 0.104986 seconds and 5 git commands to generate.