1 2007-02-28 Nick Roberts <nickrob@snap.net.nz>
3 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
4 to check changelist is non-NULL. Call error if the frontend tries
5 to update a non-root variable.
7 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
9 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
11 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
12 (dwarf2_frame_sniffer): Update.
13 (dwarf2_signal_frame_this_id): New function.
14 (dwarf2_signal_frame_unwind): Use it.
15 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
16 * frame.c (frame_func_unwind): Add this_type argument.
17 (get_frame_func): Update.
18 (frame_unwind_address_in_block): Add this_type argument and check it.
20 (get_frame_address_in_block): Update.
21 * frame.h (enum frame_type): Move higher in the file.
22 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
25 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
26 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
27 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
28 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
29 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
30 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
31 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
32 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
33 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
34 frame_func_unwind and frame_unwind_address_in_block to specify
35 the frame type. Use frame_unwind_address_in_block instead of
36 frame_pc_unwind in sniffers.
38 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
40 * frame.c (deprecated_selected_frame): Rename to...
41 (selected_frame): ...this. Make static.
42 (get_selected_frame, select_frame): Update.
43 * frame.h (deprected_select_frame): Delete.
44 (deprecated_safe_get_selected_frame): Update comments.
46 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
47 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
48 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
49 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
50 tui/tui.c: Replace references to deprecated_selected_frame.
52 2007-02-27 Fred Fish <fnf@specifix.com>
54 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
55 directly decrement the stack pointer, accumulate their operand into
56 the stack offset, and mark the function as not being frameless.
58 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
60 * arch-utils.c (selected_byte_order): New.
61 * arch-utils.h (selected_byte_order): New prototype.
62 * remote-sim.c (gdbsim_open): Use selected_byte_order.
64 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
66 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
67 (default_symfile_offsets): Check VMA here. Update section VMAs.
69 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
71 * remote.c (init_remote_state): Add special handling for placeholder
74 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
76 * Makefile.in (XMLFILES): Include $(TDEP_XML).
77 (filenames_h): New variable.
78 (clean): Clean up xml-builtin.c and stamp-xml.
79 (arm-linux-nat.o): Update.
80 * config/arm/linux.mh (TDEP_XML): Define.
81 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
82 (arm_linux_has_wmmx_registers): New.
83 (GET_THREAD_ID): Fix typo.
84 (IWMMXT_REGS_SIZE): Define.
85 (fetch_wmmx_regs, store_wmmx_regs): New.
86 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
87 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
88 (super_xfer_partial, arm_linux_xfer_partial): New.
89 (_initialize_arm_linux_nat): Use them.
90 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
91 (xml_builtin_xfer_partial): New function.
92 * xml-support.h (xml_builtin_xfer_partial): New prototype.
93 * NEWS: Update mention of iWMMXt support.
95 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
97 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
98 if there are no FPA registers.
99 (arm_dwarf_reg_to_regnum): New function.
100 (arm_register_type, arm_register_name): Return minimal values for
101 unsupported registers.
102 (arm_register_sim_regno): Handle iWMMXt registers.
103 (arm_gdbarch_init): Record missing FPA registers if indicated by
104 a target description. Recognize iWMMXt registers. Only register
105 "info float" for FPA. Use ARM_NUM_REGS. Register
106 arm_dwarf_reg_to_regnum.
107 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
109 (struct gdbarch_tdep): Add have_fpa_registers.
110 * features/xscale-iwmmxt.xml: Update capitalization.
111 * regformats/arm-with-iwmmxt.dat: Regenerated.
113 2007-02-24 Kevin Buettner <kevinb@redhat.com>
115 * NEWS (New targets): Add entry for the Toshiba Media Processor.
117 2007-02-23 Kevin Buettner <kevinb@redhat.com>
119 * MAINTAINERS (mep): New target.
121 2007-02-23 Kevin Buettner <kevinb@redhat.com>
123 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
125 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
126 (mep-tdep.o): New rule.
127 * configure.tgt (mep-*-*): New target.
128 * mep-tdep.c: New file.
129 * config/mep/mep.mt: New file.
131 2007-02-22 Markus Deuling <deuling@de.ibm.com>
133 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
134 BREAKPOINT_HIT and STOP_UNKNOWN.
136 2007-02-22 Markus Deuling <deuling@de.ibm.com>
138 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
140 2007-02-20 Joel Brobecker <brobecker@adacore.com>
142 * gdb_expat.h (XMLCALL): Define if not already defined.
144 2007-02-20 Andreas Schwab <schwab@suse.de>
146 * Makefile.in (symfile.o): Update dependencies.
148 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
150 * MAINTAINERS: Disable -Werror for cris simulator. Build
151 sparc64-solaris2.10 instead of the broken sparc-elf.
152 * solib-frv.c: Include "solib.h".
153 * Makefile.in (solib-frv.o): Update.
154 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
155 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
156 (xtensa_frame_this_id, xtensa_frame_prev_register)
157 (xtensa_push_dummy_call): Use %p.
159 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
161 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
162 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
163 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
164 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
165 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
166 (sparc-linux-tdep.o): Update.
168 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
170 * xtensa-tdep.h (xtensa_reg_mask_t): New.
171 (xtensa_mask_t): Change mask field to be a separate array.
172 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
173 (xtensa_pseudo_register_write, xtensa_unwind_pc)
174 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
175 (xtensa_breakpoint_from_pc): Remove implicit type casting.
176 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
177 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
178 (mask14, mask15): Rename to
179 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
180 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
181 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
182 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
183 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
184 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
185 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
186 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
187 (xtensa_submask14, xtensa_submask15): New.
188 (rmap): Follow strict aliasing rules doing static initialization.
190 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
192 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
193 handling from here...
194 (tdesc_register_type): ...to here.
195 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
196 * features/arm-core.xml: Use code_ptr and data_ptr.
198 2007-02-13 Denis Pilat <denis.pilat@st.com>
200 * varobj.h (enum varobj_update_error): New enum.
201 * varobj.c (struct varobj_root): Add is_valid member.
202 (varobj_get_type): Check for invalid varobj.
203 (varobj_get_attributes): Likewise.
204 (variable_editable):Likewise.
205 (varobj_update): Likewise. Use varobj_update_error.
206 (new_root_variable): Set root varobj as valid by default.
207 (varobj_invalidate): New function.
208 * symfile.c (clear_symtab_users): Use varobj_invalidate.
209 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
210 Use varobj_update_error.
212 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
215 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
216 Pascal language marker.
217 * dwarf2read.c (set_cu_language): Likewise.
219 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
221 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
222 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
223 instead of target_terminal_init since inferior_ptid isn't set yet.
225 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
227 * MAINTAINERS (Write After Approval): Add myself.
229 2007-02-09 Fred Fish <fnf@specifix.com>
231 Based on work by Apple Computer, Inc.
232 * event-top.c (async_request_quit): Call quit() whenever either
233 quit_flag is set or immediate_quit is set.
235 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
237 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
238 type to a pointer to const struct block.
239 (ada_lookup_symbol_list): Don't cast away constness when calling
240 remove_out_of_scope_renamings.
242 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
244 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
245 address of 'filename'; it is always non null.
247 2007-02-09 Joel Brobecker <brobecker@adacore.com>
249 * exec.c (add_to_section_table): Do not discard empty sections.
251 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
253 * features/Makefile, features/arm-with-iwmmxt.xml,
254 features/gdbserver-regs.xsl, features/number-regs.xsl,
255 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
256 * regformats/arm-with-iwmmxt.dat: Generate.
257 * NEWS: Mention iWMMXt.
259 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
261 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
262 (xml-tdesc.o): Update.
263 * xml-support.c: Add a comment.
264 (gdb_xml_enums_boolean): New variable.
265 (gdb_xml_parse_attr_enum): Use strcasecmp.
266 * xml-support.h (gdb_xml_enums_boolean): Declare.
267 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
268 next_regnum, and current_union.
269 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
270 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
271 (field_attributes, union_children, reg_attributes, union_attributes)
272 (vector_attributes, feature_attributes, feature_children): New.
273 (target_children): Make static. Add <feature>.
274 (tdesc_elements): Make static.
275 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
276 (struct tdesc_feature, tdesc_feature_p): New types.
277 (struct target_desc): Add features member.
278 (struct tdesc_arch_data, tdesc_data): New.
279 (target_find_description): Clarify error message. Warn about
280 ignored register descriptions.
281 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
282 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
283 (tdesc_data_cleanup, tdesc_numbered_register)
284 (tdesc_numbered_register_choices, tdesc_find_register)
285 (tdesc_register_name, tdesc_register_type)
286 (tdesc_remote_register_number, tdesc_register_reggroup_p)
287 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
288 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
289 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
290 (tdesc_create_feature, tdesc_record_type): New.
291 (free_target_description): Free features.
292 (_initialize_target_descriptions): Initialize tdesc_data.
293 * arch-utils.c (default_remote_register_number): New.
294 * arch-utils.h (default_remote_register_number): New prototype.
295 * target-descriptions.h (set_tdesc_pseudo_register_name)
296 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
297 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
298 (tdesc_numbered_register, tdesc_numbered_register_choices)
299 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
300 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
301 (tdesc_create_reg): Declare.
302 * gdbarch.sh (remote_register_number): New entry.
303 * gdbarch.c, gdbarch.h: Regenerate.
304 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
305 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
307 * arm-tdep.c (arm_register_aliases): New.
308 (arm_register_name_strings): Rename to...
309 (arm_register_names): ...this. Make const. Delete the old version.
310 (current_option, arm_register_byte): Delete.
311 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
312 (value_of_arm_user_reg): New.
313 (arm_gdbarch_init): Verify any described registers. Call
314 tdesc_use_registers. Don't use arm_register_byte. Create aliases
315 for standard register names.
316 (_initialize_arm_tdep): Do not adjust arm_register_names.
317 * user-regs.c (struct user_reg): Add baton member.
318 (append_user_reg, user_reg_add_builtin, user_regs_init)
319 (user_reg_add, value_of_user_reg): Use a baton for user
321 * std-regs.c: Update.
322 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
323 (user_reg_add): Add baton argument.
324 * NEWS: Mention target description register support.
325 * features/arm-core.xml, features/arm-fpa.xml: New.
326 * eval.c (evaluate_subexp_standard): Allow ptype $register
327 when the program is not running.
329 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
331 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
333 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
335 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
336 info->disassembler_options to "any".
338 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
340 * varobj.c (install_new_value): Only call value_get_print_value
343 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
345 Reported by timeless@gmail.com:
346 * gdb/target.c (target_flash_erase): Do not return void value.
347 (target_flash_done): Likewise.
348 * gdb/cli/cli-cmds.c (source_command): Likewise.
350 2007-02-08 Fred Fish <fnf@specifix.com>
352 Based on work by Apple Computer, Inc.
353 * event-top.c (handle_sigint): Set quit_flag.
354 (async_request_quit): Don't set quit_flag. Avoid calling quit()
355 if quit_flag has already been reset.
357 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
359 * ser-mingw.c (pipe_windows_close): Move variable initialization back
362 2007-02-08 Fred Fish <fnf@specifix.com>
364 * defs.h (request_quit): Remove declaration.
365 * utils.c (request_quit): Remove definition.
367 2007-02-08 Joel Brobecker <brobecker@gnat.com>
368 Jan Kratochvil <jan.kratochvil@redhat.com>
369 Daniel Jacobowitz <dan@codesourcery.com>
371 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
372 (skip_prologue): Allow bl->blrl used by PIC code.
374 2007-02-08 Mark Kettenis <kettenis@gnu.org>
375 Daniel Jacobowitz <dan@codesourcery.com>
377 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
378 initialize tmp_obstack.
379 * p-valprint.c (pascal_object_print_value_fields)
380 (pascal_object_print_value): Likewise.
382 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
384 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
386 2007-02-08 Mark Kettenis <kettenis@gnu.org>
388 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
389 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
391 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
393 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
395 (tdesc_parse_xml): Cache expanded descriptions.
397 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
399 * Makefile.in (XMLFILES): New.
400 (COMMON_OBS): Add xml-builtin.o.
401 (xml-builtin.c, stamp-xml): New rules.
402 (xml-tdesc.o): Update.
403 * features/feature_to_c.sh: New file.
404 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
405 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
406 (gdb_xml_start_element): Initialize scope after possibly reallocating
407 scopes. Move cleanup later. Handle the XInclude description
409 (gdb_xml_end_element): Only parse the body if there is a current element.
410 Call XML_DefaultCurrent if there is no element.
411 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
412 (struct xinclude_parsing_data, xinclude_start_include)
413 (xinclude_end_include, xml_xinclude_default)
414 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
415 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
416 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
417 * xml-support.h (xml_fetch_another, xml_process_xincludes)
418 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
419 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
420 XInclude directives. Use the compiled in DTD.
421 (fetch_xml_from_file): Add baton argument. Treat it as a containing
422 directory name. Do not warn here.
423 (file_read_description_xml): Update call. Warn here instead. Pass
425 (fetch_available_features_from_target): New.
426 (target_read_description_xml): Use it.
427 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
429 * features/xinclude.dtd: New file.
431 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
433 * linux-thread-db.c (check_for_thread_db): Return early if we have
434 no libthread_db support.
436 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
438 * mi/mi-parse.h: Include <sys/time.h>.
440 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
442 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
443 instead of print_variable_value to print values.
445 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
447 * mi/mi-main.c: Numerous formatting changes.
448 (mi_cmd_data_write_register_values): Replace clause inadvertantly
449 removed in my previous change.
451 2007-02-03 Eli Zaretskii <eliz@gnu.org>
453 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
454 Use 1000000L instead of 1000000.
456 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
458 Based on work by Apple Computer, Inc.
460 * configure.ac: Test for sys/resource.h and getrusage.
461 * configure, config.in: Regenerate.
463 * mi/mi-main.c: Include <sys/resource.h> if present.
464 (rusage): Declare if HAVE_GETRUSAGE.
465 (current_command_ts, do_timings): New static variables.
466 (timestamp, print_diff_now, print_diff, timeval_diff):
467 New static timing functions.
468 (mi_cmd_enable_timings): New function for new MI command.
469 (captured_mi_execute_command, mi_execute_async_cli_command):
470 Call timing functions.
472 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
475 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
477 * mi/mi-parse.h: (mi_timestamp): New structure.
478 (mi_parse): Add mi_timestamp* member.
480 2007-02-02 Denis Pilat <denis.pilat@st.com>
482 * thread.c (make_cleanup_restore_current_thread): New function.
483 (info_threads_command): Use of make_cleanup_restore_current_thread
484 to restore the current thread and the selected frame.
485 (restore_selected_frame): New function.
486 (struct current_thread_cleanup): Add frame_id field.
487 (do_restore_current_thread_cleanup): Add restoring of the selected
489 (make_cleanup_restore_current_thread): Likewise.
490 (thread_apply_all_command): backup the selected frame while
491 entering the function and restore it at exit.
492 (thread_apply_command): Likewise.
494 2007-02-02 Denis Pilat <denis.pilat@st.com>
496 * MAINTAINERS (Write After Approval): Add myself to the list.
498 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
500 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
501 (m32r_store_register): Ditto.
503 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
505 * ser-mingw.c (pipe_windows_open)
506 (pipe_windows_read, pipe_windows_write): Declare
507 variables at the top of the function.
509 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
511 * doublest.c (floatformat_from_length): Use the right element from
512 gdbarch floatformats.
513 (floatformat_from_type, extract_typed_floating)
514 (store_typed_floating): Likewise.
515 * doublest.h: Remove declarations for undefined floatformat arrays.
516 * gdbarch.sh (float_format, double_format, long_double_format): Change
518 (pformat): Update for pairs.
519 * gdbarch.c, gdbarch.h: Regenerated.
520 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
521 (floatformats_ieee_double_littlebyte_bigword)
522 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
523 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
524 (floatformats_vax_d): New variables.
525 (builtin_type_ieee_single, builtin_type_ieee_double)
526 (builtin_type_arm_ext, builtin_type_ia64_spill)
527 (builtin_type_ia64_quad): Replace arrays with individual types.
528 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
529 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
530 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
531 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
532 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
533 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
534 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
535 unused and endian-specific types.
536 (recursive_dump_type): Update for floatformat pairs.
537 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
538 (build_gdbtypes): Use build_flt.
539 (_initialize_gdbtypes): Update set of initialized types.
540 * gdbtypes.h: Update declarations to match gdbtypes.c.
541 (struct main_type): Store a pointer to two floatformats.
542 * arch-utils.c (default_float_format, default_double_format): Delete.
543 * arch-utils.h (default_float_format, default_double_format): Delete.
545 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
546 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
547 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
548 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
549 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
551 2007-01-29 Joel Brobecker <brobecker@adacore.com>
553 * target.c (maintenance_print_target_stack): New function.
554 (initialize_targets): Add new "maintenance print target-stack"
557 2007-01-28 Mark Kettenis <kettenis@gnu.org>
559 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
561 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
563 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
564 (struct dwarf2_loclist_baton): Likewise.
566 2007-01-27 Eli Zaretskii <eliz@gnu.org>
568 * cli/cli-script.c: Include breakpoint.h.
569 (build_command_line): Require arguments only for if and while
571 (get_command_line, execute_user_command, execute_control_command):
572 Fix wording of warning messages.
573 (print_command_lines): Print breakpoint commands.
574 (execute_control_command): Call commands_from_control_command to
575 handle the `commands' command inside a body of a flow-control
577 (read_next_line): Recognize the `commands' command and build a
578 command line structure for it.
579 (recurse_read_control_structure, read_command_lines): Handle
580 `commands' similarly to `if' and `while'.
582 * breakpoint.c (get_number_trailer): Document the special meaning
583 of NULL as the first argument PP.
584 (commands_from_control_command): New function.
586 * breakpoint.h (commands_from_control_command): Add prototype.
588 * defs.h (commands_control): New enumerated value for enum
589 command_control_type.
591 2007-01-26 Joel Brobecker <brobecker@adacore.com>
593 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
594 (ada_exception_sal): Update accordingly.
596 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
598 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
599 * NEWS: Describe CHAR array vs. string identifcation rules.
601 2007-01-25 Paul Brook <paul@codesourcery.com>
603 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
605 2007-01-24 Jim Blandy <jimb@codesourcery.com>
607 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
608 expression is empty, bother to return the 'optimized out' value we
609 construct. (Thanks to Carl Burch.)
611 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
613 * varobj.c (c_value_of_root, c_value_of_child)
614 (cplus_describe_child): Don't call release_value.
616 2007-01-24 Thiemo Seufer <ths@mips.com>
618 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
621 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
623 Refactor getting children name, value and type access
625 * varobj.c (get_type_deref): Remove.
626 (adjust_value_for_child_access): New.
627 (c_number_of_children): Use the above.
628 (c_describe_child): Likewise.
629 (enum accessibility): New.
630 (match_accessibility): New function.
631 (cplus_describe_child): New function.
632 (cplus_name_of_child, cplus_value_of_child)
633 (cplus_type_of_child): Reimplement in terms
634 of cplus_describe_child.
635 (cplus_number_of_children): Use
636 adjust_value_for_child_access.
638 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
640 Fix computation of the 'editable' attribute and
641 value changeability for for references.
642 * varobj.c (get_value_type): New function.
643 (c_variable_editable): Use get_value_type.
644 (varobj_value_is_changeable): Likewise.
646 2007-01-24 Joel Brobecker <brobecker@adacore.com>
648 * source.c (find_and_open_source): Try rewriting the source
649 path inside filename if dirname is NULL.
651 2007-01-24 Joel Brobecker <brobecker@adacore.com>
653 * dwarf2read.c (add_partial_symbol): Create an extra partial
654 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
655 (new_symbol): Likewise for symbols.
657 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
659 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
661 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
663 * value.c (value_primitive_field): Copy the full 'location'
664 contents, instead of assuming that copying ADDRESS will
665 bring over everything in the union. Remove obsolete comment.
667 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
669 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
670 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
671 (m32c_m16c_pointer_to_address): Separate code from declarations.
673 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
675 * target.c (update_current_target): Correct typo.
677 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
679 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
682 2007-01-11 Andrew Cagney <cagney@redhat.com>
683 Daniel Jacobowitz <dan@codesourcery.com>
684 Jan Kratochvil <jan.kratochvil@redhat.com>
686 * dwarf2-frame.c (execute_cfa_program): New support of
687 `DW_CFA_GNU_negative_offset_extended'.
689 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
691 * NEWS: Mention flash support for "load" and new remote packets.
693 2007-01-21 Markus Deuling <deuling@de.ibm.com>
695 * breakpoint.c (delete_command): Skip redundant loop iterations.
697 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
699 * gdbarch.sh (register_type): Update comment.
700 * gdbarch.h: Regenerated.
701 * arch-utils.c (generic_register_size): Call register_type.
702 * ia64-tdep.c (ia64_extract_return_value): Likewise.
703 * m32c-tdep.c (check_for_saved): Likewise.
704 * mips-tdep.c (mips_print_register, print_gp_register_row)
705 (mips_print_registers_info): Likewise.
706 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
708 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
709 (sh64_do_register, sh64_print_register)
710 (sh64_media_print_registers_info): Likewise.
711 * tui/tui-regs.c (tui_register_format): Likewise.
713 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
715 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
717 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
718 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
719 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
720 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
721 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
722 (make_symbol_completion_list): Likewise.
724 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
725 Daniel Jacobowitz <dan@codesourcery.com>
727 * buildsym.c (end_symtab): Use preallocated symtab if available.
728 Fill in SYMBOL_SYMTAB.
729 * buildsym.h (struct subfile): Add symtab member.
730 * dwarf2read.c (struct dwarf2_cu): Add line_header.
731 (struct file_entry): Add symtab.
732 (free_cu_line_header): New function.
733 (read_file_scope): Use it. Save line_header in the cu. Process
735 (add_file_name): Initialize new symtab member.
736 (dwarf_decode_lines): Create symtabs for included files.
737 (new_symbol): Set SYMBOL_SYMTAB.
738 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
739 (search_symbols): Likewise.
740 * symtab.h (struct symbol): Add symtab member.
741 (SYMBOL_SYMTAB): Define.
743 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
745 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
747 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
749 * arch-utils.c (show_endian): Correct reversed condition.
751 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
753 * MAINTAINERS (Write After Approval): Add myself.
755 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
756 Vladimir Prus <vladimir@codesourcery.com>
758 Fix 'selected frame' varobjs.
759 * varobj.c (struct varobj): Remove the error field.
760 (varobj_set_value): Don't check var->error.
761 (install_new_value): Don't set var->error.
762 (varobj_update): Always pass the new value
763 of the root via install_new_value.
764 (create_child): Don't set error field.
765 (new_variable): Likewise.
766 (c_value_of_root): Always reevaluate the value
767 of selected frame varobjs in the selected frame.
768 Don't call reinit_frame_cache.
770 2007-01-15 Joel Brobecker <brobecker@adacore.com>
772 * source.c (_initialize_source): Improve the help text of
773 the substitute-path commands.
775 2007-01-14 Mark Kettenis <kettenis@gnu.org>
777 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
778 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
779 (frv_skip_prologue): Remove prototypes.
780 (frv_adjust_breakpoint_address): Renamed from
781 frv_gdbarch_adjust_breakpoint_address.
782 (frv_gdbarch_init): Adjust.
784 2007-01-13 Mark Kettenis <kettenis@gnu.org>
786 * gdbarch.sh (deprecated_extract_return_value)
787 (deprecated_store_return_value): Remove.
788 (extract_return_value, store_return_value): Remove default values.
789 * gdbarch.c, gdbarch.h: Regenerate.
790 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
791 (legacy_store_return_value): Remove.
792 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
795 * mi/mi-main.c: Remove obsolete comment.
797 * regcache.c, regcache.h (deprecated_register_bytes)
798 (deprecated_read_register_bytes)
799 (deprecated_write_register_bytes): Remove.
801 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
802 Don't forget to move destination pointer.
804 2007-01-01 Mark Kettenis <kettenis@gnu.org>
806 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
808 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
810 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
811 past entry function with recent newlib.
813 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
815 * gdb.texinfo (GDB/MI Variable Objects): Improve the
816 introduction. Specify -var-update more exactly.
818 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
820 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
822 2007-01-10 Jim Blandy <jimb@codesourcery.com>
824 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
825 the Global Maintainers' invitation to be a global maintainer.
827 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
829 * infrun.c (singlestep_pc): New variable.
830 (resume): Set singlestep_pc.
831 (context_switch): Add a debugging message. Flush the frame cache.
832 (handle_inferior_event): Add debugging messages. Handle thread
833 hops when a software single step has completed. Let context_switch
834 handle flushing the frame cache.
836 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
838 * NEWS: Mention target descriptions, "set tdesc filename",
839 "unset tdesc filename", "show tdesc filename", and
841 * arch-utils.c (choose_architecture_for_target): New function.
842 (gdbarch_info_fill): Call it.
843 * target-descriptions.c (struct property): Make members non-const.
844 (struct target_desc): Add arch member.
845 (target_description_filename): New variable.
846 (target_find_description): Try via XML first.
847 (tdesc_architecture): New.
848 (free_target_description, make_cleanup_free_target_description): New.
849 (set_tdesc_property): Call xstrdup.
850 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
851 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
852 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
853 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
854 * target-descriptions.h (tdesc_architecture)
855 (make_cleanup_free_target_description, set_tdesc_architecture): New
857 * Makefile.in (SFILES): Add xml-tdesc.c.
858 (COMMON_OBS): Add xml-tdesc.o.
859 (target-descriptions.o): Update.
860 (xml-tdesc.o): New rule.
861 * xml-tdesc.c, xml-tdesc.h: New files.
862 * remote.c (PACKET_qXfer_features): New enum.
863 (remote_protocol_features): Add qXfer:features:read.
864 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
865 (_initialize_remote): Register qXfer:features:read.
866 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
867 * features/gdb-target.dtd: New file.
869 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
871 * copyright.sh: Clarify error.
873 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
875 * symtab.c (matching_bfd_sections): Fix VMA matching for
878 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
880 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
883 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
885 Updated copyright notices for most files.
887 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
889 * copyright.sh (prunes): Add step-line.inp and step-line.c.
891 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
893 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
895 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
897 * configure, config.in: Regenerate.
898 * defs.h (debug_file_directory): Declare.
899 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
900 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
901 relocate it if DEBUGDIR_RELOCATABLE.
902 * symfile.c (debug_file_directory): Make non-static.
903 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
904 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
905 (_initialize_symfile): Don't initialize debug_file_directory here.
907 2007-01-09 Jim Blandy <jimb@codesourcery.com>
909 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
912 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
914 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
915 frame_unwind_register to recurse.
916 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
917 (alpha_heuristic_frame_prev_register): Likewise.
918 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
919 * m32c-tdep.c (m32c_prev_register): Likewise.
920 * frame.c (frame_register_unwind_location): Remove FIXME.
922 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
923 Eli Zaretskii <eliz@gnu.org>
925 * copyright.sh: New file.
927 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
929 * configure.ac: Check for XML_StopParser.
930 * xml-support.c (gdb_xml_body_text): Check for an error.
931 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
932 (gdb_xml_end_element_wrapper): Likewise.
933 * config.in, configure: Regenerated.
935 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
937 * varobj.c (install_new_value): Always update print_value.
938 (value_get_print_value): Immediately return NULL for missing
941 2007-01-08 Jim Blandy <jimb@codesourcery.com>
943 * configure.ac: Tighten pattern for extracting value of
944 DEPRECATED_TM_FILE from the target makefile fragment.
945 * configure: Regenerated.
947 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
949 * linux-nat.c (struct simple_pid_list): Add status.
950 (add_to_pid_list): Record the PID's status.
951 (linux_record_stopped_pid): Likewise. Make static.
952 (pull_pid_from_list): Return the saved status.
953 (linux_nat_handle_extended): Deleted.
954 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
955 Make static. Handle non-SIGSTOP for a new thread's first signal.
956 (flush_callback): Handle unexpected pending signals.
957 (linux_nat_wait): Update calls to changed functions.
958 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
959 Remove prototypes for newly static functions.
961 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
963 * gdbarch.sh (value_from_register): New gdbarch function.
964 * gdbarch.c, gdbarch.h: Regenerate.
965 * findvar.c (default_value_from_register): New function.
966 (value_from_register): Use gdbarch_value_from_register.
967 * value.h (default_value_from_register): Declare.
968 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
969 spu_value_to_register): Remove.
970 (spu_value_from_register): New function.
971 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
972 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
973 Call set_gdbarch_value_from_register.
974 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
975 s390_value_to_register): Remove.
976 (s390_value_from_register): New function.
977 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
978 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
979 Call set_gdbarch_value_from_register.
981 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
983 * NEWS: Add "set sysroot" and "show sysroot".
984 * solib.c (solib_absolute_prefix): Delete. Replace
985 all uses with gdb_sysroot.
986 (_initialize_solib): Add "set sysroot" and "show sysroot".
987 Make "solib-absolute-prefix" an alias to it.
989 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
991 * frame.c (get_frame_register_bytes): New function.
992 (put_frame_register_bytes): Likewise.
993 * frame.h (get_frame_register_bytes): Declare.
994 (put_frame_register_bytes): Likewise.
995 * findvar.c (value_from_register): Always construct lval_register
996 values. Use get_frame_register_bytes.
997 * valops.c (value_assign): Use get_frame_register_bytes and
998 put_frame_register_bytes.
1000 2007-01-08 Jim Blandy <jimb@codesourcery.com>
1002 * MAINTAINERS: Update Stan Shebs' email address.
1004 2007-01-07 Joel Brobecker <brobecker@adacore.com>
1006 * ada-lang.c (is_known_support_routine): Improve the implementation.
1008 2007-01-06 Joel Brobecker <brobecker@adacore.com>
1010 * ada-lang.c: Add include of source.h.
1011 (is_known_support_routine): Improve the check verifying that the file
1012 associated to this frame exists.
1013 * Makefile.in (ada-lang.o): Add dependency on source.h.
1015 2007-01-07 Jim Blandy <jimb@codesourcery.com>
1017 * ax-general.c (ax_const_l): Select proper opcode for the given
1020 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1022 * varobj.c (c_value_of_root): Don't select frame if variable
1023 object is out of scope.
1025 2007-01-06 Nick Roberts <nickrob@snap.net.nz>
1027 * varobj.c (struct varobj): New member print_value.
1028 (install_new_value): Compare last printed value with current one
1029 instead of contents.
1030 (new_variable): Initialize var->print_value to NULL.
1031 (free_variable): Free var->print_value.
1032 (value_get_print_value): New function derived from
1033 c_value_of_variable.
1034 (c_value_of_variable): Use value_get_print_value.
1036 2007-01-05 Joel Brobecker <brobecker@adacore.com>
1038 * i386-tdep.c (i386_analyze_stack_align): Add comment.
1040 2007-01-05 Joel Brobecker <brobecker@adacore.com>
1042 * NEWS: Add entries for new catch commands.
1044 2007-01-05 Joel Brobecker <brobecker@adacore.com>
1046 * dwarf2read.c (partial_die_info): Add field has_byte_size.
1047 (add_partial_symbol): Correct identification of external references.
1048 (process_structure_scope): Likewise.
1049 (read_partial_die): Handle DW_AT_byte_size attribute.
1051 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
1053 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
1055 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
1057 * varobj.c (get_type_deref): Fix variable objects for references to
1060 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1062 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
1065 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1067 * memory-map.c (struct_memory_map_parsing_data): Remove most
1068 members. Make property_name an array.
1069 (free_memory_map_parsing_data, memory_map_start_element)
1070 (memory_map_end_element, memory_map_character_data): Delete.
1071 (memory_map_start_memory, memory_map_end_memory)
1072 (memory_map_start_property, memory_map_end_property): New functions.
1073 (property_attributes, memory_children, memory_type_enum)
1074 (memory_attributes, memory_map_children, memory_map_elements): New.
1075 (parse_memory_map): Rewrite.
1076 * xml-support.c (debug_xml): New.
1077 (xml_get_required_attribute, xml_get_integer_attribute)
1078 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
1080 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
1081 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
1082 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
1083 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
1084 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
1085 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
1086 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
1088 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
1089 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
1090 (enum gdb_xml_element_flag, struct gdb_xml_element)
1091 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
1092 (struct gdb_xml_enum): New.
1093 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
1094 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
1095 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
1096 (xml_get_required_attribute, xml_get_integer_attribute)
1097 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
1098 * Makefile.in (xml_support_h, xml-support.o): Update.
1100 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1102 * Makefile.in (eval.o): Update dependencies.
1103 * eval.c: Include "ui-out.h" and "exceptions.h".
1104 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
1105 Use value_zero if an error occurs when avoiding side effects.
1106 * varobj.c (c_value_of_root): Initialize new_val.
1108 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1110 * varobj.c (varobj_list_children): Stop if the number of children is
1112 (c_number_of_children):
1114 2007-01-04 Mark Kettenis <kettenis@gnu.org>
1116 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
1117 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
1118 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
1119 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
1120 sizeof, instead of hardcoded constants.
1122 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1124 * CONTRIBUTE: Use sourceware.org.
1126 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1128 * buildsym.c (start_subfile): Handle producer.
1129 (record_producer): New function.
1130 * buildsym.h (struct subfile): Include producer.
1131 (record_producer): New prototype.
1132 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
1133 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
1134 armcc_cfa_offsets_reversed.
1135 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
1136 (dwarf2_frame_find_quirks): New function.
1137 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
1138 (decode_frame_entry_1): Record the CIE version. Record the
1139 augmentation. Skip armcc augmentations.
1140 * dwarf2read.c (read_file_scope): Save the producer.
1141 * symtab.h (struct symtab): Rename unused version member to
1144 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1146 * configure.ac (build_warnings): Use -Wall and
1147 -Wdeclaration-after-statement.
1148 * configure: Regenerated.
1150 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1152 Simplify access to variours properties of child
1153 variable objects in C.
1154 * varobj.c (value_struct_element_index): New function.
1155 (c_describe_child): New function.
1156 (c_name_of_child, c_value_of_child)
1157 (c_type_of_child): Rewrite to use c_describe_child.
1159 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1162 * varobj.c: Include "vec.h".
1163 (varobj_p): New typedef, declare vector of those.
1164 (struct varobj): Use vector for the 'children' member.
1165 (child_exists): Remove.
1166 (save_child_in_parent): Remove.
1167 (remove_child_from_parent): Remove.
1168 (struct varobj_child): Remove.
1169 (struct vstack): Remove.
1170 (vpush, vpop): Remove.
1171 (varobj_list_children): Adjust to work work vector.
1172 (varobj_update): Likewise. Use vectors for
1173 working stack and result.
1174 (delete_variable_1): Likewise.
1175 * Makefile.in (varobj.o): Update dependencies.
1177 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1179 Port from Apple's version.
1181 * varobj.c (type_changeable): Rename to...
1182 (varobj_value_is_changeable_p): ...this. Adjust all callers.
1183 (is_root_p): New function. Use it everywhere.
1185 2007-01-04 Jim Blandy <jimb@codesourcery.com>
1187 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
1190 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1192 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
1194 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1196 * hpread.c (hpread_type_lookup): Fix compilation failure.
1198 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
1200 * NEWS: New port to S+core.
1201 * MAINTAINERS (Write After Approval, Responsible Maintainers):
1204 * Makefile.in: Add dependencies for S+core files.
1205 * configure.tgt (score*, score-*-*): Add S+core target.
1206 * config/score/embed.mt: New file.
1207 * score-tdep.c: New file.
1208 * score-tdep.h: New file.
1210 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1212 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
1213 the appropriate type rather than a bogus void type.
1215 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1217 * ada-lang.h (ada_find_printable_frame): Remove.
1218 (ada_exception_catchpoint_p, ada_decode_exception_location)
1219 (ada_decode_assert_location): Add declaration.
1220 * ada-lang.c: Add include of annotate.h and valprint.h.
1221 (exception_catchpoint_kind): New enum.
1222 (function_name_from_pc, is_known_support_routine)
1223 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
1224 (ada_exception_name_addr_1, ada_exception_name_addr)
1225 (print_it_exception, print_one_exception, print_mention_exception)
1226 (print_it_catch_exception, print_one_catch_exception)
1227 (print_mention_catch_exception, catch_exception_breakpoint_ops)
1228 (print_it_catch_exception_unhandled)
1229 (print_one_catch_exception_unhandled)
1230 (print_mention_catch_exception_unhandled, print_it_catch_assert)
1231 (print_one_catch_assert, print_mention_catch_assert)
1232 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
1233 (ada_get_next_arg, catch_ada_exception_command_split)
1234 (ada_exception_sym_name, ada_exception_sym_name)
1235 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
1236 (ada_parse_catchpoint_condition, ada_exception_sal)
1237 (ada_decode_exception_location)
1238 (ada_decode_assert_location): New function.
1239 (catch_exception_unhandled_breakpoint_ops): New global variable.
1240 (catch_assert_breakpoint_ops): New global variable.
1241 * breakpoint.c: Add include of ada-lang.h.
1242 (print_one_breakpoint): Do not print the condition for Ada
1243 exception catchpoints.
1244 (create_ada_exception_breakpoint): New function.
1245 (catch_ada_exception_command, catch_assert_command): New function.
1246 (catch_command_1): Add support for the new "catch exception" and
1247 "catch assert" commands.
1248 (_initialize_breakpoint): Add help description for the new catch
1250 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
1252 (breakpoint.o): Add dependency on ada-lang.h.
1254 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
1256 * coffread.c (cs_to_section): If bfd_section is found, always
1257 return its section index.
1258 (coff_symtab_read): Determine the minimal_symbol_type using the
1261 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1262 Daniel Jacobowitz <dan@codesourcery.com>
1264 * Makefile.in (top.o): Update.
1265 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
1266 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
1267 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
1269 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
1271 2007-01-03 Mark Kettenis <kettenis@gnu.org>
1273 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
1274 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
1276 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
1278 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
1279 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
1280 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
1281 greater than or equal to zero.
1282 * m2-typeprint.c (m2_array): Likewise.
1283 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1284 * gdbtypes.c (copy_type_recursive): Correct == typo.
1285 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
1286 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
1288 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
1289 (default_macro_scope): Remove unused variable.
1290 * prologue-value.h (pv_area_find_reg): Don't name an argument
1292 * remote-fileio.c (remote_fio_func_map): Add missing braces.
1293 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
1295 (cleanup_sigint_signal_handler): Remove casts.
1296 * valprint.c (val_print): Use a volatile local for the modified
1298 * varobj.c (languages): Remove extra array dimension.
1299 (varobj_create): Correct access to languages array.
1300 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
1302 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1303 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
1304 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
1305 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1306 (mi_cmd_data_write_memory): Likewise.
1307 * signals/signals.c (target_signal_to_string): Cast to int before
1309 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
1312 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
1314 * NEWS: Mention pointer to member improvements.
1315 * Makefile.in (gnu-v3-abi.o): Delete special rule.
1316 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
1317 * ada-valprint.c (ada_print_scalar): Update for new type codes.
1318 * c-typeprint.c (c_print_type): Update for new type codes.
1319 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
1320 (c_type_print_base): Likewise.
1321 (c_type_print_args): Rewrite.
1322 * c-valprint.c (c_val_print): Update for new type codes. Remove
1323 support for references to members. Treat methods like functions.
1324 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
1325 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
1326 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
1327 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
1328 (struct cp_abi_ops): Add corresponding members.
1329 * cp-valprint.c (cp_print_class_method): Delete.
1330 (cp_find_class_member): New function.
1331 (cp_print_class_member): Use it. Simplify support for bogus
1333 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
1334 lookup_methodptr_type.
1335 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
1336 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
1337 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
1339 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
1340 references returned by user defined operators.
1341 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
1342 (f_type_print_varspec_suffix): Remove support for member pointers.
1343 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
1345 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
1346 (lookup_methodptr_type): New.
1347 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
1348 (recursive_dump_type): Update for new types.
1349 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
1350 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
1351 (lookup_memberptr_type, lookup_methodptr_type)
1352 (smash_to_memberptr_type): New prototypes.
1353 (smash_to_method_type): Formatting fix.
1354 (lookup_member_type, smash_to_member_type): Delete prototypes.
1355 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
1356 Do not rely on debug information for the vptr or the method's
1357 enclosing type. Handle function descriptors for IA64.
1358 (gnuv3_virtual_fn_field): Rewrite using the new functions.
1359 (gnuv3_find_method_in, gnuv3_print_method_ptr)
1360 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
1361 (gnuv3_method_ptr_to_value): New.
1362 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
1363 * hpread.c (hpread_type_lookup): Update for new types.
1364 * infcall.c (value_arg_coerce): Likewise.
1365 * m2-typeprint.c (m2_print_type): Remove explicit support
1366 for member pointers.
1367 * m2-valprint.c (m2_val_print): Likewise.
1368 * p-typeprint.c (pascal_type_print_varspec_prefix)
1369 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
1370 * p-valprint.c (pascal_val_print): Likewise.
1371 (pascal_object_print_class_method, pascal_object_print_class_member):
1373 * p-lang.h (pascal_object_print_class_method)
1374 (pascal_object_print_class_member): Delete prototypes.
1375 * stabsread.c (read_type): Update for new types.
1376 * typeprint.c (print_type_scalar): Likewise.
1377 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
1378 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
1379 argument. Construct a pointer to member if the address of a
1380 function or data member is requested.
1381 (value_cast_pointers): Don't modify the input value.
1382 (value_cast): Adjust pointer to member handling for new types.
1383 Allow null pointer to member constants. Don't modify the input
1385 (value_ind): Remove pointer to member check. Handle function
1386 descriptors for function pointers.
1387 (value_struct_elt, value_find_oload_method_list, check_field):
1388 Remove pointer to member checks.
1389 * value.c (unpack_long): Allow pointers to data members.
1390 (value_from_longest): Allow member pointers.
1391 * value.h (value_aggregate_elt): Add want_address.
1392 * varobj.c (c_variable_editable): Remove check for members.
1393 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
1394 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
1396 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
1397 * c-lang.h (cp_print_class_method): Delete prototype.
1398 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
1399 * mips-tdep.c (mips_gdbarch_init): Likewise.
1400 * gdbarch.c, gdbarch.h: Regenerated.
1402 2007-01-01 Mark Kettenis <kettenis@gnu.org>
1404 * rs6000-tdep.c (rs6000_use_struct_convention)
1405 (rs6000_extract_return_value, rs6000_store_return_value)
1406 (rs6000_extract_struct_value_address): Remove.
1407 (rs6000_return_value): New function.
1408 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
1409 store_return_value, deprecated_extract_struct_value_address and
1410 deprecated_use_struct_convention. Use rs6000_return_value
1413 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
1415 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
1416 -display-disable, -display-enable, -display-insert and
1419 2007-01-01 Joel Brobecker <brobecker@adacore.com>
1421 * breakpoint.c (remove_breakpoint): Remove dead code.
1423 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
1425 * varobj.c: Include block.h.
1426 (c_value_of_root): Check scope within nested statements.
1428 2007-01-01 Mark Kettenis <kettenis@gnu.org>
1430 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
1431 regcache_cooked_write_signed instead of
1432 deprecated_write_register_bytes.
1434 2007-01-01 Joel Brobecker <brobecker@adacore.com>
1436 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
1438 2007-01-01 Joel Brobecker <brobecker@adacore.com>
1440 Followed the Start of New Year Procedure:
1441 * ChangeLog-2006: New file, containing all the entries for 2006.
1442 * ChangeLog: Removed all 2006 entries, and changed the reference
1443 to the previous ChangeLog to point to ChangeLog 2006.
1444 * top.c (print_gdb_version): Update copyright year.
1446 2007-01-01 Mark Kettenis <kettenis@gnu.org>
1448 * Makefile.in (remote-sds.o): Remove.
1449 * remote-sds.c: Delete.
1451 For older changes see ChangeLog-2006.
1457 version-control: never