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