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