1 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2 Pedro Alves <pedro@codesourcery.com>
4 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
6 * fork-child.c (startup_inferior) <resume_signal>: Use enum
8 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
9 calling strsignal. Use enum target_signal type for saved_signo.
10 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
11 (linux_nat_wait_1): Use enum target_signal type for signo. Use
12 target_signal_to_host before calling strsignal.
13 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
16 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17 Jan Kratochvil <jan.kratochvil@redhat.com>
19 * common/signals.c (ANY): Remove.
20 (SET): No longer use ANY.
22 2010-09-06 Yao Qi <yao@codesourcery.com>
24 * infrunc(resume): When inferior is waiting_for_vfork_done,
25 clear step and don't use displaced stepping.
27 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
29 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
32 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
34 Code cleanup - split print_stop_reason.
35 * infrun.c (enum inferior_stop_reason): Remove.
36 (print_stop_reason): Remove by splitting into ...
37 (print_exited_reason, print_signal_exited_reason)
38 (print_no_history_reason, print_signal_received_reason)
39 (print_end_stepping_range_reason): ... these new functions. Update
40 the preceding comment.
41 (handle_inferior_event): Change the calls to print_exited_reason,
42 print_signal_exited_reason, print_no_history_reason,
43 print_signal_received_reason, print_end_stepping_range_reason.
44 (handle_step_into_function, handle_step_into_function_backward):
45 Change the calls to print_end_stepping_range_reason.
47 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
49 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
50 * cli-out.c: Include vec.h.
51 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
52 variable stream, initialize it, use it.
53 (cli_redirect): New function comment. Replace the stream and
54 original_stream fields by the new streams field. Remove the
55 original_stream != NULL conditional, assert error on NULL instead.
56 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
57 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
58 original_stream fields by the new streams field.
59 (cli_out_set_stream): Replace the stream field by the new streams
61 * cli-out.h: Include vec.h.
62 (ui_filep): New typedef, call DEF_VEC_P for it.
63 (struct cli_ui_out_data): Replace the stream and original_stream
64 fields by the new streams field.
65 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
66 NULL first. Extend the comment.
67 (handle_redirections): Call ui_out_redirect with output.
68 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
69 calls outside of the TRY_CATCH block.
71 2010-09-03 Joel Brobecker <brobecker@adacore.com>
75 2010-09-02 Joel Brobecker <brobecker@adacore.com>
77 Back out the following change:
78 | 2010-06-29 Hui Zhu <teawater@gmail.com>
79 | * record.c (set_record_pic_cmdlist,
80 | show_record_pic_cmdlist): New variables.
81 | (set_record_pic_command,
82 | show_record_pic_command): New functions.
83 | (record_pic_function, record_pic_line, record_pic_enum,
84 | set_record_pic_type, record_pic_hide_nofunction,
85 | record_pic_hide_nosource, record_pic_hide_same): New variables.
86 | (record_pic_fputs): New function.
87 | (function_list, node_list, edge_list): New struct.
88 | (function_list, node_list, edge_list): New variables.
89 | (record_pic_cleanups, record_pic_node,
90 | record_pic_edge, cmd_record_pic): New functions.
91 | (_initialize_record): Add new commands for record pic.
93 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
95 * config.in, configure: Regenerated.
96 * configure.ac: Check for waitpid.
97 * ser-pipe.c (pipe_close): Wait for the program to exit.
99 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
101 * cli/cli-logging.c: Include gdb_assert.h.
102 (set_logging_overwrite): New function.
103 (logging_redirect): New comment.
104 (logging_no_redirect_file, set_logging_redirect)
105 (pop_output_files) <logging_no_redirect_file>: New.
106 (handle_redirections) <!logging_redirect>: New variable
107 no_redirect_file. Remove file autoclose for tee_file_new. No longer
108 discard cleanup for the close of former OUTPUT. Set
109 LOGGING_NO_REDIRECT_FILE.
110 (handle_redirections) <logging_redirect>: gdb_assert
111 LOGGING_NO_REDIRECT_FILE.
112 (show_logging_command) <logging_redirect handling>: Adjust messages
113 for SAVED_FILENAME not NULL.
114 (_initialize_cli_logging): Install set_logging_overwrite and
115 set_logging_redirect.
117 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
119 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
121 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
123 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
124 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
125 add $(GDB_WARN_CFLAGS_NO_FORMAT).
126 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
128 2010-09-02 Yao Qi <yao@codesourcery.com>
130 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
131 number from a WIFSIGNALED status.
133 2010-09-01 Tom Tromey <tromey@redhat.com>
135 * symtab.h (lookup_type_symbol): Declare.
136 * symtab.c (lookup_symbol_in_language_full): Rename from
137 lookup_symbol_in_language. Add 'for_type' argument.
138 (lookup_symbol_in_language): New function.
139 (lookup_type_symbol): Likewise.
140 (lookup_symbol_aux): Add 'for_type' argument.
141 (match_symbol_aux): New function.
142 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
143 (match_transparent_type): New function.
144 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
145 * symfile.h (struct quick_symbol_functions)
146 <pre_expand_symtabs_matching>: Remove.
147 <expand_one_symtab_matching>: New field.
148 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
149 (pre_expand_symtabs_matching_psymtabs): Remove.
150 (psym_functions): Update.
151 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
152 * dwarf2read.c (dw2_lookup_symbol): Update comment.
153 (dw2_pre_expand_symtabs_matching): Remove.
154 (dw2_expand_one_symtab_matching): New function.
155 (dwarf2_gdb_index_functions): Update.
157 2010-09-01 Joel Brobecker <brobecker@adacore.com>
159 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
161 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
163 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
164 as a feature reported by -list-target-features.
166 2010-09-01 Joel Brobecker <brobecker@adacore.com>
168 * features/Makefile (WHICH): Add rs6000/powerpc-32.
169 (powerpc-32.o, powerpc-32.c): New rules.
170 (clean): Also remove powerpc-32.c.
171 * regformats/rs6000/powerpc-32.dat: Generate.
173 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
175 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
177 * psymtab.h (psymbol_bcache_init): New function prototype.
178 (psymbol_bcache_free): New function prototype.
179 (psymbol_bcache_get_bcache): New function prototype.
180 * psymtab.c (psymbol_bcache_init): New function.
181 (psymbol_bcache_free): New function.
182 (psymbol_bcache_full): New function.
183 (psymbol_bcache_get_bcache): New function.
184 (add_psymbol_to_bcache): use psymbol_bcache_full.
185 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
187 * symmisc.c (print_symbol_bcache_statistics): Updated.
188 (print_objfile_statistics): Updated.
189 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
191 (free_objfile): Use psymbol_bcache_free.
193 2010-08-31 Tom Tromey <tromey@redhat.com>
196 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
197 Don't set TYPE_NAME on the type.
199 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
201 * infrun.c (set_exec_direction_func): Error out if target does not
202 support reverse execution.
204 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
206 Make linux_get_siginfo_type `type *' unique.
207 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
208 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
209 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
210 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
211 (_initialize_linux_tdep): New.
213 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
216 * defs.h (find_memory_region_ftype): New typedef.
217 (exec_set_find_memory_regions): Use it.
218 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
219 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
220 * gcore.c (objfile_find_memory_regions): Likewise.
221 * gnu-nat.c (gnu_find_memory_regions): Likewise.
222 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
223 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
224 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
225 find_memory_region_ftype.
226 (insert_dbx_link_bpt_in_region): Likewise.
227 (iterate_over_mappings): Likewise. Drop the comment part about the
229 (find_memory_regions_callback): Use find_memory_region_ftype.
230 (proc_find_memory_regions): Likewise.
231 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
232 find_memory_region_ftype.
233 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
234 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
236 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
238 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
239 'static partial_symbol psymbol'.
240 (psymbol_hash): New function.
241 (psymbol_compare): New function.
242 * bcache.c (hash_continue): New.
243 (hash): Use hash_continue.
244 * bcache.c: Add hash_function and compare_function
245 pointers to bcache struct.
246 (bcache_full): Use bcache->hash_function, and
247 bcache->compare_function.
248 (bcache_compare): New function.
249 (bcache_xmalloc): Take hash_function and
250 compare_function arguments and initialize the
253 * objfiles.c (allocate_objfile): Updated.
254 * symfile.c (reread_symbols): Updated.
255 * python/py-type.c (typy_richcompare): Updated.
257 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
258 Tom Tromey <tromey@redhat.com>
261 * python/py-value.c (valpy_get_dynamic_type): New function.
262 (value_object_getset): Add "dynamic_type".
263 (valpy_get_type): Fail on error.
265 2010-08-30 Yao Qi <yao@codesourcery.com>
267 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
268 (arm_linux_syscall_next_pc): New.
269 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
270 (arm_linux_init_abi): Initialize syscall_next_pc.
271 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
272 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
273 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
274 Declare arm_frame_is_thumb.
276 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
279 * breakpoint.c (bpstat_alloc): Remove unused prototype.
280 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
282 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
283 calls of bpstat_alloc. Remove explicit bs chain termination.
285 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
288 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
289 (my_waitpid): Likewise.
291 2010-08-27 Doug Evans <dje@google.com>
293 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
296 2010-08-27 Tom Tromey <tromey@redhat.com>
298 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
299 TYPE_FIELD_IGNORE_BITS.
301 2010-08-27 Doug Evans <dje@google.com>
303 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
304 the order they're defined in. munmap .debug_types buffer.
306 2010-08-26 Doug Evans <dje@google.com>
308 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
309 (dw2_forget_cached_source_info): Rename local cu to per_cu.
310 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
311 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
312 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
313 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
314 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
315 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
316 (write_psymtabs_to_index): Ditto.
318 2010-08-26 Pedro Alves <pedro@codesourcery.com>
320 * NEWS: Mention libthread_db debugging with core files.
322 2010-08-26 Doug Evans <dje@google.com>
324 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
325 forward decl. Pass pst->dirname to dwarf_decode_lines.
326 (psymtab_include_file_name): New function.
327 (dwarf_decode_lines): Call it. Update comments.
329 2010-08-25 Pedro Alves <pedro@codesourcery.com>
331 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
332 compilation unit being different from target die's.
334 2010-08-24 Doug Evans <dje@google.com>
337 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
338 debug_types_type_hash.
339 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
341 (lookup_die_type): Renamed from tag_type_to_tag. First look in
342 appropriate type_hash table. All callers updated.
343 (allocate_signatured_type_table): Renamed from
344 allocate_signatured_type_hash_table. All callers updated.
345 (create_signatured_type_table_from_index): Renamed from
346 create_signatured_type_hash_from_index. All callers updated.
347 (read_die_type): Add comment. Move actual reading to ...
348 (read_die_type_1): ... here. New function.
349 (follow_die_ref_or_sig): Tweak comment.
350 (set_die_type): Rewrite to use appropriate choice of
351 debug_info_type_hash or debug_types_type_hash.
352 (get_die_type_at_offset): New function.
353 (get_die_type): Call it.
355 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
357 * python/py-type.c (typy_richcompare): Initialize worklist.
359 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
360 Kazu Hirata <kazu@codesourcery.com>
361 Jonathan Larmour <jifl@eCosCentric.com>
363 * arm-tdep.c: Include features/arm-with-m.c.
364 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
366 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
367 Check is_m after force-mode.
368 (arm_gdbarch_init): Check the binary before the target description.
369 Add check for M profile attribute. If we have an M-profile device,
370 but no target register description, use arm-with-m. Recognize the
371 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
372 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
373 * arm-tdep.h (XPSR_T): Define.
374 (struct gdbarch_tdep): Add is_m member.
375 * features/arm-m-profile.xml, features/arm-with-m.c,
376 features/arm-with-m.xml: New files.
378 2010-08-23 Doug Evans <dje@google.com>
380 * dwarf2read.c (read_structure_type): Add comment.
381 (read_enumeration_type): Add comment.
382 (process_enumeration_scope): Move definition of some locals
384 (read_namespace_type): Add comment.
385 (set_die_type): Fix typo in comment.
387 2010-08-23 Tom Tromey <tromey@redhat.com>
390 * python/py-value.c: Include expression.h.
391 (valpy_do_cast): New function.
392 (valpy_cast): Use it.
393 (valpy_dynamic_cast): New function.
394 (valpy_reinterpret_cast): Likewise.
395 (value_object_methods): Add dynamic_cast, reinterpret_cast.
397 2010-08-23 Tom Tromey <tromey@redhat.com>
400 * python/py-value.c (valpy_nonzero): Don't throw error for other
403 2010-08-23 Tom Tromey <tromey@redhat.com>
406 * python/py-type.c: Include bcache.h, vec.h.
407 (struct type_equality_entry): New.
408 (compare_strings): New function.
409 (check_types_equal): Likewise.
410 (check_types_worklist): Likewise.
411 (typy_richcompare): Likewise.
412 (type_object_type): Set tp_richcompare field.
414 2010-08-23 Tom Tromey <tromey@redhat.com>
417 * python/py-type.c (typy_fields): Call check_typedef.
418 (typy_template_argument): Add TRY_CATCH.
420 2010-08-23 Tom Tromey <tromey@redhat.com>
423 * python/py-type.c (typy_array): New function.
424 (type_object_methods): Add "array".
426 2010-08-20 Pedro Alves <pedro@codesourcery.com>
428 * python/python.c: Include "serial.h".
429 (gdbpy_event_fds): Change type to `struct serial *' a array from
431 (gdbpy_run_events): Change parameters. Use serial_readchar in
433 (gdbpy_post_event): Use serial_write in place of write.
434 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
435 serial_async in place of add_file_handler.
437 2010-08-20 Pedro Alves <pedro@codesourcery.com>
439 * serial.h (gdb_pipe, serial_pipe): Declare.
440 * serial.c (serial_interface_lookup): Take a const char pointer.
441 (serial_fdopen): Rename to ...
442 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
443 Call the OPS' fdopen function if there is one.
444 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
446 (struct serial_ops) <fdopen>: New field.
448 * ser-mingw.c (free_pipe_state):
449 (free_pipe_state): Close output on non-pex pipes.
450 (pipe_windows_fdopen): New.
452 (_initialize_ser_windows): Register pipe_windows_fdopen.
453 * ser-go32.c (gdb_pipe): New.
454 * ser-pipe.c (pipe_close): Close file descriptor even if there's
459 2010-08-20 Keith Seitz <keiths@redhat.com>
462 * dwarf2read.c (struct delayed_method_info): New struct.
463 (struct dwarf2_cu): Add vector method_list.
464 (scan_partial_symbols): Count methods for union, class, structure,
466 (add_to_method_list): New function.
467 (free_delayed_list): New function.
468 (compute_delayed_physnames): New function.
469 (process_full_comp_unit): Make a cleanup for the CU's delayed
470 physname list, compute the delayed physnames, and free the
472 (dwarf2_add_member_fn): For C++ and Java, delay the computation
473 of the physname until after the CU is read.
475 * dwarf2read.c (read_structure_type): Check if the current
476 DIE's type was already completed after dwarf2_full_name
479 2010-08-19 Stan Shebs <stan@codesourcery.com>
481 * NEWS: Mention some additional changes.
483 2010-08-19 Tom Tromey <tromey@redhat.com>
485 * Makefile.in (install-python): Add DESTDIR.
487 2010-08-19 Doug Evans <dje@google.com>
490 * parser-defs.h (parse_float, parse_c_float): Declare.
491 * parse.c (parse_float, parse_c_float): New function.
492 * c-exp.y (parse_number): Call parse_c_float.
493 * objc-exp.y (parse_number): Ditto.
494 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
495 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
497 2010-08-19 Joel Brobecker <brobecker@adacore.com>
499 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
500 the arguments in the correct order.
501 * symtab.c (maybe_add_partial_symtab_filename): Declare
502 the arguments in the correct order.
504 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
506 * varobj.c (varobj_create): Replace variable old_fi with old_id,
507 initialize it by null_frame_id, wrap its usage by get_frame_id,
508 frame_id_p and frame_find_by_id.
510 2010-08-18 Tom Tromey <tromey@redhat.com>
513 * configure: Rebuild.
514 * configure.ac: Add install-python to CONFIG_INSTALL.
515 * Makefile.in (install-python): New.
517 2010-08-18 Doug Evans <dje@google.com>
519 * gdb_assert.h (gdb_assert_not_reached): New macro.
520 (gdb_assert_fail): Fix typo in comment.
521 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
523 * darwin-nat.c (darwin_check_new_threads): Ditto.
524 * dwarf2read.c (dwarf2_get_section_info): Ditto.
525 (munmap_section_buffer): Ditto.
526 * m32c-tdep.c (make_types): Ditto.
527 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
528 * macroexp.c (get_character_constant): Ditto.
529 (get_string_literal): Ditto.
530 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
531 (mep_pseudo_cr_index, mep_register_type): Ditto.
532 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
533 (mep_get_insn, mep_analyze_prologue): Ditto.
534 * objfiles.c (qsort_cmp): Ditto.
535 * prologue-value.c (pv_is_identical): Ditto.
536 * record.c (record_get_loc): Ditto.
537 * value.c (value_static_field): Ditto.
538 * xtensa-tdep.c (call0_track_op): Ditto.
540 2010-08-18 Tom Tromey <tromey@redhat.com>
543 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
544 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
545 name-copying lower. Document exception behavior.
546 * completer.c (expression_completer): Catch exceptions from
547 parse_field_expression.
549 2010-08-18 Pedro Alves <pedro@codesourcery.com>
553 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
554 workaround on core files.
555 (try_thread_db_load_1): Don't try enabling thread event reporting
557 (thread_db_load): Allow thread_db on core files.
558 (attach_thread): Don't check thread signals on core files, nor try
559 really attaching to the thread, nor enabling thread event event
561 (thread_db_detach): Don't try disabing thread event reporting or
562 removing thread event breakpoints when debugging a core file.
563 (find_new_threads_callback): Don't try enabling thread event
564 reporting on core files.
565 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
566 debugging a core file.
567 (thread_db_find_new_threads): Don't update thread
568 cores (processors) when debugging a core (dump).
570 2010-08-18 Pedro Alves <pedro@codesourcery.com>
574 * corelow.c (add_to_thread_list): Don't use
575 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
576 (get_core_register_section): Don't use
577 gdbarch_core_reg_section_encodes_pid.
579 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
580 * gdbarch.h, gdbarch.c: Regenerate.
581 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
582 gdbarch_core_reg_section_encodes_pid.
583 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
584 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
585 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
587 2010-08-18 Yao Qi <yao@codesourcery.com>
589 * MAINTAINERS : Add myself under Write After Approval.
591 2010-08-17 Tom Tromey <tromey@redhat.com>
593 * NEWS: Mention template parameter support.
595 2010-08-17 Pedro Alves <pedro@codesourcery.com>
599 * breakpoint.c (decref_bp_location): Assert the reference count is
602 2010-08-17 Pedro Alves <pedro@codesourcery.com>
606 * breakpoint.c (breakpoint_init_inferior): Decrement the
607 location's reference count instead of deleting right away.
608 (bpstat_free): Decrement the location's reference count. Make
610 (bpstat_copy): Increment the location's reference count.
611 (bpstat_find_breakpoint): Adjust.
612 (bpstat_num): Adjust.
613 (print_it_typical): Adjust. Use the breakpoint pointer in the
614 bpstat instead of the location's owner.
615 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
616 Adjust to record the location's owner in the bpstat.
617 (watchpoint_check): Use the breakpoint pointer in the bpstat
618 instead of the location's owner.
619 (bpstat_check_breakpoint_conditions): Don't handle
620 bp_watchpoint_scope here. Use the breakpoint pointer in the
621 bpstat instead of the location's owner.
622 (bpstat_stop_status): Defer inferior function calls to after
623 building the bpstat list. Handle bp_watchpoint_scope here. Use
624 the breakpoint pointer in the bpstat instead of the location's
626 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
627 the location's owner.
628 (free_bp_location): Don't walk bpstats clearing locations.
629 (incref_bp_location): New.
630 (decref_bp_location): New.
631 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
632 instead of the location's owner.
633 (update_global_location_list): Clear the location's owner, and
634 decrement the location's reference count instead of deleting it
636 (breakpoint_retire_moribund): Decrement the location's reference
637 count instead of deleting it right away.
638 (bpstat_remove_bp_location): Delete.
639 (bpstat_remove_breakpoint): New.
640 (bpstat_remove_bp_location_callback): Delete.
641 (bpstat_remove_breakpoint_callback): New.
642 (delete_breakpoint): Iterate over all threads' stop_bpstat's
643 clearing references to the breakpoint that is being deleted.
645 * breakpoint.h (struct bp_location) <refc>: New field.
646 <owner>: Update comments.
647 (bpstat_free): Delete declaration.
648 (struct bpstats): Change the type of the breakpoint_at field to
649 struct breakpoint point, from struct bp_location pointer. Add new
650 field bp_location_at.
652 2010-08-16 Tom Tromey <tromey@redhat.com>
656 2010-08-16 Tom Tromey <tromey@redhat.com>
658 * NEWS: Mention watch -location.
660 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
662 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
663 EXP_STRING_REPARSE to EXP_STRING.
664 (watch_command_1): Set also EXP_STRING_REPARSE.
665 (delete_breakpoint): Free also EXP_STRING_REPARSE.
666 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
667 Update comment for exp_string.
669 2010-08-16 Tom Tromey <tromey@redhat.com>
671 * value.c (release_value): Clear 'next' pointer.
672 * breakpoint.c (watch_command_1): Add 'just_location' argument.
673 (watch_command_wrapper): Update.
674 (watch_maybe_just_location): New function.
675 (watch_command): Update.
676 (rwatch_command_wrapper): Update.
677 (rwatch_command): Update.
678 (awatch_command_wrapper): Update.
679 (awatch_command): Update.
680 (check_for_argument): New function.
681 (_initialize_breakpoint): Update help text.
683 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
685 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
686 typedef'ed function types correctly.
688 2010-08-13 Tom Tromey <tromey@redhat.com>
690 * python/python-internal.h (gdbpy_get_hook_function): Don't
693 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
695 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
698 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
700 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
701 the format strings to be compatible with Python 2.4.
703 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
705 Easier and more stubborn MI memory read commands.
707 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
708 and data-write-memory-bytes.
709 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
710 (mi_cmd_data_write_memory_bytes): New.
711 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
712 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
714 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
715 * target.c (target_read_until_error): Remove.
716 (read_whatever_is_readable, free_memory_read_result_vector)
717 (read_memory_robust): New.
718 * target.h (target_read_until_error): Remove.
719 (struct memory_read_result, free_memory_read_result_vector)
720 (read_memory_robust): New.
722 2010-08-13 Hui Zhu <teawater@gmail.com>
724 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
725 (read_comp_unit): Initialize back_to.
727 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
728 Pedro Alves <pedro@codesourcery.com>
730 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
731 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
732 (struct partial_die_info) <has_template_arguments>: New field.
733 <num_attrs>: Change type to unsigned char.
734 <building_fullname>: New field.
735 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
736 allocate a CU if we don't have one already. Add a cleanup for the
738 (partial_die_full_name): Handle template arguments not in
740 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
741 (load_full_comp_unit): Only allocate a CU if we don't have one
743 (do_ui_file_peek_last): New.
744 (dwarf2_compute_name): Handle template parameters not in
746 (read_comp_unit): Read and free abbrevs if not read yet.
747 (load_partial_dies): Handle template arguments not in DW_AT_name.
748 (find_partial_die): If we have a CU, but no a partial dies yet,
750 (dwarf2_const_value_attr): New, abstracted out from
752 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
753 dwarf2_const_value_attr.
754 (determine_prefix): Detect and break loops created by RCVT's debug
756 (maybe_queue_comp_unit): Bail out early if reading partial
758 (follow_die_offset): Load full CU if we have no dies.
759 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
760 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
762 2010-08-11 Tom Tromey <tromey@redhat.com>
763 Phil Muldoon <pmuldoon@redhat.com>
765 * python/python.c (gdbpy_run_events): New function.
766 (gdbpy_post_event): Likewise.
767 (gdbpy_initialize_events): Likewise.
768 (_initialize_python): Call gdbpy_initialize_events.
770 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
772 * gdb/valarith.c (vector_binop): New function.
773 (scalar_binop): Likewise.
774 (value_binop): Call scalar_binop or vector_binop depending on the types.
775 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
776 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
778 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
780 2010-08-11 Brad Roberts <braddr@puremagic.com>
782 * d-lang.c (extract_identifiers): Handle multiple digits.
784 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
787 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
788 Rename to dummy_frame_unwind.
789 (dummy_frame_unwind): Remove.
790 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
791 * frame-unwind.c (frame_unwind_init): Use address of
792 dummy_frame_unwind and inline_frame_unwind.
793 * frame.c (create_sentinel_frame): Use address of
794 sentinel_frame_unwind.
795 * inline-frame.c (inline_frame_unwinder): Rename to
797 (inline_frame_unwind): Remove.
798 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
799 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
800 sentinel_frame_unwind.
801 (sentinel_frame_unwind): Remove.
802 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
805 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
808 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
809 and returned value. New comment from frame-unwind.h.
810 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
812 * frame.c (get_frame_id, frame_unwind_register_value)
813 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
814 (get_frame_type, frame_unwind_arch): Do not use the return value of
815 frame_unwind_find_by_frame.
817 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
818 Thiago Jung Bauermann <bauerman@br.ibm.com>
819 Tom Tromey <tromey@redhat.com>
821 * python/python.c (gdbpy_solib_address): New function.
822 (gdbpy_decode_line): Likewise.
824 2010-08-10 Tom Tromey <tromey@redhat.com>
826 Revert gdb-add-index addition:
827 * Makefile.in (install-only): Don't install gdb-add-index.
828 * gdb-add-index.sh: Remove.
830 2010-08-09 Kevin Buettner <kevinb@redhat.com>
832 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
833 `target_has_execution' check with `to_has_memory' check.
834 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
835 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
836 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
838 2010-08-09 Kevin Buettner <kevinb@redhat.com>
840 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
841 (resume_siggnal, resume_step): Move these static globals...
842 (struct sim_inferior_data): ...into this new struct.
843 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
845 (gdb_callback, callbacks_initialized): Move these globals to
846 a point earlier in the file.
847 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
848 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
849 (gdbsim_close_inferior, gdbsim_resume_inferior)
850 (gdbsim_stop_inferior): New functions.
851 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
853 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
854 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
855 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
856 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
857 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
858 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
859 new local variable `sim_data' in each of these functions. Use
860 `sim_data' to reference former globals `program_loaded',
861 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
863 (gdbsim_open): Remove local variable `argv'. Put results of call
864 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
865 make a cleanup for it. Free it though when a sim instance cannot
867 (gdbsim_close): Free sim_argv and null it out as appropriate.
868 Close sim instances in all inferiors.
869 (gdbsim_cntrl_c): Stop all inferiors.
871 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
873 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
875 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
876 function after symbol construction is complete.
877 Do the same for template symbol addition to template_symbols list.
879 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
881 * symtab.c (symbol_get_demangled_name): Remove assertion and
882 return NULL when language_specific.cplus_specific is not initialized.
883 * stabsread.c (define_symbol): Set the name before calling
884 cp_scan_for_anonymous_namespaces.
886 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
888 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
890 (symbol_init_language_specific): Renamed to symbol_set_language.
891 * symtab.c (symbol_init_language_specific): Removed redundant check
893 Renamed to symbol_set_language.
894 * stabsread.c (define_symbol): Updated.
895 (read_enum_type): Updated
896 * psymtab.c (add_psymbol_to_bcache): Updated.
897 * minsyms.c (install_minimal_symbols): Updated.
898 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
899 SYMBOL_LANGUAGE to set the language.
900 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
901 * mdebugread.c (new_symbol): Ditto.
902 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
903 * dwarf2read.c (new_symbol_full): Ditto.
904 * jv-lang.c (add_class_symbol): Ditto.
906 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
908 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
909 (make_cleanup_restore_page_info)
910 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
911 * gdbcmd.h (execute_command_to_string): New declaration.
912 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
913 (make_cleanup_restore_ui_file): Move to utils.c
914 (execute_gdb_command) <to_string>: Move ...
915 * top.c (execute_command_to_string): ... here. Call
916 set_batch_flag_and_make_cleanup_restore_page_info.
917 * utils.c (make_cleanup_restore_integer): New source file blank line.
918 (make_cleanup_restore_uinteger): New.
919 (struct restore_ui_file_closure, do_restore_ui_file)
920 (make_cleanup_restore_ui_file): Move here from python/python.c.
921 (init_page_info) <batch_flag>
922 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
923 (set_batch_flag_and_make_cleanup_restore_page_info): New.
925 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
927 * thread.c (add_thread_silent): Use null_ptid instead of
928 minus_one_ptid while getting rid of stale inferior_ptid.
930 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
932 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
933 Throughout, call read_encoded_value with ptr_size rather than addr_size.
934 (decode_frame_entry_1): Remove redundant setting of
935 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
936 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
937 on examined frame section. Add comment to explain why.
938 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
939 comment to explain usage.
940 * gdbarch.c: Regenerate.
941 * gdbarch.h: Regenerate.
943 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
945 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
948 * varobj.c (varobj_create): Move variables fi, old_fi and block to
951 2010-08-05 Pedro Alves <pedro@codesourcery.com>
953 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
954 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
955 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
956 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
957 linux-tdep.o to gdb_target_obs.
959 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
961 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
964 2010-08-05 Hui Zhu <teawater@gmail.com>
966 * mips-linux-tdep.c(regset.h): New include.
967 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
968 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
969 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
970 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
971 mips_linux_regset_from_core_section): New functions.
972 (fetch_core_registers, regset_core_fns): Deleted.
973 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
974 Deleted regset_core_fns.
975 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
976 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
977 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
980 2010-08-04 Pedro Alves <pedro@codesourcery.com>
982 * s390-tdep.c: Include linux-tdep.h.
983 (s390_gdbarch_init): Call linux_init_abi.
985 2010-08-04 Pedro Alves <pedro@codesourcery.com>
987 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
988 instead of printing "Thread" here.
989 * linux-tdep.c: Include inferior.h.
990 (linux_core_pid_to_str): New.
991 (linux_init_abi): New.
992 * linux-tdep.h (linux_init_abi): Declare.
993 * alpha-linux-tdep.c: Include linux-tdep.h.
994 (alpha_linux_init_abi): Call linux_init_abi.
995 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
996 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
997 * frv-linux-tdep.c: Include linux-tdep.h
998 (frv_linux_init_abi): Call linux_init_abi.
999 * hppa-linux-tdep.c: Include linux-tdep.h
1000 (hppa_linux_init_abi): Call linux_init_abi.
1001 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
1002 * ia64-linux-tdep.c: Include linux-tdep.h.
1003 (ia64_linux_init_abi): Call linux_init_abi.
1004 * m32r-linux-tdep.c: Include linux-tdep.h.
1005 (m32r_linux_init_abi): Call linux_init_abi.
1006 * m68klinux-tdep.c: Include linux-tdep.h.
1007 (m68k_linux_init_abi): Call linux_init_abi.
1008 * microblaze-linux-tdep.c: Include linux-tdep.h.
1009 (microblaze_linux_init_abi): Call linux_init_abi.
1010 * mips-linux-tdep.c: Include linux-tdep.h.
1011 (mips_linux_init_abi): Call linux_init_abi.
1012 * mn10300-linux-tdep.c: Include linux-tdep.h.
1013 (am33_linux_init_osabi): Call linux_init_abi. Rename the
1014 'gdbinfo' parameter to 'info'.
1015 * ppc-linux-tdep.c: Include linux-tdep.h.
1016 (ppc_linux_init_abi): Call linux_init_abi.
1017 * sh-linux-tdep.c: Include linux-tdep.h.
1018 (sh_linux_init_abi): Call linux_init_abi.
1019 * sparc-linux-tdep.c: Include linux-tdep.h.
1020 (sparc32_linux_init_abi): Call linux_init_abi.
1021 * sparc64-linux-tdep.c: Include linux-tdep.h.
1022 (sparc64_linux_init_abi): Call linux_init_abi.
1023 * xtensa-linux-tdep.c: Include linux-tdep.h.
1024 (xtensa_linux_init_abi): Call linux_init_abi.
1025 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
1026 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
1029 2010-08-03 Doug Evans <dje@google.com>
1031 * breakpoint.c (bpdisp_text): Constify bpdisps.
1032 * solib-svr4.c (solib_break_names): Constify.
1033 (bkpt_names, main_name_list): Constify.
1034 (match_main): Constify soname arg.
1035 (bfd_lookup_symbol): Remove unnecessary forward decl.
1036 Constify symname arg.
1037 (enable_break): Constify bkpt_namep.
1038 * symtab.c (search_symbols): Constify types, types2, types3, types4.
1039 (symtab_symbol_info): Constify classnames.
1041 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
1043 * NEWS: Document Python value inferior function calls.
1045 2010-08-02 Doug Evans <dje@google.com>
1047 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
1049 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1051 * linux-thread-db.c (libthread_db_debug): New variable.
1052 (thread_db_find_new_threads_silently): Control verbosity with it.
1053 (try_thread_db_load_1, try_thread_db_load): Likewise.
1054 (find_new_threads_once): Likewise.
1055 (_initialize_thread_db): Set/show it.
1057 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1059 * common/signals.c (signals): Move the content to signals.def.
1060 Include it. Remove the INDENT comments.
1062 2010-07-30 Tom Tromey <tromey@redhat.com>
1064 * Makefile.in (install-only): Install gdb-add-index.
1065 * gdb-add-index.sh: New file.
1067 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
1069 * MAINTAINERS: Add myself for write after approval privileges.
1071 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1073 * symfile.c (addr_section_name): New function.
1074 (addrs_section_compar): Use it.
1075 (addr_info_make_relative): Use it. Move variable sect_name into a more
1076 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
1078 2010-07-30 Tom Tromey <tromey@redhat.com>
1080 * configure: Rebuild.
1081 * configure.ac: Add missing case for Python 2.7.
1083 2010-07-29 DJ Delorie <dj@redhat.com>
1085 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
1088 2010-07-29 Pedro Alves <pedro@codesourcery.com>
1090 * PROBLEMS: Remove mention of all problems.
1092 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1095 * configure.ac: Check for wresize.
1096 * configure, config.in: Regenerate.
1097 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
1100 2010-07-28 Tom Tromey <tromey@redhat.com>
1103 * python/py-type.c (typy_legacy_template_argument): New function,
1104 extracted from typy_template_argument.
1105 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
1108 2010-07-28 Oleg Nesterov <oleg@redhat.com>
1110 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
1112 2010-07-27 Tom Tromey <tromey@redhat.com>
1114 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
1116 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
1118 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
1119 handling DW_AT_object_pointer, and workaround GCC PR 43053.
1121 2010-07-28 Tom Tromey <tromey@redhat.com>
1123 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
1125 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1127 * remote.c (remote_download_tracepoint): Add missing gettext markup.
1128 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
1130 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1132 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
1133 down, just before the block that parse the breakpoint addr_string.
1135 2010-07-28 Tom Tromey <tromey@redhat.com>
1138 * symfile.c (reread_symbols): Clear template_symbols.
1139 * symtab.h (struct symbol) <is_cplus_template_function>: New
1141 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
1142 (struct template_symbol): New.
1143 * symtab.c (lookup_symbol_aux_local): Use
1144 cp_lookup_symbol_imports_or_template.
1145 * objfiles.h (struct objfile) <template_symbols>: New field.
1146 * objfiles.c (relocate_one_symbol): New function.
1147 (objfile_relocate1): Use it. Relocate isolated symbols.
1148 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
1149 template_arguments>: New fields.
1150 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
1151 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
1152 (TYPE_TEMPLATE_ARGUMENT): Likewise.
1153 (lookup_typename): Update.
1154 * gdbtypes.c (lookup_typename): Constify "block" argument.
1155 * dwarf2read.c: Include vec.h.
1156 (symbolp): New typedef.
1157 (read_func_scope): Read template arguments. Allocate a
1158 template_symbol when needed.
1159 (read_structure_type): Read template arguments.
1160 (new_symbol_full): New function, from new_symbol. Handle
1161 DW_TAG_template_type_param and DW_TAG_template_value_param.
1162 (new_symbol): Rewrite as wrapper.
1163 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
1164 * cp-namespace.c: Include language.h.
1165 (search_symbol_list): New function.
1166 (cp_lookup_symbol_imports_or_template): Likewise.
1168 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1170 * tui/tui-win.c (make_visible_with_new_height): Resize and move
1171 the command window to the new size and position.
1173 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1175 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
1178 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1180 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
1181 after a detecting a resize.
1182 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
1185 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1187 * configure.ac: Check for resize_term.
1188 * configure, config.in: Regenerate.
1190 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1192 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
1194 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1196 * dwarf2read.c (read_string): Rename to ...
1197 (read_direct_string): ... this.
1198 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
1199 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
1201 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1203 * linux-nat.c (linux_nat_lp_status_is_event): New function.
1204 (count_events_callback, select_event_lwp_callback)
1205 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
1207 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1209 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
1210 (_initialize_ia64_linux_nat): Install it.
1211 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
1212 (linux_nat_set_status_is_event): New.
1213 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
1214 cancel_breakpoints_callback, linux_nat_filter_event)
1215 (linux_nat_wait_1): Use linux_nat_status_is_event.
1216 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
1218 2010-07-27 Tom Tromey <tromey@redhat.com>
1220 * NEWS: Mention labels, .gdb_index.
1222 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
1224 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
1225 "start,+length" form of arguments.
1226 * NEWS: Add "Changed commands" (disassemble) section for "Changes
1227 since GDB 7.1"; and merge two separated paragraphs of disassemble
1228 description in "Changes in GDB 7.0".
1230 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1232 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
1233 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
1234 (fputs_maybe_filtered): Do not do filtering also on
1235 ! INPUT_FROM_TERMINAL_P.
1237 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1239 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
1242 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
1244 * python/py-value.c (valpy_call): New Function.
1246 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
1248 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
1249 types_list_elements variables.
1251 2010-07-26 Tom Tromey <tromey@redhat.com>
1253 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
1254 TLS with DW_OP_const4u or DW_OP_const8u.
1256 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1258 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
1259 VSX registers contents.
1261 2010-07-26 Jerome Guitton <guitton@adacore.com>
1263 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
1264 its adress is null. Add comment to explain why.
1265 (new_symbol): Ditto.
1267 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1269 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
1270 the host signal first.
1272 2010-07-23 Tom Tromey <tromey@redhat.com>
1274 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
1275 type_comp_units>: New fields.
1276 (dw2_get_cu): New function.
1277 (create_cus_from_index): Remove unused argument.
1278 (create_signatured_type_hash_from_index): New function.
1279 (create_addrmap_from_index): Update.
1280 (dwarf2_read_index): Handle version 2.
1281 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
1282 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
1283 (dw2_print_stats, dw2_expand_all_symtabs)
1284 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
1285 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
1286 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
1287 (allocate_signatured_type_hash_table): New function.
1288 (add_signatured_type_cu_to_list): Likewise.
1289 (create_debug_types_hash_table): Use them. Set type_comp_units.
1290 (read_signatured_type): Ensure section data is available.
1291 (add_address_entry): Don't record empty ranges.
1292 (struct signatured_type_index_data): New.
1293 (write_one_signatured_type): New function.
1294 (write_psymtabs_to_index): Write type CUs.
1295 (save_gdb_index_command): Update comment.
1296 (process_type_comp_unit): Move inititalization of
1298 (create_debug_types_hash_table): ... here.
1300 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1302 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
1303 cleanup and generating of gdb script to it.
1304 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
1305 and terminal size. Convert $tmpfile to a series of -ex-es.
1307 2010-07-23 Keith Seitz <keiths@redhat.com>
1309 * symtab.c (basic_lookup_transparent_type): Call pre-expand
1310 hook for STATIC_BLOCK types, too.
1312 2010-07-23 Keith Seitz <keiths@redhat.com>
1314 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
1315 and vector definition.
1317 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1319 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
1321 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1323 * dwarf2read.c: Include completer.h.
1324 (save_gdb_index_command): Use matching usage command name.
1325 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
1326 Set filename_completer for it.
1328 2010-07-22 Tom Tromey <tromey@redhat.com>
1330 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
1331 type signature's per-CU data.
1333 2010-07-22 Pedro Alves <pedro@codesourcery.com>
1335 * NEWS: Mention target reported shared libraries support by
1338 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1343 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1344 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1345 and DW_TAG_volatile_type.
1346 (new_symbol): Likewise.
1348 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
1350 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
1351 function symbols before overload resolution.
1353 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1355 * breakpoint.c (bptype_string): New, abstracted out from
1356 print_one_breakpoint_location.
1357 (print_one_breakpoint_location): Adjust.
1358 (breakpoint_1): Adjust the type column width dynamically.
1360 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1362 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1363 a gdb_assert call, new comment.
1365 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1367 * linux-nat.c (linux_handle_extended_wait): Handle case when
1368 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
1370 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1373 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
1374 linux_nat_wait_1. Use always LP->STATUS afterwards.
1376 2010-07-20 Hui Zhu <teawater@gmail.com>
1378 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
1379 (inf_ptrace_attach): Ditto.
1381 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1383 Make core files the process_stratum.
1384 * corefile.c (core_target): New variable.
1385 (core_file_command): Remove variable t, use core_target.
1386 * corelow.c (core_ops): Make it static.
1387 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
1388 * defs.h (make_cleanup_unpush_target): New prototype.
1389 * gdbarch.h: Regenerate.
1390 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
1391 * gdbcore.h (core_target): New declaration.
1392 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
1393 variables ops_already_pushed and back_to. Use push_target,
1394 make_cleanup_unpush_target and discard_cleanups calls.
1395 * record.c (record_open): Replace core_stratum by a core_bfd check.
1396 * target.c (target_is_pushed): New function.
1397 (find_core_target): Remove.
1398 * target.h (enum strata) <core_stratum>: Remove.
1399 (target_is_pushed): New declaration.
1400 (find_core_target): Remove declaration.
1401 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
1402 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
1404 2010-07-19 Hui Zhu <teawater@gmail.com>
1406 * breakpoint.c (single_step_breakpoints_inserted): New
1408 * breakpoint.h (single_step_breakpoints_inserted): Extern.
1409 * infrun.c (maybe_software_singlestep): Add check code.
1410 * record.c (record_resume): Add code for software single step.
1411 (record_wait): Ditto.
1413 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1415 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
1416 a more inner block. Remove its unused declaration initializer.
1418 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
1420 * NEWS: Mention support for the new ptrace interface and hardware
1421 accelerated watchpoint conditions on powerpc-linux.
1423 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
1425 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
1426 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
1427 and host_address_to_string() and %s for pointers.
1428 (debug_to_remove_breakpoint): Likewise.
1429 (debug_to_region_ok_for_hw_watchpoint): Likewise.
1430 (debug_to_can_accel_watchpoint_condition): Likewise.
1431 (debug_to_stopped_data_address): Likewise.
1432 (debug_to_watchpoint_addr_within_range): Likewise.
1433 (debug_to_insert_hw_breakpoint): Likewise.
1434 (debug_to_remove_hw_breakpoint): Likewise.
1435 (debug_to_insert_watchpoint): Likewise.
1436 (debug_to_remove_watchpoint): Likewise.
1438 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1440 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
1442 (cplus_specific): New struct.
1443 * symtab.c (symbol_set_demangled_name): Updated.
1444 Use cplus_specific for cplus symbols.
1445 (symbol_get_demangled_name): Retrive the name from the cplus_specific
1446 struct for cplus symbols.
1447 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
1448 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
1449 * symtab.c (symbol_init_cplus_specific): New function.
1451 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1453 * symtab.h (symbol_set_demangled_name): New function.
1454 (symbol_get_demangled_name): New function.
1455 * symtab.c (symbol_set_demangled_name): New function.
1456 (symbol_get_demangled_name): New function.
1457 (symbol_init_language_specific): Use demangled_name setter and getter.
1458 (symbol_set_names): Ditto.
1459 (symbol_natural_name): Ditto.
1460 (symbol_demangled_name): Ditto.
1461 * dwarf2read.c (new_symbol): Ditto.
1463 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1465 * symtab.h: Renamed cplus_specific to mangled_lang.
1466 * symtab.c (symbol_init_language_specific): Updated.
1467 (symbol_set_names): Updated.
1468 (symbol_natural_name): Updated.
1469 (symbol_demangled_name): Updated.
1470 * ada-lang.c (ada_decode_symbol): Updated.
1471 * dwarf2read.c (new_symbol): Updated.
1473 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1475 * valops.c (value_assign): Do not call to value_coerce_to_target.
1476 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
1478 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1480 * MAINTAINERS: Add myself for write after approval privileges.
1482 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
1484 * c-valprint.c (c_val_print): Add embedded_offset to address in
1485 call to val_print_array_elements.
1487 2010-07-13 Tom Tromey <tromey@redhat.com>
1489 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
1491 2010-07-13 Tom Tromey <tromey@redhat.com>
1493 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
1496 2010-07-13 Tom Tromey <tromey@redhat.com>
1498 * symfile.c (set_initial_language): Update.
1499 (deduce_language_from_filename): Argument type now const.
1500 * symtab.h (find_main_filename): Update.
1501 (deduce_language_from_filename): Update.
1502 * symtab.c (find_main_filename): Make result const.
1503 * dwarf2read.c (dw2_find_symbol_file): Change return type.
1504 * psymtab.c (find_symbol_file_from_partial): Change return type.
1505 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1508 2010-07-13 Tom Tromey <tromey@redhat.com>
1510 * breakpoint.c (save_cmdlist): No longer static.
1511 * gdbcmd.h (save_cmdlist): Declare.
1512 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
1513 OBJF_READNOW on objfile if readnow_symbol_files.
1514 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
1515 (elf_sym_fns_gdb_index): New global.
1516 * dwarf2read.c: Include exceptions.h.
1518 (struct mapped_index): New.
1519 (dwarf2_per_cu_data_ptr): New typedef.
1520 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
1522 (GDB_INDEX_SECTION): New define.
1523 (struct dwarf2_per_cu_quick_data): New.
1524 (struct dwarf2_per_cu_data) <objfile>: New field.
1527 (byte_swap): New function.
1528 (MAYBE_SWAP): New macro.
1529 (INDEX_SUFFIX): New macro.
1530 (dw2_do_instantiate_symtab): New function.
1531 (dw2_instantiate_symtab): Likewise.
1532 (create_cus_from_index): Likewise.
1533 (create_addrmap_from_index): Likewise.
1534 (mapped_index_string_hash): Likewise.
1535 (find_slot_in_mapped_hash): Likewise.
1536 (dwarf2_read_index): Likewise.
1537 (dw2_setup): Likewise.
1538 (dw2_require_line_header): Likewise.
1539 (dw2_require_full_path): Likewise.
1540 (dw2_find_last_source_symtab): Likewise.
1541 (dw2_forget_cached_source_info): Likewise.
1542 (dw2_lookup_symtab): Likewise.
1543 (dw2_lookup_symbol): Likewise.
1544 (dw2_do_expand_symtabs_matching): Likewise.
1545 (dw2_pre_expand_symtabs_matching): Likewise.
1546 (dw2_print_stats): Likewise.
1547 (dw2_dump): Likewise.
1548 (dw2_relocate): Likewise.
1549 (dw2_expand_symtabs_for_function): Likewise.
1550 (dw2_expand_all_symtabs): Likewise.
1551 (dw2_expand_symtabs_with_filename): Likewise.
1552 (dw2_find_symbol_file): Likewise.
1553 (dw2_map_ada_symtabs): Likewise.
1554 (dw2_expand_symtabs_matching): Likewise.
1555 (dw2_find_pc_sect_symtab): Likewise.
1556 (dw2_map_symbol_names): Likewise.
1557 (dw2_map_symbol_filenames): Likewise.
1558 (dw2_has_symbols): Likewise.
1559 (dwarf2_gdb_index_functions): New global.
1560 (dwarf2_initialize_objfile): New function.
1561 (process_psymtab_comp_unit): Update.
1562 (add_partial_subprogram): Likewise.
1563 (dwarf2_psymtab_to_symtab): Likewise.
1564 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
1565 (process_full_comp_unit): Update.
1566 (find_file_and_directory): New function.
1567 (read_file_scope): Use find_file_and_directory.
1568 (dwarf2_per_cu_objfile): Update.
1569 (dwarf2_per_cu_addr_size): Update.
1570 (dwarf2_per_cu_offset_size): Update.
1571 (dwarf2_free_objfile): Free the index, if needed.
1572 (dwarf2_per_objfile_free): Unmap the index, if needed.
1573 (struct strtab_entry): New.
1574 (hash_strtab_entry): New function.
1575 (eq_strtab_entry): Likewise.
1576 (create_strtab): Likewise.
1577 (add_string): Likewise.
1578 (struct symtab_index_entry): New.
1579 (struct mapped_symtab): New.
1580 (hash_symtab_entry): New function.
1581 (eq_symtab_entry): Likewise.
1582 (delete_symtab_entry): Likewise.
1583 (create_index_table): Likewise.
1584 (create_mapped_symtab): Likewise.
1585 (cleanup_mapped_symtab): Likewise.
1586 (find_slot): Likewise.
1587 (hash_expand): Likewise.
1588 (add_index_entry): Likewise.
1589 (add_indices_to_cpool): Likewise.
1590 (write_hash_table): Likewise.
1591 (add_address_entry): Likewise.
1592 (write_psymbols): Likewise.
1593 (write_obstack): Likewise.
1594 (unlink_if_set): Likewise.
1595 (write_psymtabs_to_index): Likewise.
1596 (save_gdb_index_command): Likewise.
1597 (_initialize_dwarf2_read): Install "save gdb-index"
1599 (create_all_comp_units): Initialize 'objfile' field of CU.
1600 (dwarf2_locate_sections): Check for .gdb_index.
1601 * psymtab.h (dwarf2_gdb_index_functions): Declare.
1602 * symfile.h (dwarf2_initialize_objfile): Declare.
1604 2010-07-13 Tom Tromey <tromey@redhat.com>
1606 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
1607 (basic_lookup_transparent_type): Likewise.
1608 * symfile.h (struct quick_symbol_functions)
1609 <pre_expand_symtabs_matching>: New field.
1610 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
1611 (psym_functions): Update.
1613 2010-07-13 Tom Tromey <tromey@redhat.com>
1615 PR breakpoints/8357:
1616 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
1617 * linespec.c (decode_line_1): Update comment. Call decode_label.
1618 (decode_label): New function.
1619 (symbol_found): Handle LOC_LABEL.
1620 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
1621 domain. Call add_symbol_to_list.
1623 2010-07-13 Tom Tromey <tromey@redhat.com>
1625 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
1626 * dwarf2loc.c (find_location_expression): Use
1627 dwarf2_per_cu_text_offset.
1628 (dwarf2_evaluate_loc_desc): Likewise.
1629 (dwarf2_loc_desc_needs_frame): Likewise.
1630 (compile_dwarf_to_ax): Likewise.
1631 (loclist_describe_location): Likewise.
1632 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
1633 (dwarf2_per_cu_objfile): Update comment.
1635 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1637 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
1638 * p-lang.c (pascal_printstr): Likewise.
1640 2010-07-09 Tom Tromey <tromey@redhat.com>
1642 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
1643 'hint' if it is NULL.
1645 2010-07-09 Hui Zhu <teawater@gmail.com>
1647 * source.c (print_source_lines_base): Add check for noprint.
1649 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1651 * python/python-config.py: Resync with Python 2.7 version of this
1654 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1656 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
1658 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1660 * NEWS: Create a new section for the next release branch.
1661 Rename the section of the current branch, now that it has
1664 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1666 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
1667 * version.in: Bump version to 7.2.50.20100707-cvs.
1669 2010-07-07 Tom Tromey <tromey@redhat.com>
1671 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
1672 LOC_COMPUTED symbol.
1673 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
1674 (dwarf2_loc_desc_needs_frame): Likewise.
1675 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
1676 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
1677 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
1678 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
1680 (struct dwarf2_frame_cache) <text_offset>: New field.
1681 (dwarf2_frame_cache): Set new field.
1682 (dwarf2_frame_prev_register): Update.
1683 (dwarf2_frame_sniffer): Update.
1684 (dwarf2_frame_base_sniffer): Update.
1685 (dwarf2_frame_find_fde): Add 'out_offset' argument.
1687 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1688 Thiago Jung Bauermann <bauerman@br.ibm.com>
1690 Support for hw accelerated condition watchpoints in booke powerpc.
1692 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
1693 and move to eval.c. Change callers.
1694 (insert_bp_location): Pass watchpoint condition in
1695 target_insert_watchpoint.
1696 (remove_breakpoint_1) Pass watchpoint condition in
1697 target_remove_watchpoint.
1698 (watchpoint_locations_match): Call
1699 target_can_accel_watchpoint_condition.
1700 * eval.c: Include wrapper.h.
1701 (fetch_subexp_value): Moved from breakpoint.c.
1702 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
1704 (can_use_watchpoint_cond_accel): New function.
1705 (calculate_dvc): Likewise.
1706 (num_memory_accesses): Likewise.
1707 (check_condition): Likewise.
1708 (ppc_linux_can_accel_watchpoint_condition): Likewise
1709 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
1710 check_condition and calculate_dvc.
1711 (ppc_linux_remove_watchpoint): Likewise.
1712 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
1713 ppc_linux_can_accel_watchpoint_condition
1714 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
1716 (debug_to_remove_watchpoint): Likewise.
1717 (debug_to_can_accel_watchpoint_condition): New function.
1718 (update_current_target): Set to_can_accel_watchpoint_condition.
1719 (setup_target_debug): Set to_can_accel_watchpoint_condition.
1720 * target.h: Add opaque declaration for struct expression.
1721 (struct target_ops) <to_insert_watchpoint>,
1722 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
1723 <to_can_accel_watchpoint_condition>: New member.
1724 condition. Update all callers and implementations.
1725 (target_can_accel_watchpoint_condition): New macro.
1726 * value.c (free_value_chain): New function.
1727 * value.h (fetch_subexp_value): New prototype.
1728 (free_value_chain): Likewise.
1730 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
1732 * linux-nat.c (linux_nat_do_thread_registers): Use section size
1733 from gdbarch_core_regset_sections also for .reg if present.
1735 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
1736 section size for .reg.
1737 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1738 (ppc_linux_vmx_regset_sections): Likewise.
1739 (ppc_linux_fp_regset_sections): Likewise.
1740 (ppc64_linux_vsx_regset_sections): New variable.
1741 (ppc64_linux_vmx_regset_sections): Likewise.
1742 (ppc64_linux_fp_regset_sections): Likewise.
1743 (ppc_linux_init_abi): Install core_regset_section lists appropriate
1744 for current word size.
1746 2010-07-06 Joel Brobecker <brobecker@adacore.com>
1748 * server.c (myresume): Make static.
1750 2010-07-06 Tom Tromey <tromey@redhat.com>
1752 * configure, config.in: Rebuild.
1753 * configure.ac (HAVE_LIBPYTHON2_7): New define.
1754 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
1756 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1758 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
1761 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
1763 * gdbtypes.h (floatformats_ieee_half): Add declaration.
1764 * gdbtypes.c (floatformats_ieee_half): New variable.
1765 * doublest.c (floatformat_from_length): Set format to
1766 gdbarch_half_format if length matches.
1767 * gdbarch.sh (half_bit): New architecture method.
1768 (half_format): Likewise.
1769 * gdbarch.h: Regenerate.
1770 * gdbarch.c: Likewise.
1772 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1773 Joel Brobecker <brobecker@adacore.com>
1775 Fix re-run of PIE executable, PR shlibs/11776.
1776 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
1777 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
1779 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1780 Joel Brobecker <brobecker@adacore.com>
1782 * auxv.c (memory_xfer_auxv): Update attach comment.
1783 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
1784 svr4_relocate_main_executable.
1785 (svr4_solib_create_inferior_hook): Make the call to
1786 svr4_relocate_main_executable unconditional.
1788 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1789 Joel Brobecker <brobecker@adacore.com>
1791 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
1793 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1794 Joel Brobecker <brobecker@adacore.com>
1796 Fix attaching to PIEs prelinked on the disk after the process was
1798 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
1799 Verify it against bfd_get_arch_size. Try to match arbitrary
1800 displacement for the phdrs comparison.
1802 2010-07-02 Tom Tromey <tromey@redhat.com>
1805 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
1806 value as optimized-out.
1808 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1809 Thiago Jung Bauermann <bauerman@br.ibm.com>
1811 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
1812 represent?" question in comment. Change comment to a proper sentence.
1814 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
1816 * c-valprint.c (c_val_print): Fix printing of character vectors.
1818 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1820 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
1821 create_breakpoint prototype.
1823 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1825 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
1826 usefulness suggestion of multiple breakpoints at same location.
1828 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1830 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
1832 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1834 * dwarf2loc.c (locexpr_tracepoint_var_ref)
1835 (loclist_tracepoint_var_ref): Handle optimized out values.
1837 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1839 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
1840 unnecessary space in string.
1841 * filesystem.c (_initialize_filesystem): Ditto.
1842 * frame.c (_initialize_frame): Ditto.
1843 * infcmd.c (step_once): Ditto.
1844 * infrun.c (_initialize_infrun): Ditto.
1845 * linux-nat.c (linux_child_follow_fork): Ditto.
1846 * maint.c (maintenance_deprecate): Ditto.
1847 * memattr.c (_initialize_mem): Ditto.
1848 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1849 * monitor.c (monitor_open): Ditto.
1850 * procfs.c (procfs_xfer_memory): Ditto.
1851 * reverse.c (bookmarks_info): Ditto.
1852 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
1853 * stack.c (_initialize_stack): Ditto.
1854 * tracepoint.c (_initialize_tracepoint): Ditto.
1855 * xtensa-tdep.c (xtensa_supply_gregset,
1856 xtensa_regset_from_core_section): Ditto.
1858 2010-07-01 Tom Tromey <tromey@redhat.com>
1860 * value.h (struct lval_funcs) <check_any_valid>: Rename from
1862 * value.c (value_entirely_optimized_out): Invert result. Update
1863 for new function name.
1865 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1867 Static tracepoints support.
1869 * NEWS: Mention new support for static tracepoints.
1870 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
1871 qXfer:statictrace:read.
1872 (New features in the GDB remote stub, GDBserver): Mention static
1873 tracepoints support using an UST based backend.
1874 (New commands): Mention "info static-tracepoint-markers" and
1876 * breakpoint.c (is_marker_spec): New.
1877 (is_tracepoint): Handle static tracepoints.
1878 (validate_commands_for_breakpoint): Static tracepoints can't do
1880 (static_tracepoints_here): New.
1881 (bpstat_what): Handle static tracepoints.
1882 (print_one_breakpoint_location, allocate_bp_location, mention):
1884 (create_breakpoint_sal): Ditto.
1885 (decode_static_tracepoint_spec): New.
1886 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
1887 `type_wanted'. Adjust. Handle static tracepoint marker
1889 (break_command_1): Adjust.
1890 (update_static_tracepoint): New.
1891 (update_breakpoint_locations): Handle static tracepoints.
1892 (breakpoint_re_set_one): Handle static tracepoint marker
1894 (disable_command, enable_command): Handle static tracepoints.
1895 (trace_command, ftrace_command): Adjust.
1896 (strace_command): New.
1897 (create_tracepoint_from_upload): Adjust.
1898 (save_breakpoints): Handle static tracepoints.
1899 (_initialize_breakpoint): Install the "strace" command.
1900 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
1901 (struct breakpoint): New fields static_trace_marker_id and
1902 static_trace_marker_id_idx.
1903 (breakpoints_here_p): Declare.
1904 (create_breakpoint): Adjust.
1905 (static_tracepoints_here): Declare.
1906 * remote.c (struct remote_state) <static_tracepoints>: New field.
1907 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
1908 (remote_static_tracepoint_marker_at): New.
1909 (remote_static_tracepoint_markers_by_strid): New.
1910 (remote_static_tracepoint_feature): New.
1911 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
1912 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
1913 (remote_supports_static_tracepoints): New.
1914 (remote_download_tracepoint): Download static tracepoints.
1915 (init_remote_ops): Install remote_static_tracepoint_marker_at and
1916 remote_static_tracepoint_markers_by_strid.
1917 (_initialize_remote): Install set|show remote static-tracepoints,
1918 and set|show remote read-sdata-object commands.
1919 * target.c (update_current_target): Inherit and default
1920 to_static_tracepoint_marker_at, and
1921 to_static_tracepoint_markers_by_strid.
1922 * target.h (static_tracepoint_marker): Forward declare.
1923 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
1924 (static_tracepoint_marker_p): New typedef.
1925 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
1926 (struct target_ops): New fields to_static_tracepoint_marker_at and
1927 to_static_tracepoint_markers_by_strid.
1928 (target_static_tracepoint_marker_at)
1929 (target_static_tracepoint_markers_by_strid): New.
1930 * tracepoint.c: Include source.h.
1931 (validate_actionline): Handle $_sdata.
1932 (struct collection_list): New field strace_data.
1933 (add_static_trace_data): New.
1934 (clear_collection_list): Clear strace_data.
1935 (stringify_collection_list): Account for a possible static trace
1937 (encode_actions_1): Encode an $_sdata collection.
1938 (parse_tracepoint_definition): Handle static tracepoints.
1939 (parse_static_tracepoint_marker_definition): New.
1940 (release_static_tracepoint_marker): New.
1941 (print_one_static_tracepoint_marker): New.
1942 (info_static_tracepoint_markers_command): New.
1943 (sdata_make_value): New.
1944 (_initialize_tracepoint): Create the $_sdata convenience variable.
1945 Add the "info static-tracepoint-markers" command.
1946 Mention $_sdata in the "collect" command's help output.
1947 * tracepoint.h (struct static_tracepoint_marker): New.
1948 (parse_static_tracepoint_marker_definition)
1949 (release_static_tracepoint_marker): Declare.
1950 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
1951 * python/py-breakpoint.c (bppy_new): Adjust.
1953 2010-06-30 Joel Brobecker <brobecker@adacore.com>
1955 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
1958 2010-06-29 Doug Evans <dje@google.com>
1961 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
1962 DW_AT_external is present.
1966 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
1967 create a symbol for the field and record the value.
1968 (new_symbol): Handle DW_TAG_member.
1969 * gdbtypes.c (field_is_static): Remove FIXME.
1970 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
1971 only ignore LOC_CONST symbols that are enums.
1973 * dwarf2read.c: Remove trailing whitespace.
1975 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
1976 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
1977 (struct main_type, field loc): Delete dwarf_block.
1978 (FIELD_DWARF_BLOCK): Delete.
1979 (SET_FIELD_DWARF_BLOCK): Delete.
1980 (TYPE_FIELD_DWARF_BLOCK): Delete.
1981 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
1984 2010-06-29 Hui Zhu <teawater@gmail.com>
1986 * record.c (set_record_pic_cmdlist,
1987 show_record_pic_cmdlist): New variables.
1988 (set_record_pic_command,
1989 show_record_pic_command): New functions.
1990 (record_pic_function, record_pic_line, record_pic_enum,
1991 set_record_pic_type, record_pic_hide_nofunction,
1992 record_pic_hide_nosource, record_pic_hide_same): New variables.
1993 (record_pic_fputs): New function.
1994 (function_list, node_list, edge_list): New struct.
1995 (function_list, node_list, edge_list): New variables.
1996 (record_pic_cleanups, record_pic_node,
1997 record_pic_edge, cmd_record_pic): New functions.
1998 (_initialize_record): Add new commands for record pic.
2000 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2002 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
2003 ALLOCATE_CPLUS_STRUCT_TYPE.
2005 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
2006 Tom Tromey <tromey@redhat.com>
2007 Thiago Jung Bauermann <bauerman@br.ibm.com>
2009 * value.c (pack_unsigned_long): New function.
2010 (value_from_ulongest): New function.
2011 * value.h (value_from_ulongest): Declare.
2012 * python/python.c (_initialize_python): Call
2013 gdbpy_initialize_thread and gdbpy_initialize_inferior.
2014 * python/python-internal.h: Define thread_object.
2015 (gdbpy_inferiors, gdbpy_selected_thread)
2016 (frame_info_to_frame_object, create_thread_object)
2017 (find_thread_object, find_inferior_object)
2018 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
2019 (gdbpy_is_value_object, get_addr_from_python): Declare.
2020 * python/py-value.c (builtin_type_upylong): Define.
2021 (convert_value_from_python): Add logic for ulongest.
2022 (gdbpy_is_value_object): New function.
2023 * python/py-utils.c (get_addr_from_python): New function.
2024 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
2025 (gdbpy_selected_frame): Use PyObject over frame_info.
2026 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
2028 (SUBDIR_PYTHON_SRCS): Likewise.
2029 (py-inferior.o): New Rule.
2030 (py-infthread.o): New Rule.
2031 * python/py-inferior.c: New File.
2032 * python/py-infthread.c: New File.
2034 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2036 * c-typeprint.c (c_type_print_base): For no fields check include also
2037 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
2038 * dwarf2read.c (struct typedef_field_list)
2039 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
2040 (dwarf2_add_typedef): New.
2041 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
2042 Copy also FI.TYPEDEF_FIELD_LIST.
2043 * gdbtypes.h (struct typedef_field)
2044 (struct cplus_struct_type) <typedef_field, typedef_field_count>
2045 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
2046 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
2048 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2050 * cp-namespace.c (cp_lookup_nested_type): New variable
2051 concatenated_name. Turn the current return condition into a reverse
2052 one. Call also lookup_static_symbol_aux on the constructed qualified
2054 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
2055 other files into a called ...
2056 (lookup_static_symbol_aux): ... new function here.
2057 * symtab.h (lookup_static_symbol_aux): New prototype.
2058 * valops.c (value_maybe_namespace_elt): Call also
2059 lookup_static_symbol_aux if we failed otherwise.
2061 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2063 Fix PR c++/11703 and PR gdb/1448.
2064 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
2067 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2069 Fix modification of cplus_struct_default.
2070 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
2071 Call ALLOCATE_CPLUS_STRUCT_TYPE.
2072 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
2074 2010-06-28 Joel Brobecker <brobecker@adacore.com>
2076 * NEWS: Add entry announcing the python directory.
2078 2010-06-28 Tom Tromey <tromey@redhat.com>
2080 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
2082 2010-06-28 Doug Evans <dje@google.com>
2084 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
2085 All callers updated.
2087 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2089 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
2090 obstack_begin after each obstack_free.
2092 2010-06-27 Doug Evans <dje@google.com>
2094 * value.c (value_static_field): Use `switch' instead of `if'.
2095 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
2097 * valops.c (search_struct_field): Fix typo in error message.
2099 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
2101 * dwarf2expr.c (execute_stack_op): Place preprocessor
2102 directives at the start of the source line.
2104 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
2106 * defs.h (make_command_stats_cleanup): Declare.
2107 (set_display_time): Declare.
2108 (set_display_space): Declare.
2109 * event-top.c (command_handler): Use make_command_stats_cleanup.
2110 * main.c (display_time, display_space): Move definitions to utils.c.
2111 (captured_main): Use make_command_stats_cleanup to get start-up
2113 Use set_display_time and set_display_space for processing OPT_STATISTICS
2115 * maint.c (maintenance_time_display): Use set_display_time.
2116 (maintenance_space_display): Use set_display_space.
2117 * top.c (execute_command): Remove obsolete 'maint time' code.
2118 (command_loop): Use make_command_stats_cleanup.
2119 * utils.c (struct cmd_stats): Structure for storing initial time
2121 (display_time, display_space): Move definitions here from utils.c.
2122 (set_display_time): New function.
2123 (set_display_space): New function.
2124 (make_command_stats_cleanup): New function.
2125 (report_command_stats): New auxiliary function for
2126 make_command_stats_cleanup.
2128 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2130 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
2131 hosts where CORE_ADDR is long long.
2133 2010-06-25 Tom Tromey <tromey@redhat.com>
2136 * python/python.c (execute_gdb_command): Add keywords. Accept
2137 "to_string" argument.
2138 (struct restore_ui_file_closure): New.
2139 (restore_ui_file): New function.
2140 (make_cleanup_restore_ui_file): Likewise.
2141 (GdbMethods) <execute>: Update.
2143 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2145 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
2146 during inferior call stack frame setup.
2148 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
2150 * solib-spu.c: Include "exception.h".
2151 (ocl_program_data_key): New variable.
2152 (append_ocl_sos): New function.
2153 (ocl_enable_break): Likewise.
2154 (spu_current_sos): Call append_ocl_sos.
2155 (spu_solib_loaded): Call ocl_enable_break.
2156 (_initialize_spu_solib): Register ocl_program_data_key.
2158 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2160 * cp-support.c (reset_directive_searched): New function.
2161 (make_symbol_overload_list_using): Prevent recursive calls.
2163 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
2165 * printcmd.c (print_variable_and_value): Print error message on
2168 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2170 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
2172 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
2174 (dwarf_expr_push): Change input type to ULONGEST.
2175 (dwarf_expr_fetch): Change return type to ULONGEST.
2176 (dwarf_expr_fetch_address): Add prototype.
2177 (dwarf2_read_address): Remove prototype.
2178 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
2179 Truncate stack values to ctx->addr_size bytes.
2180 (dwarf_expr_fetch): Change return value to ULONGEST.
2181 (dwarf_expr_fetch_address): New function.
2182 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
2183 when appropriate. Update for struct dwarf_expr_piece changes.
2184 (dwarf2_read_address): Remove.
2185 (unsigned_address_type): Remove.
2186 (signed_address_type): Remove.
2187 (execute_stack_op): Use dwarf_expr_fetch_address instead of
2188 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
2189 values. Perform operations on ULONGEST instead of on GDB values,
2190 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
2191 values and DW_OP_deref results as unsigned integers.
2192 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
2194 (write_pieced_value): Likewise.
2195 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
2196 dwarf_expr_fetch when appropriate.
2197 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
2198 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
2199 instead of dwarf_expr_fetch when appropriate.
2201 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
2203 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
2205 2010-06-24 Joel Brobecker <brobecker@adacore.com>
2207 * python/python.c (_initialize_python): Add new "constant"
2208 PYTHONDIR in gdb module. Insert this path at the head of
2209 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
2210 exec its __init__.py script if it exists in that directory.
2212 2010-06-24 Kevin Buettner <kevinb@redhat.com>
2214 * rx-tdep.c (RX_ACC_REGNUM): Define.
2215 (RX_NUM_REGS): Redefine to 26.
2216 (rx_register_name): Add register "acc". Change order of several
2217 registers. Change name of "vct" register to "fintv" to match RX
2219 (rx_register_type): Add case for RX_ACC_REGNUM.
2221 2010-06-24 Tom Tromey <tromey@redhat.com>
2223 * psymtab.c (lookup_partial_symbol): Mark definition as static.
2225 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2226 Tom Tromey <tromey@redhat.com>
2228 Fix GDB startup on readonly filesystem.
2229 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
2231 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2232 Pedro Alves <pedro@codesourcery.com>
2235 * breakpoint.c (handle_jit_event): New function.
2236 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
2237 jit, err, table and bs_class. New variables shlib_event, jit_event,
2238 this_action and bptype. Change bs_class assignments to this_action
2239 assignments. new unhandled bptype internal error. Move here
2240 shlib_event and jit_event handling from handle_inferior_event.
2241 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
2242 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
2243 BPSTAT_WHAT_CHECK_JIT.
2244 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
2245 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
2246 (handle_inferior_event): Reinitialize frame and gdbarch after
2247 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
2248 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
2249 gdbarch when frame gets reinitialized.
2251 2010-06-24 Hui Zhu <teawater@gmail.com>
2253 * printcmd.c (ui_printf): New function.
2254 (printf_command): Call ui_printf.
2255 (_initialize_printcmd): New command "eval".
2257 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2259 * infrun.c (handle_inferior_event): Handle presence of single-step
2260 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
2261 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
2262 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
2263 * breakpoint.c (detach_single_step_breakpoints): New function.
2264 (detach_breakpoints): Call it.
2265 (cancel_single_step_breakpoints): New function.
2266 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
2268 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
2269 (spu_gdbarch_init): Install it.
2271 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2273 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
2274 * configure: Regenerate.
2276 2010-06-22 Hui Zhu <teawater@gmail.com>
2278 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
2279 (i386_process_record): Ditto.
2280 * record.c (record_memory_query): New variable.
2281 (_initialize_record): New command "set record memory-query".
2282 * record.h (record_memory_query): New extern.
2284 2010-06-21 Doug Evans <dje@google.com>
2286 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
2287 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
2288 (i386_syscall_p): Change type of lengthp to int.
2289 (i386_displaced_step_fixup): Handle kernels that run one past a
2291 * i386-linux-tdep.c (i386_linux_init_abi): Use
2292 i386_displaced_step_copy_insn instead of
2293 simple_displaced_step_copy_insn.
2295 2010-06-21 Tom Tromey <tromey@redhat.com>
2297 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
2298 (dwarf_type_encoding_name): Likewise.
2300 2010-06-21 Tom Tromey <tromey@redhat.com>
2302 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
2303 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
2304 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
2305 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
2306 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
2307 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
2308 * dwarf2read.c (tag_type_to_type): Create a new error type on
2310 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
2311 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
2313 2010-06-21 Michael Snyder <msnyder@vmware.com>
2315 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
2316 not add_abbrev_prefix_cmd, for "enable breakpoints".
2318 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
2320 * dwarf2loc.c (find_location_expression): Add relocation offset
2321 to base-address-selection entry base addresses. Read addresses
2322 (and offsets) as signed/unsigned integers, depending on the
2323 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
2324 (loclist_describe_location): Likewise.
2325 (disassemble_dwarf_expression): Read DW_OP_addr operand as
2326 unsigned integer. Do not call dwarf2_read_address.
2327 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
2329 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2331 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
2332 value instead of hard-coded SPU_LS_SIZE.
2333 (spu_software_single_step): Likewise.
2334 * spu-tdep.h (SPU_LS_SIZE): Remove.
2336 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2338 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
2339 limit on local store memory accesses.
2340 * spu-linux-nat.c (spu_xfer_partial): Likewise.
2341 * spu-tdep.c (spu_lslr): Remove.
2342 (spu_pointer_to_address): Do not truncate addresses.
2343 (spu_integer_to_address): Likewise.
2344 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
2345 * spu-tdep.h: Add comments.
2346 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
2347 (SPU_OVERLAY_LMA): Define.
2349 2010-06-18 Stan Shebs <stan@codesourcery.com>
2351 * osdata.c (get_osdata): Warn separately if target does not report
2353 (info_osdata_command): Allow empty type, report error if target
2354 does not return available types of OS data.
2355 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
2356 types if no annex supplied.
2358 * thread.c (thread_id_make_value): Make a value representing the
2360 (_initialize_thread): Create $_thread.
2362 2010-06-17 Joel Brobecker <brobecker@adacore.com>
2364 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
2365 last local variable declaration. No real code change.
2367 2010-06-17 Tom Tromey <tromey@redhat.com>
2369 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
2370 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
2373 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
2374 Jan Kratochvil <jan.kratochvil@redhat.com>
2376 * breakpoint.c: Include parser-defs.h.
2377 (watchpoint_exp_is_const): New function.
2378 (watch_command_1): Call watchpoint_exp_is_const to check
2379 if the expression is constant.
2381 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
2383 * configure.ac: Check for RDYNAMIC also for cross builds.
2384 * configure: Regenerate.
2386 2010-06-15 Pedro Alves <pedro@codesourcery.com>
2388 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2389 (SFILES): Remove solib-null.c, add solib-target.c.
2390 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
2391 (ALLDEPFILES): Remove solib-target.c.
2392 * solib-target.c (_initialize_solib_target): Set
2393 current_target_so_ops to solib_target_so_ops if not already set.
2394 * solib-null.c: Delete.
2396 2010-06-14 Pedro Alves <pedro@codesourcery.com>
2398 * NEWS: Mention GDBserver's JIT compilation of tracepoint
2401 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2403 * cp-valprint.c (cp_print_static_field): Members of
2404 dont_print_stat_array_obstack are of type "struct type *".
2405 (_initialize_cp_valprint): Likewise.
2407 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2409 * frame.c (frame_register_unwind): Do not access contents
2410 of "optimized out" unwound register value.
2412 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2414 * ada-lang.h (ada_print_type): Make varstring const.
2415 * ada-typeprint.c (print_func_type): Make name const.
2416 (ada_print_type): Make varstring const.
2417 * c-lang.h (c_print_type): Make varstring const.
2418 * c-typeprint.c (c_print_type): Likewise.
2419 * f-lang.h (f_print_type): Likewise.
2420 * f-typeprint.c (f_print_type): Likewise.
2421 * jv-lang.h (java_print_type): Likewise.
2422 * jv-typeprint.c (java_print_type): Likewise.
2423 * language.c (unk_lang_print_type): Likewise.
2424 * language.h (struct language_defn) <la_print_type>: Likewise.
2425 * m2-lang.h (m2_print_type): Likewise.
2426 * m2-typeprint.c (m2_print_type): Likewise.
2427 * p-lang.h (pascal_print_type): Likewise.
2428 * p-typeprint.c (pascal_print_type): Likewise.
2430 2010-06-11 Stan Shebs <stan@codesourcery.com>
2432 Add per-operation permission flags.
2434 * target.h (struct target_ops): New method to_set_permissions.
2435 (target_set_permissions): New macro.
2436 (target_insert_breakpoint): Change macro to function.
2437 (target_remove_breakpoint): Ditto.
2438 (target_stop): Ditto.
2439 (may_write_registers): Declare.
2440 (may_write_memory): Declare.
2441 (may_insert_breakpoints): Declare.
2442 (may_insert_tracepoints): Declare.
2443 (may_insert_fast_tracepoints): Declare.
2444 (may_stop): Declare.
2445 * target.c (may_write_registers, may_write_registers_1): New globals.
2446 (may_write_memory, may_write_memory_1): New globals.
2447 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
2448 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
2449 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
2451 (may_stop, may_stop_1): New global.
2452 (target_xfer_partial): Test for write permission.
2453 (target_store_registers): Ditto.
2454 (target_insert_breakpoint): New function.
2455 (target_remove_breakpoint): New function.
2456 (target_stop): New function.
2457 (_initialize_targets): Add new set/show variables.
2458 (set_write_memory_permission): New function.
2459 (update_target_permissions): New function.
2460 (set_target_permissions): New function.
2461 (update_current_target): Default to_set_permissions.
2462 (_initialize_targets): Use new globals and setter function.
2463 * tracepoint.c (start_tracing): Test for permission.
2464 * inferior.h (update_observer_mode): Declare.
2465 * infrun.c (non_stop_1): Define earlier.
2466 (observer_mode, observer_mode_1): New globals.
2467 (set_observer_mode, show_observer_mode): New functions.
2468 (update_observer_mode): New function.
2469 (_initialize_infrun): Define "set observer" command.
2470 * remote.c (PACKET_QAllow): New optional packet.
2471 (remote_protocol_features): Add QAllow.
2472 (remote_set_permissions): New function.
2473 (remote_start_remote): Call it.
2474 (init_remote_ops): Add it to target vector.
2475 (_initialize_remote): Add config command for QAllow.
2477 2010-06-11 Tom Tromey <tromey@redhat.com>
2479 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
2480 DW_AT_vtable_elem_location even when GCC extension is seen.
2482 2010-06-11 Tom Tromey <tromey@redhat.com>
2484 PR gdb/9977, PR exp/11636:
2485 * value.h (value_offset): Update.
2486 (struct lval_funcs) <check_validity>: New field.
2487 <copy_closure>: Make argument const.
2488 (value_computed_closure): Update.
2489 (value_contents_for_printing): Declare.
2490 (value_bits_valid): Likewise.
2491 (val_print): Likewise.
2492 (set_value_component_location): Update.
2493 (value_entirely_optimized_out): Declare.
2494 * value.c (value_offset): Argument now const.
2495 (require_not_optimized_out): New function.
2496 (value_contents_for_printing): New function.
2497 (value_contents_all): Call require_not_optimized_out.
2498 (value_contents): Likewise.
2499 (value_bits_valid): New function.
2500 (value_computed_closure): Argument now const.
2501 (set_value_component_location): Make 'whole' argument const.
2502 (value_entirely_optimized_out): New function.
2503 (value_bitsize): Argument now 'const'.
2504 (value_bitpos): Likewise.
2505 (value_type): Likewise.
2506 * valprint.h (val_print_array_elements): Update.
2507 * valprint.c (val_print): Add 'val' argument. Use
2508 valprint_check_validity.
2509 (valprint_check_validity): New function.
2510 (value_check_printable): Use value_entirely_optimized_out.
2511 (common_val_print): Update.
2512 (value_print): Likewise.
2513 (val_print_array_elements): Add 'val' argument.
2514 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
2515 value_bits_valid. Reinit frame cache for lval_computed.
2516 * sh64-tdep.c (sh64_do_register): Update.
2517 * scm-valprint.c (scm_val_print): Add 'val' argument.
2518 * scm-lang.h (scm_val_print): Update.
2519 * python/python.h (apply_val_pretty_printer): Update.
2520 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
2521 argument. Call set_value_component_location.
2522 * printcmd.c (print_scalar_formatted): Update.
2523 * p-valprint.c (pascal_val_print): Add 'val' argument.
2524 (pascal_object_print_value_fields): Likewise.
2525 (pascal_object_print_value): Likewise.
2526 (pascal_object_print_static_field): Update.
2527 * p-lang.h (pascal_val_print): Update.
2528 (pascal_object_print_value_fields): Update.
2529 * mt-tdep.c (mt_registers_info): Update.
2530 * mi/mi-main.c (get_register): Update.
2531 (mi_cmd_data_evaluate_expression): Use common_val_print.
2532 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
2533 (m2_print_unbounded_array): Likewise.
2534 (m2_val_print): Likewise.
2535 * m2-lang.h (m2_val_print): Update.
2536 * language.h (struct language_defn) <la_val_print>: Add 'val'
2538 (LA_VAL_PRINT): Likewise.
2539 * language.c (unk_lang_val_print): Add 'val' argument.
2540 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
2541 (java_val_print): Likewise.
2542 * jv-lang.h (java_val_print): Add 'val' argument.
2543 * infcmd.c (default_print_registers_info): Update.
2544 * f-valprint.c (f77_print_array_1): Add 'val' argument.
2545 (f77_print_array): Likewise.
2546 (f_val_print): Likewise.
2547 * f-lang.h (f_val_print): Add 'val' argument.
2548 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
2550 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
2551 set_value_optimized_out.
2552 (write_pieced_value): Use value_bitsize and value_bitpos.
2553 <default>: Don't exit loop.
2554 (check_pieced_value_validity): New function.
2555 (pieced_value_funcs): Reference check_pieced_value_validity,
2556 check_pieced_value_invalid.
2557 (copy_pieced_value_closure): Update.
2558 (check_pieced_value_bits): New function.
2559 (check_pieced_value_invalid): New function.
2560 * d-valprint.c (dynamic_array_type): Add 'val' argument.
2561 (d_val_print): Likewise.
2562 * d-lang.h (d_val_print): Update.
2563 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
2564 (cp_print_value_fields_rtti): Likewise.
2565 (cp_print_value): Likewise.
2566 (cp_print_static_field): Update.
2567 * c-valprint.c (c_val_print): Add 'val' argument.
2568 (c_value_print): Update.
2569 * c-lang.h (c_val_print): Update.
2570 (cp_print_value_fields): Likewise.
2571 (cp_print_value_fields_rtti): Likewise.
2572 * ada-valprint.c (struct ada_val_print_args): Remove.
2573 (val_print_packed_array_elements): Add 'val' argument.
2574 (ada_val_print): Likewise. Rewrite.
2575 (ada_val_print_stub): Remove.
2576 (ada_val_print_array): Add 'val' argument.
2577 (ada_val_print_1): Likewise.
2578 (print_variant_part): Likewise.
2579 (ada_value_print): Update.
2580 (print_record): Add 'val' argument.
2581 (print_field_values): Likewise.
2582 * ada-lang.h (ada_val_print): Update.
2584 2010-06-11 Tom Tromey <tromey@redhat.com>
2586 * vec.h (VEC_cleanup): New macro.
2587 (DEF_VEC_ALLOC_FUNC_I): Update.
2588 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2589 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2590 * dwarf2loc.c (struct axs_var_loc): Remove.
2591 (unimplemented): New function.
2592 (translate_register): Likewise.
2593 (access_memory): Likewise.
2594 (compile_dwarf_to_ax): Likewise.
2595 (dwarf2_tracepoint_var_loc): Remove.
2596 (dwarf2_tracepoint_var_access): Likewise.
2597 (dwarf2_tracepoint_var_ref): Likewise.
2598 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
2599 (loclist_tracepoint_var_ref): Likewise.
2600 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
2601 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
2602 require_composition. No longer static.
2603 (execute_stack_op): Update.
2604 * ax-gdb.h (trace_kludge): Declare.
2606 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2608 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
2609 (should_be_inserted): Return zero also on NULL OWNER.
2610 (breakpoint_program_space_exit): New OWNER comment.
2611 (insert_breakpoint_locations): Extend comment for OWNER.
2612 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
2613 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
2615 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
2616 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
2617 (bpstat_check_location): New assert on OWNER.
2618 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
2619 and B initializations to the code block. New assert on them.
2620 (print_one_breakpoint_location): New OWNER comment.
2621 (watchpoint_locations_match): Assert on OWNER.
2622 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
2623 initializations to the code block. New assert on OWNER.
2624 (set_breakpoint_location_function): New assert on OWNER.
2625 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
2626 (bp_location_compare, update_global_location_list)
2627 (update_global_location_list): New OWNER comment.
2629 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2631 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
2633 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2635 * config/nm-linux.h (struct target_ops): Remove forward declaration.
2636 (lin_thread_get_thread_signals): Remove prototype.
2637 (GET_THREAD_SIGNALS): Remove.
2638 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
2639 * linux-thread-db.c (check_thread_signals): Directly call
2640 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
2642 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2644 * gregset.h (GDB_FPXREGSET_T): Remove.
2645 (gdb_fpxregset_t): Likewise.
2646 (supply_fpxregset): Remove prototype.
2647 (fill_fpxregset): Likewise.
2648 * i386-linux-nat.c (supply_fpxregset): Remove.
2649 (fill_fpxregset): Likewise.
2650 (fetch_fpxregs): Inline supply_fpxregset call.
2651 (store_fpxregs): Inline fill_fpxregset call.
2653 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
2654 * config/i386/nm-linux.h: Remove file.
2656 2010-06-09 Michael Snyder <msnyder@vmware.com>
2658 * target.c (update_current_target): Fix spelling error in comment.
2659 (target_mourn_inferior): Fix spelling error in error message.
2661 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
2663 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
2664 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
2666 2010-06-08 Michael Snyder <msnyder@vmware.com>
2668 * remote.c (remote_close): Set inferior_ptid to null_ptid.
2670 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2672 * configure.ac <"${have_libpython}" != no>: New workaround of
2674 * configure: Regenerate.
2676 2010-06-08 Hui Zhu <teawater@gmail.com>
2678 * record.c (record_wait): Move signal out of replay code.
2680 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2683 * dwarf2-frame.c (no_dwarf_call): New function.
2684 (execute_stack_op): Set CTX->DWARF_CALL.
2685 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
2686 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
2687 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
2688 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
2689 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
2690 (needs_frame_dwarf_call): New function.
2691 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
2692 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
2693 Update the comment. Move variables die, offset and error call to ...
2694 (follow_die_ref): ... a new function.
2695 (dwarf2_fetch_die_location_block): New function.
2696 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
2698 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2700 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
2701 (dwarf_expr_tls_address): Use per_cu instead of objfile.
2702 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
2703 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
2705 (struct needs_frame_baton): New field per_cu.
2706 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
2707 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
2709 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2711 * cp-support.c (make_symbol_overload_list_namespace): Only search
2712 static and global blocks.
2713 (make_symbol_overload_list_block): New function.
2714 (make_symbol_overload_list): Separate namespace search from block
2716 (make_symbol_overload_list_qualified): Use
2717 make_symbol_overload_list_block.
2719 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2721 * value.h: Created oload_search_type enum.
2722 (find_overload_match): Use oload_search_type enum.
2723 * valops.c (find_overload_match): Support combined member and
2725 * eval.c (evaluate_subexp_standard): Calls to
2726 find_overload_match now use oload_search_type enum.
2727 (oload_method_static): Verify index is a proper value.
2728 * valarith.c (value_user_defined_cpp_op): Search for and handle
2729 both member and non-member operators.
2730 (value_user_defined_cpp_op): New function.
2731 (value_user_defined_op): New function.
2732 (value_x_unop): Use value_user_defined_op.
2733 (value_x_binop): Ditto.
2734 * cp-support.c (make_symbol_overload_list_using): Added block
2736 Add check for namespace aliases and imported declarations.
2738 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2740 * breakpoint.h (owner): Extend the comment.
2742 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2744 Clear stale specific bp_location from former whole breakpoint.
2745 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
2747 (free_bp_location): ... here. Rename there the called function to
2748 bpstat_remove_bp_location_callback.
2749 (bpstat_remove_breakpoint_callback): Rename to ...
2750 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
2751 to struct bp_location. Change the called function to
2752 bpstat_remove_bp_location. Create new declaration for the function.
2753 (bpstat_remove_breakpoint): Rename to ...
2754 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
2755 code for the new parameter type.
2757 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
2759 * README: Make version-agnostic.
2761 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2763 Fix duplicate types for single DIE.
2764 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
2766 (read_array_type): Remove type initialization. Recheck get_die_type
2767 after initial die_type. Move set_die_type before set_descriptive_type.
2768 (read_set_type): New variable domain_type. Recheck get_die_type after
2769 initial die_type. Move attr initialization later.
2770 (read_tag_pointer_type, read_tag_reference_type): New variable
2771 target_type. Recheck get_die_type after initial die_type.
2772 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
2773 die_type and die_containing_type.
2774 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
2775 Recheck get_die_type after initial die_type.
2776 (read_subrange_type): Recheck get_die_type after initial die_type.
2777 Move set_die_type before set_descriptive_type.
2778 (set_die_type): Extend the function comment. Call complaint if DIE has
2779 some type already set.
2781 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
2783 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
2784 for current naming of thread groups (iN, not N).
2786 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
2788 * ada-lang.c (ada_operator_length): Constify `struct expression'.
2789 * parse.c (operator_length): Likewise.
2790 (operator_length_standard): Likewise.
2791 * parser-defs.h (operator_length): Likewise.
2792 (operator_length_standard): Likewise.
2793 (struct exp_descriptor <operator_length>): Likewise.
2795 2010-06-04 Doug Evans <dje@google.com>
2797 Add support for enabling/disabling individual pretty-printers.
2798 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
2799 * python/python-internal.h (gdbpy_enabled_cst): Declare.
2800 * python/python.c (gdbpy_enabled_cst): Define.
2801 (_initialize_python): Initialize gdbpy_enabled_cst.
2804 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2806 * breakpoint.c (update_global_location_list): Fix comment typo.
2808 2010-06-04 Hui Zhu <teawater@gmail.com>
2810 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
2812 2010-06-03 Doug Evans <dje@google.com>
2814 * configure.ac: Don't fail if python is unusable when
2815 configured with --with-python=auto.
2816 * configure: Regenerate.
2818 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
2820 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
2822 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
2824 * valprint.h (get_array_bounds): Change low and high parameter types
2826 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
2828 (val_print_array_elements): Adapt to change above.
2829 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
2830 * p-valprint.c (pascal_val_print): Likewise.
2832 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2834 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
2835 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
2838 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2840 Support DW_TAG_module as separate namespaces.
2841 * dwarf2read.c (typename_concat): New parameter physname.
2842 (read_module_type): New function and declaration.
2843 (scan_partial_symbols): Scan also DW_TAG_module children.
2844 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
2845 to typename_concat backward compatible physname value 0.
2846 (partial_die_full_name, read_namespace_type): Pass to typename_concat
2847 backward compatible physname value 0.
2848 (add_partial_module, read_module): Remove FIXME comment.
2849 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
2850 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
2851 DIEs under DW_TAG_module.
2852 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
2853 DW_AT_MIPS_linkage_name first, extend it for language_fortran
2854 && physname and return there instead of just setting NAME. Extend
2855 the main block for language_fortran. Pass physname parameter to the
2856 typename_concat call.
2857 (read_import_statement, read_func_scope, get_scope_pc_bounds)
2858 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
2859 (new_symbol): Fill in cplus_specific.demangled_name if it is still
2860 missing from SYMBOL_SET_NAMES in the language_fortran case.
2861 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
2863 (read_type_die) <DW_TAG_module>: New.
2864 (MAX_SEP_LEN): Increase to 7.
2865 (typename_concat): New parameter physname. New variable lead. Support
2866 also language_fortran.
2867 * f-exp.y (yylex): Consider : also as a symbol name character class.
2868 * f-lang.c: Include cp-support.h.
2869 (f_word_break_characters, f_make_symbol_completion_list): New functions.
2870 (f_language_defn): Use cp_lookup_symbol_nonlocal,
2871 f_word_break_characters and f_make_symbol_completion_list.
2872 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
2873 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
2874 * symtab.c (symbol_init_language_specific): Support language_fortran.
2875 (symbol_find_demangled_name): New comment on language_fortran.
2876 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
2877 for language_fortran.
2878 (lookup_symbol_aux_local): Check imports also for language_fortran.
2879 (default_make_symbol_completion_list): Rename to ...
2880 (default_make_symbol_completion_list_break_on): ... this name. New
2881 parameter break_on, use it.
2882 (default_make_symbol_completion_list): New stub.
2883 * symtab.h (default_make_symbol_completion_list_break_on): New
2886 2010-06-02 Joel Brobecker <brobecker@adacore.com>
2888 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
2891 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2893 * dwarf2read.c (typename_concat): Add const to the variable sep.
2895 2010-06-02 Tom Tromey <tromey@redhat.com>
2897 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
2898 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
2899 type is const. Add 'def' argument. Add missing operators, remove
2901 (decode_locdesc): Update.
2902 (dwarf2_always_disassemble): New global.
2903 (show_dwarf2_always_disassemble): New function.
2904 (_initialize_dwarf2_read): Add always-disassemble.
2905 (dwarf2_per_cu_offset_size): New function.
2906 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
2907 (piece_end_p): New function.
2908 (locexpr_describe_location_piece): Replace 'size' argument with
2909 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
2910 some constants. Remove errors.
2911 (disassemble_dwarf_expression): New function.
2912 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
2913 Add 'offset_size' argument.
2914 (loclist_describe_location): Change output formatting.
2915 * dwarf2expr.h (dwarf_stack_op_name): Declare.
2917 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
2919 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
2920 anonymous type case.
2922 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
2924 * dwarf2read.c (read_subrange_type): Handle missing base type
2925 according to Dwarf-2 specifications.
2927 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
2929 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
2931 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
2932 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
2933 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
2934 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
2935 UNOP_CHMAX, UNOP_CHMIN.
2936 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
2937 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
2938 UNOP_CHMIN>: Remove opcodes.
2940 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
2942 * dwarf2read.c (read_func_scope): Do not complain for
2943 external function if bounds are not found.
2945 2010-06-01 Pedro Alves <pedro@codesourcery.com>
2947 * NEWS: Mention gdbserver fast tracepoints support.
2949 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
2951 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
2953 (windows_set_console_info): New function.
2954 (windows_create_inferior): Call windows_set_console_info
2955 if NEW_CONSOLE is true.
2956 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
2957 (_initialize_loadable): Initialize GetConsoleFontSize and
2958 GetCurrentConsoleFont.
2960 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2962 * Makefile.in (RDYNAMIC): New.
2963 (SFILES): Add proc-service.list.
2964 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
2965 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
2966 * config/arm/linux.mh: Likewise.
2967 * config/i386/linux.mh: Likewise.
2968 * config/i386/linux64.mh: Likewise.
2969 * config/ia64/linux.mh: Likewise.
2970 * config/m32r/linux.mh: Likewise.
2971 * config/m68k/linux.mh: Likewise.
2972 * config/mips/linux.mh: Likewise.
2973 * config/pa/linux.mh: Likewise.
2974 * config/powerpc/linux.mh: Likewise.
2975 * config/powerpc/ppc64-linux.mh: Likewise.
2976 * config/s390/s390.mh: Likewise.
2977 * config/sparc/linux.mh: Likewise.
2978 * config/sparc/linux64.mh: Likewise.
2979 * config/xtensa/linux.mh: Likewise.
2980 * configure.ac: New RDYNAMIC on native host and GCC.
2981 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
2982 * configure: Regenerate.
2983 * proc-service.list: New.
2985 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2987 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
2990 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2992 * linux-nat.c (linux_nat_wait_1): Do not call
2993 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
2994 TARGET_WAITKIND_SIGNALLED.
2996 2010-05-27 Joel Brobecker <brobecker@adacore.com>
2998 * ada-lang.c (ada_inferior_data): New struct.
2999 (ada_inferior_data): New static global.
3000 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
3001 (ada_get_tsd_type): New functions.
3002 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
3003 to look the tsd type up.
3004 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
3005 event. Set ada_inferior_data.
3007 2010-05-27 Pedro Alves <pedro@codesourcery.com>
3009 * remote.c (unpack_varlen_hex): Remove forward declaration.
3010 (remote_console_output): Make static, and add forward declaration.
3011 * remote.h: Drop FIXME comment.
3012 (unpack_varlen_hex): Declare.
3013 (remote_console_output, remote_cisco_objfile_relocate)
3014 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
3015 Delete declarations.
3016 * tracepoint.c: Include "remote.h".
3017 (unpack_varlen_hex): Delete declaration.
3019 2010-05-27 Tom Tromey <tromey@redhat.com>
3021 * dwarf2loc.c (struct piece_closure) <refc>: New field.
3022 (allocate_piece_closure): Initialize refc.
3023 (copy_pieced_value_closure): Use refc.
3024 (free_pieced_value_closure): Likewise.
3026 2010-05-27 Tom Tromey <tromey@redhat.com>
3028 * arm-tdep.c (push_stack_item): 'contents' now const.
3029 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
3030 value_contents_writeable. Introduce new temporary.
3032 2010-05-27 Tom Tromey <tromey@redhat.com>
3034 * findcmd.c (parse_find_args): Use value_contents, not
3037 2010-05-27 Tom Tromey <tromey@redhat.com>
3039 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
3040 const. Use value_contents, not value_contents_writeable.
3042 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3044 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
3045 by call to value_contents.
3047 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
3049 * MAINTAINERS: Add myself for write after approval privileges.
3051 2010-05-26 Doug Evans <dje@google.com>
3053 Allow python to find its files if moved from original location.
3054 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
3055 (GDB_AC_WITH_DIR): Call it.
3056 * configure.ac: Define WITH_PYTHON_PATH if we can find the
3057 python installation directory.
3058 * config.in: Regenerate.
3059 * configure: Regenerate.
3060 * defs.h (python_libdir): Declare.
3061 * main.c (python_libdir): Define.
3062 (captured_main): Initialize python_libdir.
3063 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
3064 call Py_SetProgramName to make sure python can find its libraries
3067 * configure.ac: Try to use python's distutils to fetch compilation
3069 * configure: Regenerate.
3070 * python/python-config.py: New file.
3072 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
3074 * ser-tcp.c (net_open): Check error return from socket() call by its
3075 equality to -1 not by it being negative.
3076 (net_close): Likewise.
3078 2010-05-26 Pedro Alves <pedro@codesourcery.com>
3080 * NEWS: Mention the `qRelocInsn' feature.
3081 * gdbarch.sh (relocate_instruction): New.
3082 * amd64-tdep.c (rip_relative_offset): New.
3083 (append_insns): New.
3084 (amd64_relocate_instruction): New.
3085 (amd64_init_abi): Install it.
3086 * i386-tdep.c (append_insns): New.
3087 (i386_relocate_instruction): New.
3088 (i386_gdbarch_init): Install it.
3089 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
3090 * gdbarch.h, gdbarch.c: Regenerate.
3092 2010-05-26 Tom Tromey <tromey@redhat.com>
3094 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
3095 (struct dwarf2_loclist_baton) <data>: Likewise.
3096 * dwarf2loc.c (find_location_expression): Constify return type.
3097 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
3098 (dwarf2_loc_desc_needs_frame): Likewise.
3099 (loclist_read_variable): Constify.
3100 (loclist_describe_location): Likewise.
3101 (loclist_tracepoint_var_ref): Likewise.
3103 2010-05-25 Tom Tromey <tromey@redhat.com>
3105 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
3106 (dwarf_expr_frame_base_1): Likewise.
3107 (read_pieced_value): Update.
3108 (needs_frame_frame_base): Constify.
3109 (dwarf2_tracepoint_var_loc): Likewise.
3110 (dwarf2_tracepoint_var_access): Likewise.
3111 (locexpr_describe_location_piece): Likewise.
3112 (locexpr_describe_location_1): Likewise.
3113 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
3116 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
3117 (dwarf_expr_eval, read_uleb128, read_sleb128)
3118 (dwarf2_read_address): Update.
3119 * dwarf2expr.c (dwarf_expr_eval): Constify.
3120 (read_uleb128): Likewise.
3121 (read_sleb128): Likewise.
3122 (dwarf2_read_address): Likewise.
3123 (require_composition): Likewise.
3124 (execute_stack_op): Likewise.
3125 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
3127 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
3129 (no_get_frame_base): Constify.
3130 (execute_stack_op): Likewise.
3131 (execute_cfa_program): Likewise.
3132 (read_encoded_value): Likewise.
3134 2010-05-25 Doug Evans <dje@google.com>
3136 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
3138 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
3139 * event-loop.c: ... here.
3140 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
3141 `error' for clarity.
3142 (tui_getc): Pass correct value for `error' parameter to
3143 tui_readline_output.
3145 Add python gdb.GdbError and gdb.string_to_argv.
3146 * NEWS: Document them.
3147 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
3148 the exception is gdb.GdbError. Print a second traceback if there's
3149 an error computing the error message.
3150 (gdbpy_string_to_argv): New function.
3151 * python/py-utils.c (gdbpy_obj_to_string): New function.
3152 (gdbpy_exception_to_string): New function.
3153 * python/python-internal.h (gdbpy_string_to_argv): Declare.
3154 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
3155 (gdbpy_gdberror_exc): Declare.
3156 * python/python.c (gdbpy_gdberror_exc): New global.
3157 (_initialize_python): Initialize gdbpy_gdberror_exc and create
3159 (GdbMethods): Add string_to_argv.
3161 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3163 * windows-nat.c (display_selector): Call GetLastError to give better
3164 failure explanation.
3166 2010-05-24 Pedro Alves <pedro@codesourcery.com>
3168 * config.in: Regenerate.
3170 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3173 * target.c (push_target): Return only void. Remove the return value
3175 * target.h (push_target): Return only void.
3177 2010-05-23 Pedro Alves <pedro@codesourcery.com>
3179 Update gnulib from latest git.
3180 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3182 * gnulib/memcmp.c: Removed.
3183 * gnulib/memchr.valgrind: New.
3184 * gnulib/stddef.in.h: New.
3185 * gnulib/Makefile.am: Updated.
3186 * gnulib/memchr.c: Updated.
3187 * gnulib/memmem.c: Updated.
3188 * gnulib/stdint.in.h: Updated.
3189 * gnulib/str-two-way.h: Updated.
3190 * gnulib/string.in.h: Updated.
3191 * gnulib/wchar.in.h: Updated.
3193 * gnulib/extra/link-warning.h: Removed.
3194 * gnulib/extra/c++defs.h: New.
3195 * gnulib/extra/warn-on-use.h: New.
3196 * gnulib/extra/arg-nonnull.h: Updated.
3198 * gnulib/m4/extensions.m4: Updated.
3199 * gnulib/m4/gnulib-cache.m4: Updated.
3200 * gnulib/m4/gnulib-common.m4: Updated.
3201 * gnulib/m4/gnulib-comp.m4: Updated.
3202 * gnulib/m4/gnulib-tool.m4: Updated.
3203 * gnulib/m4/include_next.m4: Updated.
3204 * gnulib/m4/longlong.m4: Updated.
3205 * gnulib/m4/memchr.m4: Updated.
3206 * gnulib/m4/memmem.m4: Updated.
3207 * gnulib/m4/stdint.m4: Updated.
3208 * gnulib/m4/string_h.m4: Updated.
3209 * gnulib/m4/memcmp.m4: Removed.
3210 * gnulib/m4/onceonly_2_57.m4: Removed.
3211 * gnulib/m4/00gnulib.m4: New.
3212 * gnulib/m4/mmap-anon.m4: New.
3213 * gnulib/m4/multiarch.m4: New.
3214 * gnulib/m4/onceonly.m4: New.
3215 * gnulib/m4/stddef_h.m4: New.
3216 * gnulib/m4/warn-on-use.m4: New.
3217 * gnulib/m4/wchar.m4: Removed.
3218 * gnulib/m4/wchar_h.m4: New.
3219 * gnulib/m4/wchar_t.m4: New.
3220 * gnulib/m4/wint_t.m4: New.
3222 * aclocal.m4: Regenerate.
3223 * config.in: Likewise.
3224 * configure: Likewise.
3225 * gnulib/Makefile.in: Likewise.
3227 2010-05-21 Tom Tromey <tromey@redhat.com>
3229 * dwarf2loc.c (extract_bits_primitive): New function.
3230 (extract_bits): Likewise.
3231 (insert_bits): Likewise.
3232 (copy_bitwise): Likewise.
3233 (read_pieced_value): Do all operations in bits.
3234 (write_pieced_value): Likewise.
3235 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
3236 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
3237 Always use xrealloc to resize piece array.
3238 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
3239 <DW_OP_piece>: Update.
3240 <DW_OP_bit_piece>: New case.
3242 2010-05-21 Tom Tromey <tromey@redhat.com>
3244 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
3245 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
3246 * dwarf2expr.h (enum dwarf_value_location)
3247 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
3248 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
3249 (add_piece): Handle empty piece.
3250 (execute_stack_op) <DW_OP_piece>: Handle
3251 DWARF_VALUE_OPTIMIZED_OUT.
3253 2010-05-21 Tom Tromey <tromey@redhat.com>
3255 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
3256 evaluate_subexp, not evaluate_subexp_with_coercion.
3258 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3260 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3263 2010-05-21 Tom Tromey <tromey@redhat.com>
3265 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
3267 (write_pieced_value): Likewise.
3269 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3271 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3272 and DW_TAG_volatile_type.
3273 (new_symbol): Likewise.
3275 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
3277 * p-valprint.c (pascal_val_print): Call get_array_bounds
3278 to obtain the number of elements in an array.
3280 2010-05-19 Doug Evans <dje@google.com>
3282 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
3284 * python.c (source_python_script): Add comment.
3285 (source_python_script_for_objfile): Remove unnecessary call to
3288 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3289 Sergio Durigan Junior <sergiodj@redhat.com>
3292 * parse.c (exp_iterate): Use operator_length wrapper function.
3294 2010-05-18 Michael Snyder <msnyder@vmware.com>
3296 * ada-lang.c: White space.
3297 * ada-typeprint.c: White space.
3298 * ada-valprint.c: White space.
3299 * addrmap.c: White space.
3300 * auxv.c: White space.
3301 * ax-gdb.c: White space.
3303 2010-05-18 Hui Zhu <teawater@gmail.com>
3305 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
3307 (inferior_call_waitpid): Move make_cleanup out of check.
3308 Check the return of waitpid.
3309 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
3311 2010-05-17 Michael Snyder <msnyder@vmware.com>
3313 * tui/tui.c: White space.
3314 * tui/tui-data.c: White space.
3315 * tui/tui-disasm.c: White space.
3316 * tui/tui-file.c: White space.
3317 * tui/tui-interp.c: White space.
3318 * tui/tui-main.c: White space.
3319 * tui/tui-out.c: White space.
3320 * tui/tui-regs.c: White space.
3321 * tui/tui-source.c: White space.
3322 * tui/tui-stack.c: White space.
3323 * tui/tui-win.c: White space.
3324 * tui/tui-winsource.c: White space.
3326 * procfs.c: White space.
3328 * python/py-auto-load.c: White space.
3329 * python/py-block.c: White space.
3330 * python/py-breakpoint.c: White space.
3331 * python/py-cmd.c: White space.
3332 * python/py-function.c: White space.
3333 * python/py-lazy-string.c: White space.
3334 * python/py-objfile.c: White space.
3335 * python/py-param.c: White space.
3336 * python/py-prettyprint.c: White space.
3337 * python/py-progspace.c: White space.
3338 * python/py-symtab.c: White space.
3339 * python/python.c: White space.
3340 * python/py-type.c: White space.
3341 * python/py-utils.c: White space.
3342 * python/py-value.c: White space.
3344 * mi/mi-cmd-break.c: White space.
3345 * mi/mi-cmd-env.c: White space.
3346 * mi/mi-cmds.c: White space.
3347 * mi/mi-cmd-stack.c: White space.
3348 * mi/mi-cmd-var.c: White space.
3349 * mi/mi-console.c: White space.
3350 * mi/mi-getopt.c: White space.
3351 * mi/mi-interp.c: White space.
3352 * mi/mi-main.c: White space.
3353 * mi/mi-out.c: White space.
3354 * mi/mi-parse.c: White space.
3356 * cli/cli-cmds.c: White space.
3357 * cli/cli-decode.c: White space.
3358 * cli/cli-dump.c: White space.
3359 * cli/cli-interp.c: White space.
3360 * cli/cli-logging.c: White space.
3361 * cli/cli-script.c: White space.
3362 * cli/cli-setshow.c: White space.
3364 * valarith.c: White space.
3365 * valops.c: White space.
3366 * valprint.c: White space.
3367 * value.c: White space.
3368 * varobj.c: White space.
3369 * xcoffread.c: White space.
3370 * xml-support.c: White space.
3371 * xml-tdesc.c: White space.
3373 2010-05-17 Andreas Schwab <schwab@redhat.com>
3376 * c-lang.c (c_printstr): Compute real length of NUL terminated
3379 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3381 * parse.c (parse_exp_in_context): When block is not NULL, use
3382 its associated language to parse the expression instead of
3383 the current_language.
3385 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3387 * jv-lang.c (java_lookup_class): Remove commented out code.
3388 (type_from_class): Likewise.
3389 (java_op_print_tab): Remove commented-out elements.
3391 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3393 * ada-lang.c (to_fixed_range_type): The the raw index type as
3394 argument instead of the raw type name. Remove orig_type parameter.
3395 Update calls throughout.
3396 (ada_fixup_array_indexes_type): New function.
3397 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
3398 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
3399 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
3400 Remove name parameter.
3401 (print_array_type): Add call to ada_fixup_array_indexes_type.
3402 Update calls to print_range_type.
3403 (ada_print_type): Update calls to print_range_type.
3405 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3407 * dwarf2read.c (read_set_type): Set type length if
3408 DW_AT_byte_size attribute is present.
3410 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3412 * p-valprint.c (pascal_val_print): Handle set type if range limits
3413 are undefined but size is known.
3415 2010-05-17 Pedro Alves <pedro@codesourcery.com>
3417 * procfs.c: Reformat.
3419 2010-05-16 Michael Snyder <msnyder@vmware.com>
3421 * target.c: White space.
3422 * target-descriptions.c: White space.
3423 * target-memory.c: White space.
3424 * thread.c: White space.
3425 * top.c: White space.
3426 * tracepoint.c: White space.
3427 * trad-frame.c: White space.
3428 * tramp-frame.c: White space.
3429 * ui-file.c: White space.
3430 * ui-out.c: White space.
3431 * user-regs.c: White space.
3432 * utils.c: White space.
3434 * scm-exp.c: White space.
3435 * scm-lang.c: White space.
3436 * scm-valprint.c: White space.
3437 * sentinel-frame.c: White space.
3438 * ser-base.c: White space.
3439 * ser-go32.c: White space.
3440 * serial.c: White space.
3441 * ser-mingw.c: White space.
3442 * ser-pipe.c: White space.
3443 * ser-tcp.c: White space.
3444 * ser-unix.c: White space.
3445 * solib.c: White space.
3446 * solib-darwin.c: White space.
3447 * solib-frv.c: White space.
3448 * solib-irix.c: White space.
3449 * solib-osf.c: White space.
3450 * solib-pa64.c: White space.
3451 * solib-som.c: White space.
3452 * solib-spu.c: White space.
3453 * solib-svr4.c: White space.
3454 * solib-target.c: White space.
3455 * source.c: White space.
3456 * stabsread.c: White space.
3457 * stack.c: White space.
3458 * std-regs.c: White space.
3459 * symfile.c: White space.
3460 * symmisc.c: White space.
3461 * symtab.c: White space.
3463 2010-05-16 Michael Snyder <msnyder@vmware.com>
3465 * source.c (_initialize_source): Add "rev" as an abbreviation
3466 for the "reverse-search" command.
3468 2010-05-16 Michael Snyder <msnyder@vmware.com>
3470 * record.c: White space.
3471 * regcache.c: White space.
3472 * reggroups.c: White space.
3473 * remote-fileio.c: White space.
3474 * remote-m32r-sdi.c: White space.
3475 * remote-mips.c: White space.
3476 * remote-sim.c: White space.
3477 * remote.c: White space.
3478 (process_g_packet): Remove orphan braces.
3480 2010-05-15 Michael Snyder <msnyder@vmware.com>
3482 * parse.c: White space.
3483 * p-lang.c: White space.
3484 * posix-hdep.c: White space.
3485 * printcmd.c: White space.
3486 * progspace.c: White space.
3487 * prologue-value.c: White space.
3488 * psymtab.c: White space.
3489 * p-typeprint.c: White space.
3490 * p-valprint.c: White space.
3492 * objc-lang.c: White space.
3493 * objfiles.c: White space.
3494 * observer.c: White space.
3495 * osabi.c: White space.
3496 * osdata.c: White space.
3498 * m2-lang.c: White space.
3499 * m2-valprint.c: White space.
3500 * macrocmd.c: White space.
3501 * macroexp.c: White space.
3502 * macroscope.c: White space.
3503 * macrotab.c: White space.
3504 * main.c: White space.
3505 * maint.c: White space.
3506 * mdebugread.c: White space.
3507 * memattr.c: White space.
3508 * minsyms.c: White space.
3509 * monitor.c: White space.
3511 2010-05-14 Michael Snyder <msnyder@vmware.com>
3513 * jv-lang.c: White space.
3514 * jv-typeprint.c: White space.
3515 * jv-valprint.c: White space.
3516 * language.c: White space.
3517 * libunwind-frame.c: White space.
3518 * linespec.c: White space.
3519 * linux-nat.c: White space.
3520 * linux-record.c: White space.
3521 * linux-thread-db.c: White space.
3523 * infcall.c: White space.
3524 * inf-child.c: White space.
3525 * infcmd.c: White space.
3526 * inferior.c: White space.
3527 * inf-loop.c: White space.
3528 * inflow.c: White space.
3529 * inline-frame.c: White space.
3530 * interps.c: White space.
3532 * gcore.c: White space.
3533 * gdb.c: White space.
3534 * gdbtypes.c: White space.
3535 * gnu-nat.c: White space.
3536 * gnu-v2-abi.c: White space.
3537 * gnu-v3-abi.c: White space.
3539 * findcmd.c: White space.
3540 * findvar.c: White space.
3541 * fork-child.c: White space.
3542 * frame-base.c: White space.
3543 * frame.c: White space.
3544 * frame-unwind.c: White space.
3545 * f-valprint.c: White space.
3547 * elfread.c: White space.
3548 * environ.c: White space.
3549 * eval.c: White space.
3550 * event-loop.c: White space.
3551 * event-top.c: White space.
3552 * exceptions.c: White space.
3553 * exec.c: White space.
3554 * expprint.c: White space.
3556 * dbxread.c: White space.
3557 * dcache.c: White space.
3558 * disasm.c: White space.
3559 * doublest.c: White space.
3560 * dsrec.c: White space.
3561 * dummy-frame.c: White space.
3562 * dwarf2expr.c: White space.
3563 * dwarf2-frame.c: White space.
3564 * dwarf2loc.c: White space.
3565 * dwarf2read.c: White space.
3567 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
3571 * python/py-value.c (valpy_hash): New function.
3572 (value_object_type): Register valpy_hash.
3574 2010-05-14 Hui Zhu <teawater@gmail.com>
3575 Michael Snyder <msnyder@vmware.com>
3577 * linux-fork.c (gdbthread.h): New include.
3578 (fork_info): Add parent_ptid.
3579 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
3581 (delete_checkpoint_command): Call inferior_call_waitpid.
3582 (checkpoint_command): Set parent_ptid.
3584 2010-05-13 Michael Snyder <msnyder@vmware.com>
3586 * dictionary.c: Re-indent to GNU coding standard.
3588 * charset.c: White space.
3589 * c-lang.c: White space.
3590 * cli-out.c: White space.
3591 * coffread.c: White space.
3592 * complaints.c: White space.
3593 * completer.c: White space.
3594 * corefile.c: White space.
3595 * corelow.c: White space.
3596 * cp-abi.c: White space.
3597 * cp-namespace.c: White space.
3598 * cp-support.c: White space.
3599 * cp-valprint.c: White space.
3600 * c-typeprint.c: White space.
3601 * c-valprint.c: White space.
3602 * blockframe.c: White space.
3603 * breakpoint.c: White space.
3604 * buildsym.c: White space.
3605 * blockframe.c: White space.
3606 * bcache.c: White space.
3607 * gdbarch.sh: White space, add blank lines.
3608 * arch-utils.c: Ditto.
3609 * gdbarch.c: Regenerate.
3610 * frame.c: White space, add blank lines.
3611 * stack.c: White space, add blank lines.
3612 (initialize_stack): Remove long-dead code.
3614 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3617 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
3618 (locexpr_read_variable, loclist_read_variable): Update the callers.
3620 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3623 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
3624 Remove check of NULL returned by tag_type_to_type.
3625 (die_containing_type): Remove variable type. Remove type_die variable
3626 initialization. Remove check of NULL returned by tag_type_to_type.
3628 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3631 * gdbtypes.c (lookup_struct_elt_type): Also lookup
3632 names of unnamed structures or unions.
3634 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3636 * procfs.c (proc_watchpoint_address): New function.
3637 (procfs_stopped_by_watchpoint): Remove useless check after
3638 find_procinfo_or_die call.
3639 (procfs_stopped_data_address): New function.
3640 (procfs_use_watchpoints): Register new watchpoint related function.
3642 2010-05-11 Tom Tromey <tromey@redhat.com>
3644 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
3646 2010-05-10 Michael Snyder <msnyder@vmware.com>
3648 * utils.c: White space cleanup.
3650 2010-05-10 Tom Tromey <tromey@redhat.com>
3652 * eval.c (ptrmath_type_p): Add 'lang' argument.
3653 (evaluate_subexp_standard): Update.
3654 (evaluate_subexp_with_coercion): Update.
3655 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
3657 2010-05-10 Michael Snyder <msnyder@vmware.com>
3659 * utils.c (do_fclose_cleanup) Restore local variable.
3661 2010-05-09 Doug Evans <dje@google.com>
3663 * record.c (init_record_core_ops): Rename record_core to record-core.
3665 2010-05-08 Joel Brobecker <brobecker@adacore.com>
3667 Implement task switching on pa-hpux.
3668 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
3669 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
3671 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3673 * valops.c (find_overload_match): Add missing i18n markup.
3675 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3677 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
3679 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3681 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
3682 list for the obconcat call.
3683 * mdebugread.c (parse_symbol): Likewise.
3684 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
3686 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
3687 New variable ap. Remove variables len and val.
3688 * symfile.h (obconcat): Likewise for the prototype.
3690 2010-05-07 Michael Snyder <msnyder@vmware.com>
3692 * python/python.c (execute_gdb_command): Remove unused variables.
3693 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
3694 * python/py-breakpoint.c (gdbpy_breakpoint_created):
3695 Remove unused variable.
3696 * python/py-cmd.c (cmdpy_function): Remove unused variable.
3697 (cmdpy_completer): Remove unused variable.
3698 * python/py-frame.c (frapy_find_sal): Remove unused variable.
3699 * python/py-function.c (fnpy_call): Remove unused variable.
3700 * python/py-objfile.c (objfile_to_objfile_object):
3701 Remove unused variable.
3702 * python/py-param.c (parmpy_init): Remove unused variable.
3703 * python/py-prettyprint.c (apply_varobj_pretty_printer):
3704 Remove unused variable.
3705 (gdbpy_default_visualizer): Remove unused variable.
3706 * python/py-progspace.c (pspace_to_pspace_object):
3707 Remove unused variable.
3708 * python/py-symtab.c (symtab_and_line_to_sal_object):
3709 Remove unused variable.
3710 * python/py-type.c (typy_template_argument):
3711 Remove unused variable.
3712 * python/py-value.c (valpy_string): Remove unused variable.
3713 (convert_value_from_python): Remove unused variables.
3715 2010-05-07 Michael Snyder <msnyder@vmware.com>
3717 * valops.c (value_cast_pointers): Restore unused variable 'type1',
3718 and use it to compute variable 't1'.
3720 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3722 * ada-lang.c (assign_aggregate): Remove unused variable.
3724 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
3727 * valops.c (find_overload_match): Handle fsym == NULL case.
3728 Add int no_adl argument.
3729 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
3731 Add int no_adl argument.
3732 (find_oload_champ_namespace): Add int no_adl argument.
3733 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
3735 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
3736 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
3737 Evaluate arguments and use them to perform ADL lookup.
3738 Pass no_adl argument to find_overload_match.
3739 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
3740 * cp-support.h: Added prototype for
3741 make_symbol_overload_list_namespace.
3742 * cp-support.c (make_symbol_overload_list_namespace): New function.
3743 (make_symbol_overload_list_adl_namespace): New function.
3744 (make_symbol_overload_list_adl): New function.
3745 (make_symbol_overload_list_using): Moved code to add function to
3746 overload set to make_symbol_overload_list_namespace.
3747 * c-exp.y: create UNKNOWN_CPP_NAME token.
3748 Add parse rule for ADL functions.
3749 (classify_name): Recognize an UNKNOWN_CPP_NAME.
3751 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3753 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
3756 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3758 Implement task switching on solaris targets.
3759 * sol-thread.c (thread_db_find_thread_from_tid)
3760 (sol_get_ada_task_ptid): New functions.
3761 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
3763 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3765 * remote.c (remote_query_supported_append): Use reconcat.
3766 (remote_query_supported): Install a cleanup. Use reconcat.
3768 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3770 * gdbarch.sh (qsupported): Delete.
3771 * gdbarch.h, gdbarch.c: Regenerate.
3772 * remote.c (remote_query_supported): Remove use of
3775 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3777 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
3780 2010-05-06 Michael Snyder <msnyder@vmware.com>
3782 * xml-support.c (xinclude_start_include): Delete unused variable.
3783 (xml_process_xincludes): Delete unused variable.
3784 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
3785 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
3786 (tdesc_find_arch_register): Delete unused variable.
3787 (tdesc_use_registers): Delete unused variable.
3788 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
3789 * inferior.c (print_inferior): Delete unused variable.
3790 * record.c (record_open_1): Delete unused variable.
3791 (record_restore): Delete unused variable.
3792 (cmd_record_save): Delete unused variable.
3793 * gcore.c (derive_heap_segment): Delete unused variable.
3794 (objfile_find_memory_regions): Use unused variable.
3795 * jit.c (jit_inferior_init): Delete unused variable.
3796 * progspace.c (clone_program_space): Delete unused variable.
3797 (pspace_empty_p): Delete unused variable.
3799 * frame-unwind.c (frame_unwind_find_by_frame):
3800 Delete unused variable.
3801 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
3802 * cp-support.c (mangled_name_to_comp): Delete unused variable.
3803 (method_name_from_physname): Delete unused variable.
3804 (cp_func_name): Delete unused variable.
3805 (cp_validate_operator): Delete unused variable.
3806 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
3807 Delete unused variable.
3808 * trad-frame.c (trad_frame_get_prev_register):
3809 Delete unused variable.
3810 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
3812 * serial.c (serial_for_fd): Delete unused variable.
3813 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
3814 * top.c (execute_command): Delete unused variable.
3815 (init_main): Delete unused variable.
3816 * utils.c (do_fclose_cleanup): Delete unused variable.
3817 (do_all_inferior_continuations): Delete unused variable.
3818 (initialize_utils): Delete unused variable.
3819 (internal_problem_mode): Delete unused global.
3820 * frame.c (get_prev_frame): Delete unused global.
3821 (get_frame_locals_address): Delete unused global.
3822 (get_frame_args_address): Delete unused global.
3824 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
3825 (pascal_type_print_varspec_prefix): Delete unused variable.
3826 * f-typeprint.c (f_type_print_base): Delete unused variable.
3827 (f_type_print_varspec_suffix): Delete unused variable.
3828 * m2-typeprint.c (m2_print_type): Delete unused variable.
3829 (m2_long_set): Delete unused variable.
3830 * ada-valprint.c (ada_val_print_1): Delete unused variable.
3831 * d-valprint.c (dynamic_array_type): Delete unused variable.
3832 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
3833 Delete unused variable.
3834 (f77_create_arrayprint_offset_tbl): Delete unused variable.
3835 * m2-valprint.c (m2_val_print): Delete unused variable.
3837 * ui-out.c (ui_out_field_int): Delete unused variable.
3838 (ui_out_field_fmt_int): Delete unused variable.
3839 * varobj.c (varobj_list_children): Delete unused variable.
3840 (varobj_set_value): Delete unused variable.
3841 (install_new_value_visualizer): Delete unused variable.
3842 (varobj_set_visualizer): Delete unused variable.
3843 (varobj_update): Delete unused variable.
3844 (varobj_editable_p): Delete unused variable.
3845 (c_value_of_root): Delete unused variable.
3846 (cplus_describe_child): Delete unused variable.
3848 * ada-lang.c (add_defn_to_vec): Delete unused variable.
3849 (decode_constrained_packed_array_type): Delete unused variable.
3850 (add_defn_to_vec): Delete unused variable.
3851 (symbol_completion_match): Delete unused variable.
3852 (value_tag_from_contents_and_address): Delete unused variable.
3853 (ada_evaluate_subexp): Delete unused variable.
3854 * c-lang.c (classify_type): Delete unused variable.
3855 * f-lang.c (f_printstr): Delete unused variable.
3856 * objc-lang.c (objc_printstr): Delete unused variable.
3857 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
3858 * jv-lang.c (type_from_class): ifdef unused variable.
3859 (java_class_name_from_physname): Delete unused variable.
3860 * m2-lang.c (m2_printstr): Delete unused variable.
3862 * objfiles.c (objfile_relocate): Delete unused variable.
3863 * maint.c (_initialize_maint_cmds): Delete unused variable.
3864 * demangle.c (_initialize_demangler): Delete unused variable.
3865 * corefile.c (reopen_exec_file): Delete unused variable.
3866 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
3867 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
3869 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
3870 * memattr.c (mem_delete): Delete unused variable.
3871 (invalidate_target_mem_regions): Delete unused variable.
3872 * mem-break.c (default_memory_insert_breakpoint):
3873 Delete unused variable.
3874 * target.c (target_get_osdata): Delete unused variable.
3875 * parse.c (length_of_subexp): Delete unused variable.
3876 (prefixify_subexp): Delete unused variable.
3877 (exp_iterate): Delete unused variable.
3878 * reverse.c (delete_bookmark_command): Delete unused variable.
3880 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
3881 * macroexp.c (gather_arguments): Delete unused variable.
3882 (substitute_args): Delete unused variable.
3883 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
3884 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
3885 (_initialize_gdbarch): Delete unused variable.
3886 * gdbarch.c, gdbarch.h: Regenerate.
3887 * arch-utils.c (initialize_current_architecture):
3888 Delete unused variable.
3889 (_initialize_gdbarch_utils): Delete unused variable.
3890 * gdbtypes.c (make_cv_type): Delete unused variable.
3891 (make_type_with_address_space): Delete unused variable.
3893 * linespec.c (decode_compound): Delete unused variable.
3894 * dictionary.c (iterator_next_hashed): Delete unused variable.
3895 * infcall.c (call_function_by_hand): Delete unused variable.
3896 * infcmd.c (step_1): Delete unused variable.
3897 (registers_info): Delete unused variable.
3898 (attach_command): Delete unused variable.
3899 * infrun.c (follow_exec): Delete unused variable.
3900 (handle_step_into_function_backwards): Delete unused variable.
3901 (_initialize_infrun): Delete unused variable.
3902 * stack.c (parse_frame_specification_1): Delete unused variable.
3903 (frame_info): Delete unused variable.
3904 (backtrace_command_1): Delete unused variable.
3905 (catch_info): Delete unused variable.
3907 * eval.c (evaluate_subexp_standard): Delete unused variable.
3908 * valops.c (value_cast_pointers): Delete unused variable.
3909 (value_dynamic_cast): Delete unused variable.
3910 (value_array): Delete unused variable.
3911 (find_overload_match): Delete unused variable.
3912 * valarith.c (value_subscript): Delete unused variable.
3913 (value_binop): Delete unused variable.
3914 * valprint.c (_initialize_valprint): Delete unused variable.
3915 * printcmd.c (print_command_1): Delete unused variable.
3916 (address_info): Delete unused variable.
3917 (printf_command): Delete unused variable.
3919 * auxv.c (target_auxv_search): Delete unused variable.
3920 * blockframe.c (get_frame_block): Delete unused variable.
3921 * regcache.c (regcache_cpy): Delete unused variable.
3922 (regcache_cpy_no_passthrough): Delete unused variable.
3923 * charset.c (wchar_iterate): Delete unused variable.
3924 (find_charset_names): Delete unused variable.
3925 (_initialize_charset): Delete unused variable.
3926 * disasm.c (do_mixed_source_and_assembly):
3927 Delete unused variable.
3928 * source.c (set_default_source_symtab_and_line):
3929 Delete unused variable.
3930 (set_substitute_path_command): Delete unused variable.
3931 * value.c (preserve_values): Delete unused variable.
3932 (value_from_double): Delete unused variable.
3934 2010-05-05 Michael Snyder <msnyder@vmware.com>
3936 * psymtab.c (lookup_partial_symbol): Delete unused variable.
3937 (find_last_source_symtab_from_partial): Delete unused variable.
3938 * symfile.c (place_section): Delete unused variable.
3939 (default_symfile_offsets): Delete unused variable.
3940 (get_debug_link_info): Delete unused variable.
3941 (find_separate_debug_file_by_debuglink): Delete unused variable.
3942 (add_symbol_file_command): Delete unused variable.
3943 (symfile_find_segment_sections): Delete unused variable.
3944 * symmisc.c (free_symtab): Delete unused variable.
3945 (dump_symtab_1): Delete unused variable.
3946 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
3947 (find_pc_sect_symtab): Delete unused variable.
3948 (skip_prologue_using_lineinfo): Delete unused variable.
3949 (sources_info): Delete unused variable.
3950 (completion_list_add_name): Delete unused variable.
3951 (expand_line_sal): Delete unused variable.
3953 * breakpoint.c (validate_commands_for_breakpoint):
3954 Delete unused variables.
3955 (insert_catchpoint): Delete unused variable.
3956 (update_watchpoint): Delete unused variable.
3957 (insert_bp_location): Delete unused variable.
3958 (insert_breakpoint_locations): Delete unused variable.
3959 (remove_breakpoint_1): Delete unused variable.
3960 (software_breakpoint_inserted_here_p): Delete unused variable.
3961 (watchpoints_triggered): Delete unused variable.
3962 (bpstat_check_watchpoint): Delete unused variable.
3963 (bpstat_stop_status): Delete unused variable.
3964 (print_one_breakpoint_location): Delete unused variable.
3965 (allocate_bp_location): Delete unused variable.
3966 (create_breakpoint): Delete unused variable.
3967 (watch_command_1): Delete unused variable.
3968 (catch_exception_command_1): Delete unused variable.
3969 (catch_ada_exception_command): Delete unused variable.
3970 (delete_breakpoint): Delete unused variable.
3971 (breakpoint_re_set_one): Delete unused variable.
3972 (do_enable_breakpoint): Delete unused variable.
3974 2010-05-06 Pedro Alves <pedro@codesourcery.com>
3976 * amd64-tdep.c: Include disasm.h.
3977 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
3978 (amd64_insn_length): Moved to disasm.c and renamed.
3979 (fixup_riprel): Adjust.
3980 * disasm.c (do_ui_file_delete): New.
3981 (gdb_insn_length): New.
3982 (gdb_buffered_insn_length_fprintf)
3983 (gdb_buffered_insn_length_init_dis)
3984 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
3986 * disasm.h (gdb_insn_length): Declare.
3987 (gdb_buffered_insn_length): Declare.
3989 2010-05-06 Pedro Alves <pedro@codesourcery.com>
3991 * remote.c (clear_threads_parsing_context): New.
3992 (remote_threads_info): Delete unused null_cleanup. Install a
3993 cleanup to clear the threads_parsing_context in case parsing
3996 2010-05-05 Michael Snyder <msnyder@vmware.com>
3998 * c-exp.y (parse_string_or_char): Delete unused variable.
3999 (c_lex): Delete unused variable.
4000 * cp-name-parser.y (cpname_lex): Delete unused variable.
4001 * ada-exp.y (find_primitive_type): Delete unused variable.
4002 (write_var_or_type): Delete unused variable.
4003 * jv-exp.y (java_parse): Delete unused variable.
4004 (push_expression_name): Delete unused variable.
4005 * p-exp.y (pascal_lex): Delete unused variable.
4007 2010-05-05 Pedro Alves <pedro@codesourcery.com>
4009 * remote.c (remote_threads_info): Really revert previous previous
4012 2010-05-05 Michael Snyder <msnyder@vmware.com>
4014 * elfread.c (elf_symtab_read): Delete unused variable.
4015 (find_separate_debug_file_by_buildid): Delete unused variables.
4016 (elf_symfile_read): Delete unused variable.
4018 * coffread.c (coff_symfile_read): Delete unused variables.
4020 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
4021 (read_pe_exported_syms): Delete unused variable.
4023 * stabsread.c (define_symbol): Delete unused variable.
4025 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
4026 (process_psymtab_comp_unit): Delete unused variable.
4027 (dwarf2_build_psymtabs_hard): Delete unused variable.
4028 (load_partial_comp_unit): Delete unused variable.
4029 (create_all_comp_units): Delete unused variable.
4030 (scan_partial_symbols): Delete unused variable.
4031 (add_partial_symbol): Delete unused variable.
4032 (add_partial_namespace): Delete unused variable.
4033 (add_partial_enumeration): Delete unused variable.
4034 (load_full_comp_unit): Delete unused variable.
4035 (process_full_comp_unit): Delete unused variable.
4036 (read_file_scope): Delete unused variable.
4037 (read_type_unit_scope): Delete unused variable.
4038 (process_structure_scope): Delete unused variable.
4039 (process_enumeration_scope): Delete unused variable.
4040 (read_tag_ptr_to_member_type): Delete unused variable.
4041 (read_typedef): Delete unused variable.
4042 (read_partial_die): Delete unused variable.
4043 (decode_locdesc): Delete unused variable.
4044 (zeroed_partial_die): Delete unused global variable.
4046 * tui/tui-interp.c (_initialize_tui_interp):
4047 Delete unused variable.
4048 * tui/tui-regs.c tui_display_registers_from):
4049 Delete unused variable.
4050 (tui_check_register_values): Delete unused variable.
4051 (tui_register_format): Delete unused variable.
4052 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
4053 * tui/tui-windata.c (tui_display_data_from_line):
4054 Delete unused variables.
4055 (tui_vertical_data_scroll): Delete unused variables.
4057 2010-05-05 Michael Snyder <msnyder@vmware.com>
4059 * remote.c (remote_threads_info): Revert questionable part of
4060 the previous change.
4062 2010-05-05 Michael Snyder <msnyder@vmware.com>
4064 * mi/mi-out.c (mi_table_begin): Delete unused variable.
4065 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
4066 (mi_cmd_var_list_children): Delete unused variable.
4067 (varobj_update_one): Delete unused variable.
4068 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
4069 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
4070 Delete unused variable.
4071 (mi_cmd_stack_list_variables): Delete unused variable.
4072 (list_args_or_locals): Delete unused variable.
4073 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
4074 Delete unused variables.
4075 (mi_cmd_file_list_exec_source_files): Delete unused variable.
4076 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
4077 Delete unused variable.
4078 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
4079 (mi_cmd_interpreter_exec): Delete unused variable.
4080 (mi_on_normal_stop): Delete unused variable.
4081 * mi/mi-main.c (run_one_inferior): Delete unused variable.
4082 (print_one_inferior): Delete unused variables.
4083 (mi_execute_command): Delete unused variable.
4084 (mi_cmd_execute): Delete unused variable.
4085 (timestamp): Delete unused variable.
4087 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
4088 (restore_binary_file): Delete unused variable.
4089 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
4090 * cli/cli-script.c (define_command): Delete unused variables.
4091 (recurse_read_control_structure): Delete unused variable.
4092 (script_from_file): Delete unused variable.
4093 * cli/cli-cmds.c (complete_command): Delete unused variable.
4094 (disassemble_command): Delete unused variable.
4096 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
4097 * tracepoint.c (delete_trace_variable_command):
4098 Delete unused variables.
4099 (encode_actions_1): Delete unused variables.
4100 (start_tracing): Delete unused variable.
4101 (trace_status_mi): Delete unused variable.
4102 (tfind_1): Delete unused variable.
4103 (trace_find_pc_command): Delete unused variable.
4104 (trace_find_line_command): Delete unused variables.
4105 (trace_find_range_command): Delete unused variables.
4106 (trace_find_outside_command): Delete unused variables.
4107 (parse_tracepoint_definition): Delete unused variables.
4108 (tfile_fetch_registers): Delete unused variable.
4110 * dcache.c (dcache_init): Delete unused variable.
4111 (dcache_info): Delete unused variable.
4113 * remote.c (remote_threads_info): Delete unused variable.
4114 (process_stop_reply) :Delete unused variable.
4115 (remote_get_trace_status): Delete unused variables.
4117 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
4118 (thread_from_lwp): Delete unused variable.
4119 (enable_thread_event_reporting): Delete unused variable.
4120 (check_for_thread_db): Delete unused variables.
4121 (thread_db_find_new_threads_2): Delete unused variable.
4123 * linux-fork.c (info_checkpoints_command): Delete unused variables.
4124 (checkpoint_command): Delete unused variable.
4125 (linux_fork_context): Delete unused variables.
4127 * linux-nat.c (linux_parent_pid): Delete unused global variable.
4128 (linux_tracefork_child): Delete unused variable.
4129 (linux_child_follow_fork): Delete unused variable.
4130 (linux_nat_detach): Delete unused variable.
4131 (linux_handle_extended_wait): Delete unused variable.
4132 (linux_nat_has_pending_sigint): Delete unused variable.
4133 (linux_nat_find_memory_regions): Delete unused variable.
4134 (linux_nat_make_corefile_notes): Delete unused variables.
4135 (linux_nat_info_proc_cmd): Delete unused variable.
4136 (linux_proc_pending_signals): Delete unused variable.
4137 (linux_nat_stop_lwp): Delete unused variables.
4138 (_initialize_linux_nat): Delete unused variable.
4140 * ser-pipe.c (pipe_ops): Delete unused global variable.
4142 * linux-record.c (record_linux_system_call):
4143 Delete unused variables.
4145 * corelow.c (core_xfer_partial): Delete unused variables.
4147 * solib-svr4.c (find_program_interpreter): Delete unused variable.
4148 (svr4_solib_create_inferior_hook): Add ifdef around
4149 conditionally-used variable declarations.
4151 * solib.c (solib_find): Delete unused variable.
4152 (free_so_symbols): Delete unused variable.
4153 (info_sharedlibrary_command): Delete unused variable.
4154 (reload_shared_libraries_1): Delete unused variable.
4155 (_initialize_solib): Delete unused variable.
4157 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
4158 (i386_collect_xstateregset): Delete unused variable.
4159 * i387-tdep.c (i387_print_float_info): Delete unused variable.
4161 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
4162 Delete unused variable 'type'.
4164 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4166 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
4167 ada-lang.c: Remove comment mentioning these macros.
4168 * m2-exp.y: Delete commented out code.
4170 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4172 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
4174 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
4176 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4178 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
4179 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
4181 (cleanup_kernel_helper_return): Likewise.
4182 * arm-tdep.c (copy_unmodified): Likewise.
4183 (copy_preload): Likewise.
4184 (copy_copro_load_store): Likewise.
4185 (cleanup_branch): Likewise.
4186 (copy_b_bl_blx): Likewise.
4187 (copy_bx_blx_reg): Likewise.
4188 (copy_alu_imm): Likewise.
4189 (copy_alu_reg): Likewise.
4190 (copy_alu_shifted_reg): Likewise.
4191 (cleanup_load): Likewise.
4192 (cleanup_store): Likewise.
4193 (cleanup_block_load_pc): Likewise.
4194 (cleanup_svc): Likewise.
4195 (copy_undef): Likewise.
4196 (copy_unpred): Likewise.
4197 * remote.c (register_remote_support_xml): Likewise.
4199 2010-05-05 Hui Zhu <teawater@gmail.com>
4201 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
4203 2010-05-04 Mark Kettenis <kettenis@gnu.org>
4205 * remote.c (register_remote_support_xml)
4206 (remote_query_supported_append, remote_query_supported): Add cast
4207 to NULL used as sentinel.
4208 * tracepoint.c (tvariables_info_1): Likewise.
4209 * utils.c (add_internal_problem_command): Likewise.
4211 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4213 * dwarf2loc.c (read_pieced_value, write_pieced_value,
4214 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
4215 registers gracefully.
4217 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4219 * exec.c (print_section_info): Display entry point without arch
4222 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4225 * printcmd.c (x_command): Only dereference once implicitly for
4228 2010-05-03 Doug Evans <dje@google.com>
4230 * event-loop.c (gdb_timer): Delete unused global.
4231 (create_timer): Update.
4233 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4235 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
4236 CURRENT->DECLARATION case.
4237 * cp-support.h (struct using_direct): Provide extended comment.
4239 2010-05-03 Mark Kettenis <kettenis@gnu.org>
4241 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
4242 HPPABSD_SIZEOF_GREGS.
4243 (HPPAOBSD_SIZEOF_FPREGS): New define.
4244 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
4245 (hppaobsd_supply_fpregset): New function.
4246 (hppaobsd_gregset): Renamed from hppabsd_gregset.
4247 (hppaobsd_fpregset): New variable.
4248 (hppaobsd_regset_from_core_section): Handle floating-point registers.
4249 (_initialize_hppabsd_tdep): Remove spurious blank line.
4251 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4254 * p-valprint.c (pascal_value_print): Always dereference a value with
4255 type code TYPE_CODE_REF.
4257 2010-05-03 Pedro Alves <pedro@codesourcery.com>
4259 * remote.c (remote_notice_signals): New.
4260 (remote_start_remote): In non-stop mode, update the remote end on
4261 which signals it can silently pass.
4262 (init_remote_ops): Install remote_notice_signals.
4264 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4266 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
4267 * command.h (error_no_arg): ... here. Remove NORETURN, change
4268 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4269 * defs.h (NORETURN, ATTR_NORETURN): Remove.
4270 (perror_with_name, verror, error, error_stream, vfatal, fatal)
4271 (internal_verror, internal_error, nomem): Remove NORETURN, change
4272 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4273 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
4274 (throw_vfatal, throw_error): Remove NORETURN.
4275 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
4276 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
4277 (throw_error, deprecated_throw_reason): Remove NORETURN, change
4278 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4279 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
4280 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
4282 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
4283 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
4285 * target.c (tcomplain): Likewise.
4286 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
4288 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
4289 (internal_error, perror_with_name, nomem): Remove NORETURN.
4290 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
4293 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4295 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4296 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
4297 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
4298 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4299 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
4300 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4301 * complaints.h (complaint, internal_complaint): Likewise.
4302 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
4303 (ATTR_FORMAT): Remove.
4304 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
4305 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
4306 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
4307 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
4308 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
4309 (internal_error, internal_vwarning, internal_warning, warning)
4310 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4311 * disasm.c (fprintf_disasm): Likewise.
4312 * exceptions.c (throw_it): Likewise.
4313 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
4314 (throw_error): Likewise.
4315 * language.h (type_error, range_error): Likewise.
4316 * linespec.c (cplusplus_error): Likewise.
4317 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
4318 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
4319 * monitor.c (monitor_debug): Likewise.
4320 * parser-defs.h (parser_fprintf): Likewise.
4321 * serial.h (serial_printf): Likewise.
4322 * tui/tui-hooks.c (tui_query_hook): Likewise.
4323 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
4324 (uo_message): Likewise.
4325 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
4326 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
4328 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
4330 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4332 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
4333 (cli_table_header, cli_begin, cli_end, cli_field_int)
4334 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
4335 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
4336 Delete forward declarations.
4337 (cli_ui_out_impl): Move below the callbacks.
4338 (_initialize_cli_out): Delete.
4340 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4342 * README: Use consistent `GDB' and `GDBserver' spellings.
4344 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4346 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
4348 2010-05-01 Pedro Alves <pedro@codesourcery.com>
4350 * infrun.c (prepare_for_detach): In non-stop, context switch to
4351 the thread that got the event before handling the event.
4353 2010-04-30 Tom Tromey <tromey@redhat.com>
4355 * symtab.c (symbol_set_names): Fix typo.
4357 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4359 * python/py-param.c (parm_constants): Avoid ARI warning
4360 by adding ARI comment.
4361 (parmpy_init): Likewise.
4363 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4365 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
4366 and created type for re-use.
4368 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4370 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
4372 2010-04-29 Doug Evans <dje@google.com>
4374 * ser-base.h (reschedule): Delete prototype.
4375 * ser-base.c (reschedule): Make static.
4377 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4379 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
4380 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
4381 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
4383 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
4386 2010-04-29 Pedro Alves <pedro@codesourcery.com>
4390 * regcache.c (registers_changed): Rename to ...
4391 (registers_changed_ptid): ... this, and only delete register cache
4392 entries matching the ptid filter argument.
4393 (registers_changed): Reimplement on top of registers_changed_ptid.
4394 * regcache.h (registers_changed_ptid): Declare.
4395 * target.c (target_resume): Flush register caches.
4397 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
4398 Tom Tromey <tromey@redhat.com>
4399 Thiago Jung Bauermann <bauerman@br.ibm.com>
4401 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
4402 (SUBDIR_PYTHON_SRCS): Likewise.
4403 (py-parameter.o): New rule.
4404 * python/py-parameter.c: New file.
4405 * python/python-internal.h (gdbpy_initialize_parameter)
4406 (gdbpy_parameter, gdbpy_parameter_value)
4407 (gdbpy_parse_command_name): Declare.
4408 * python/py-cmd.c (parse_command_name): Rename to
4409 gdbpy_parse_command_name.
4410 (gdbpy_parse_command_name): Accept a starting list parameter and
4412 (cmdpy_init): Use gdbpy_parse_command_name.
4413 * python/python.c (parameter_to_python): Rename to
4414 gdbpy_parameter_to_python. Accept enum var_types and value.
4415 (gdbpy_parameter): Use gdbpy_parameter_value.
4416 (_initialize_python): Call gdbpy_initialize_parameters.
4418 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4420 * MAINTAINERS: Add myself for write after approval privileges.
4422 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
4425 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
4426 (COMMON_OBS): Add d-lang.o d-valprint.o.
4427 (HFILES_NO_SRCDIR): Add d-lang.h.
4428 * NEWS: Mention D language support.
4429 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
4430 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
4431 * d-lang.c: New file.
4432 * d-lang.h: New file.
4433 * d-valprint.c: New file.
4434 * defs.h (enum language): Add language_d.
4435 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
4436 * language.c (binop_result_type, integral_type, character_type)
4437 (string_type, boolean_type, structured_type): Add language_d.
4438 * symfile.c (init_filename_language_table): Add language_d.
4439 * symtab.c: Include d-lang.h.
4440 (symbol_init_language_specific, symbol_find_demangled_name)
4441 (symbol_natural_name, lookup_symbol_in_language)
4442 (symbol_demangled_name, symbol_matches_domain): Add language_d.
4444 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4446 * solib-svr4.c (solib_svr4_r_map): Expand function description.
4448 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4450 * symfile.c (init_filename_language_table): Register .dg files
4453 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4455 * gdbtypes.h (struct main_type): Expand comment about target_type
4458 2010-04-27 Pedro Alves <pedro@codesourcery.com>
4459 Tristan Gingold <gingold@adacore.com>
4461 * symfile.c (reread_symbols): Also search for file in libraries.
4464 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4466 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
4467 in terms of configuration.
4469 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4471 * objfiles.c: Include solist.h.
4472 (free_all_objfiles): New variable so. Check stale solist objfiles.
4473 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
4474 and no_shared_libraries.
4476 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4479 * python/py-auto-load.c (source_section_scripts): Remove trailing
4480 new-line in i18n string.
4482 2010-04-26 Doug Evans <dje@google.com>
4484 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
4486 2010-04-26 Tom Tromey <tromey@redhat.com>
4488 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
4491 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4493 Removal of config/i386/nm-i386sol2.h native configuration file.
4494 * config/i386/nm-i386sol2.h: Remove file.
4495 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
4496 * config/i386/sol2-64.mh: Idem.
4497 * config/djgpp/fnchange.lst: Remove reference to that file.
4498 * Makefile.in (HFILES_NO_SRCDIR): Idem.
4500 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4502 PR breakpoints/11531.
4503 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
4504 macro definition and related comment.
4505 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
4506 (resume): Remove code and comment related to this macro.
4508 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4510 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
4513 2010-04-24 Pedro Alves <pedro@codesourcery.com>
4515 * defs.h: Adjust comment.
4516 * filesystem.h, filesystem.c: New files.
4517 * Makefile.in (SFILES): Add filesystem.c.
4518 (COMMON_OBS): Add filesystem.o.
4519 * solib.c (solib_find): Handle DOS-based filesystems. Handle
4520 different target and host path flavours.
4521 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4522 has_dos_based_file_system on the gdbarch.
4523 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
4524 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
4525 * i386-tdep.c (i386_go32_init_abi): Ditto.
4526 * gdbarch.sh (has_dos_based_file_system): New.
4527 * gdbarch.h, gdbarch.c: Regenerate.
4528 * NEWS: Mention improved support for remote targets with DOS-based
4529 filesystems. Mention new `set/show target-file-system-kind'
4532 2010-04-23 Stan Shebs <stan@codesourcery.com>
4534 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
4536 (struct agent_reqs): Remove.
4537 (ax_reg_mask): Declare.
4538 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
4539 (free_agent_expr): Free reg_mask.
4540 (ax_print): Add scope and register mask info.
4541 (ax_reqs): Remove agent_reqs argument, use agent expression
4542 fields, and move part of register mask computation to...
4543 (ax_reg_mask): New function.
4544 * ax-gdb.c (gen_trace_static_fields): Call it.
4545 (gen_traced_pop): Ditto.
4546 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
4547 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
4548 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
4549 (gen_eval_for_expr): Ditto, and require an rvalue.
4550 (agent_command): Call ax_reqs.
4551 (agent_eval_command): Ditto.
4552 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
4553 (validate_action_line): Ditto.
4554 (collect_symbol): Ditto.
4555 (encode_actions_1): Ditto.
4557 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
4558 Paul Pluzhnikov <ppluzhnikov@google.com>
4559 Jan Kratochvil <jan.kratochvil@redhat.com>
4561 Fix deadlock on looped list of loaded shared objects.
4562 * solib-svr4.c (LM_PREV): New function.
4563 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
4564 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
4565 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
4566 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
4568 2010-04-23 Doug Evans <dje@google.com>
4570 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
4572 * configure: Regenerate.
4573 * main.c: #include "python/python.h".
4574 (captured_main): Defer loading auto-loaded scripts until after
4575 local_gdbinit has been sourced.
4576 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
4577 (load_auto_scripts_for_objfile): New function.
4578 (auto_load_new_objfile): Call it.
4579 * python/python.h (gdbpy_global_auto_load): Declare.
4580 (load_auto_scripts_for_objfile): Declare.
4582 Add support for auto-loading scripts from .debug_gdb_scripts section.
4583 * NEWS: Add entry for .debug_gdb_scripts.
4584 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
4585 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
4586 (py-auto-load.o): New rule.
4587 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
4588 * cli/cli-cmds.h (find_and_open_script): Update prototype.
4589 * python/py-auto-load.c: New file.
4590 * python/python-internal.h: #include <stdio.h>.
4591 (set_python_list, show_python_list): Declare.
4592 (gdbpy_initialize_auto_load): Declare.
4593 (source_python_script_for_objfile): Declare.
4594 * python/python.c: Remove #include of observer.h.
4595 (gdbpy_auto_load): Moved to py-auto-load.c.
4596 (GDBPY_AUTO_FILENAME): Ditto.
4597 (gdbpy_new_objfile): Delete.
4598 (source_python_script_for_objfile): New function.
4599 (set_python_list, show_python_list): Make externally visible.
4600 (_initialize_python): Move "auto-load" command to py-auto-load.c
4601 and observer_attach_new_objfile to py-auto-load.c.
4603 2010-04-23 Jerome Guitton <guitton@adacore.com>
4605 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
4606 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
4607 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
4609 (alpha_heuristic_analyze_probing_loop): New function.
4610 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
4611 and handle cases when a stack probe loop is generated.
4612 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
4613 (alpha_mdebug_max_frame_size_exceeded): New function.
4614 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
4615 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
4616 Return 0 when the maximum debuggable frame size has been exceeded.
4618 2010-04-23 Joel Brobecker <brobecker@adacore.com>
4621 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
4623 2010-04-20 Chris Moller <cmoller@redhat.com>
4627 * symtab.c (rbreak_command): Added code to include a filename
4628 specification in the rbreak argument.
4629 * NEWS: Added a brief description of filename-qualified rbreak.
4631 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4633 Fix crashes on dangling display expressions.
4634 * ada-lang.c (ada_operator_check): New function.
4635 (ada_exp_descriptor): Fill-in the field operator_check.
4636 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
4637 * jv-lang.c (exp_descriptor_java): Likewise.
4638 * m2-lang.c (exp_descriptor_modula2): Likewise.
4639 * scm-lang.c (exp_descriptor_scm): Likewise.
4640 * parse.c (exp_descriptor_standard): Likewise.
4641 (operator_check_standard): New function.
4642 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
4643 * parser-defs.h (struct exp_descriptor): New field operator_check.
4644 (operator_check_standard, exp_uses_objfile): New declarations.
4645 * printcmd.c: Remove the inclusion of solib.h.
4646 (display_uses_solib_p): Remove the function.
4647 (clear_dangling_display_expressions): Call lookup_objfile_from_block
4648 and exp_uses_objfile instead of display_uses_solib_p.
4649 * solist.h (struct so_list) <objfile>: New comment.
4650 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
4651 * symtab.h (lookup_objfile_from_block): New declaration.
4652 (struct general_symbol_info) <obj_section>: Extend the comment.
4654 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4655 Thiago Jung Bauermann <bauerman@br.ibm.com>
4657 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
4658 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
4659 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
4660 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
4661 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
4662 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
4663 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
4664 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
4665 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
4666 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
4667 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
4668 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
4669 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
4670 Define, in case <ptrace.h> doesn't provide it.
4671 (booke_debug_info): New variable.
4672 (max_slots_number): Ditto.
4673 (hw_break_tuple): New struct.
4674 (thread_points): Ditto.
4675 (ppc_threads): New variable.
4676 (PPC_DEBUG_CURRENT_VERSION): New define.
4677 (have_ptrace_new_debug_booke): New function.
4678 (ppc_linux_check_watch_resources): Renamed to ...
4679 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
4680 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
4681 (booke_cmp_hw_point): New function.
4682 (booke_find_thread_points_by_tid): Ditto.
4683 (booke_insert_point): Ditto.
4684 (booke_remove_point): Ditto.
4685 (ppc_linux_insert_hw_breakpoint): Ditto.
4686 (ppc_linux_remove_hw_breakpoint): Ditto.
4687 (get_trigger_type): Ditto.
4688 (ppc_linux_insert_watchpoint): Handle BookE processors.
4689 (ppc_linux_remove_watchpoint): Ditto.
4690 (ppc_linux_new_thread): Ditto.
4691 (ppc_linux_thread_exit): New function..
4692 (ppc_linux_stopped_data_address): Handle BookE processors.
4693 (ppc_linux_watchpoint_addr_within_range): Ditto.
4694 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
4695 to_remove_hw_breakpoint fields of the target operations struct.
4696 Add observe for the thread_exit event.
4698 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4700 * i386-linux-nat.c (regmap): Removed.
4701 (fetch_register): Replace regmap with
4702 i386_linux_gregset_reg_offset.
4703 (store_register): Likewise.
4704 (supply_gregset): Likewise.
4705 (fill_gregset): Likewise.
4707 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
4710 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
4712 2010-04-22 Chris Moller <cmoller@redhat.com>
4714 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4715 method of popping recursion-detection stack with a method based on
4716 obstack_object_size(). (Similar to the PR9167 patch below, but for
4717 the static array obstack rather than the static member obstack.)
4719 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4721 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
4722 (_initialize_amd64_linux_nat): Replace
4723 amd64_linux_gregset64_reg_offset with
4724 amd64_linux_gregset_reg_offset.
4726 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
4729 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
4731 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4734 * stabsread.c (set_length_in_type_chain): New function.
4735 (read_struct_type): Call set_length_in_type_chain function.
4736 (read_enum_type): Idem.
4738 2010-04-21 Stan Shebs <stan@codesourcery.com>
4739 Nathan Sidwell <nathan@codesourcery.com>
4741 * tracepoint.c (trace_save): Open in binary mode.
4743 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4745 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
4747 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
4748 builtin_char32 fields.
4749 * printcmd.c (decode_format): Set char size to '\0'
4750 for strings unless explicit size is given.
4751 (print_formatted): Correct calculation of NEXT_ADDRESS
4752 for 16 or 32 bit strings.
4753 (do_examine): Do not force byte size for strings.
4754 Use builtin_char16 and builtin_char32 types to display
4755 16 or 32 bit-wide strings.
4756 (x_command): Set LAST_SIZE to 'b' for string type.
4758 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
4761 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4764 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
4765 there is no .reg-xstate section.
4766 (i386_linux_core_read_description): Check XCR0 first.
4768 2010-04-21 Mike Frysinger <vapier@gentoo.org>
4770 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
4773 2010-04-21 Chris Moller <cmoller@redhat.com>
4776 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4777 method of popping recursion-detection stack with a method based on
4778 obstack_object_size().
4780 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4783 * p-valprint.c (pascal_val_print): Fix default printing of integer
4786 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4788 Fix compilation warning on gcc-4.1.2.
4789 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
4790 local variable`pc' to zero.
4792 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4794 Implement thread support with core files on alpha-tru64.
4795 * dec-thread.c (dec_thread_find_new_threads): New function,
4796 extracted from resync_thread_list.
4797 (resync_thread_list): Add OPS parameter. Replace extracted-out
4798 code by call to dec_thread_find_new_threads.
4799 (dec_thread_wait): Update call to resync_thread_list.
4800 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
4802 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4804 * ada-lang.c (value_pointer): New function.
4805 (make_array_descriptor): Call value_pointer to convert addresses to
4808 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4810 * rs6000-aix-tdep.c: #include exceptions.h.
4811 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
4812 while reading the memory at ADDR, then ADDR cannot be a function
4815 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4817 * ada-typeprint.c (ada_print_typedef): New function.
4818 * ada-lang.h (ada_print_typedef): Add declaration.
4819 * ada-lang.c (ada_language_defn): set la_print_typdef field
4820 to ada_print_typedef.
4822 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4824 * procfs.c (procfs_address_to_host_pointer): Only define when used.
4826 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4828 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
4829 (iterate_over_mappings): Adjust function profile. Add declaration.
4830 (insert_dbx_link_bpt_in_region, info_mappings_callback):
4833 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4835 * procfs.c (solib_mappings_callback): Move function up to avoid
4838 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4840 * procfs.c (find_signalled_thread, find_stop_signal): Move
4841 these functions down to define them only when used.
4843 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4845 * valprint.c (common_val_print): Fix the value before extracting
4847 * ada-lang.c (ada_to_fixed_value): Make this function extern.
4848 * ada-lang.h (ada_to_fixed_value): New function declaration.
4849 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
4850 to avoid code duplication and fix a bug in the handling of
4851 fixed types contents.
4853 2010-04-20 Tom Tromey <tromey@redhat.com>
4855 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
4856 (read_partial_die): Likewise.
4857 (dwarf_attr_name): Likewise.
4859 2010-04-20 Chris Moller <cmoller@redhat.com>
4863 * cp-valprint.c (global): Adding new static array recursion
4865 (cp_print_value_fields, cp_print_static_field): Added new static
4866 array recursion detection code.
4868 2010-04-20 Mark Kettenis <kettenis@gnu.org>
4870 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
4871 general-purpose register set should be 68 instead of 144.
4872 (i386_linux_sse_regset_sections): Likewise.
4873 (i386_linux_avx_regset_sections): Likewise.
4875 2010-04-20 Stan Shebs <stan@codesourcery.com>
4876 Nathan Sidwell <nathan@codesourcery.com>
4878 * dwarf2loc.c (struct axs_var_loc): New struct.
4879 (dwarf2_tracepoint_var_loc): New function.
4880 (dwarf2_tracepoint_var_access): New function.
4881 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
4883 (locexpr_describe_location_piece): New function.
4884 (locexpr_describe_location_1): New function.
4885 (locexpr_describe_location): Call it, update signature.
4886 (loclist_describe_location): Rewrite to loop over locations,
4888 * symtab.h (struct symbol_computed_ops): Add address to
4889 describe_location arguments, return void.
4890 * printcmd.c (address_info): Get context PC, pass to computed
4891 location description.
4892 * tracepoint.c (scope_info): Ditto.
4893 * ax-gdb.c (trace_kludge): Export.
4895 2010-04-20 Tom Tromey <tromey@redhat.com>
4897 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
4898 (struct dwarf2_cie) <segment_size>: New field.
4899 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
4900 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
4902 (read_attribute_value): Handle DW_FORM_flag_present,
4903 DW_FORM_sec_offset, DW_FORM_exprloc.
4904 (dump_die_shallow): Likewise.
4905 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
4906 (dwarf2_const_value): Handle DW_FORM_exprloc.
4907 (attr_form_is_block): Likewise.
4908 (struct line_header) <maximum_ops_per_instruction>: New field.
4909 (dwarf_decode_line_header): Set new field.
4910 (dwarf_decode_lines): Handle new field.
4912 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4914 * f-exp.y: Add new production to recognize the `logical*8' type.
4915 (LOGICAL_S8_KEYWORD): New token.
4916 * f-lang.c (enum f_primitive_types)
4917 <f_primitive_type_logical_s8>: New field.
4918 (f_language_arch_info): Handling `logical*8' type.
4919 (build_fortran_types): Building `logical*8' type.
4920 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
4922 2010-04-19 Doug Evans <dje@google.com>
4924 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
4925 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
4926 (pipe_close): Ditto.
4928 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4930 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
4932 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4934 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
4935 type to void function.
4937 2010-04-19 Stan Shebs <stan@codesourcery.com>
4938 Vladimir Prus <vladimir@codesourcery.com>
4940 * tracepoint.c (tfind_1): Add missing newline, report exit from
4942 * target.c (update_current_target): Make default
4943 to_trace_find return -1.
4945 2010-04-19 Mike Frysinger <vapier@gentoo.org>
4947 * objc-lang.c (find_methods): Move symname check up.
4949 2010-04-19 Pedro Alves <pedro@codesourcery.com>
4951 * ada-lang.c (print_recreate_exception)
4952 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
4953 not "catch unhandled".
4955 2010-04-19 Pedro Alves <pedro@codesourcery.com>
4957 PR breakpoints/8554.
4959 Implement `save-breakpoints'.
4961 * breakpoint.c (save_cmdlist): New.
4962 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
4964 (print_recreate_catch_fork): New.
4965 (catch_fork_breakpoint_ops): Install it.
4966 (print_recreate_catch_vfork): New.
4967 (catch_vfork_breakpoint_ops): Install it.
4968 (print_recreate_catch_syscall): New.
4969 (catch_syscall_breakpoint_ops): Install it.
4970 (print_recreate_catch_exec): New.
4971 (catch_exec_breakpoint_ops): Install it.
4972 (print_recreate_exception_catchpoint): New.
4973 (gnu_v3_exception_catchpoint_ops): Install it.
4974 (save_breakpoints): New, based on tracepoint_save_command, but
4975 handle all breakpoint types.
4976 (save_breakpoints_command): New.
4977 (tracepoint_save_command): Rename to...
4978 (save_tracepoints_command): ... this, and reimplement using
4980 (save_command): New.
4981 (_initialize_breakpoints): Install the "save" command prefix.
4982 Install the "save breakpoints" command. Make "save-tracepoints" a
4983 deprecated alias for "save tracepoints".
4984 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
4985 * ada-lang.c (print_recreate_exception): New.
4986 (print_recreate_catch_exception): New.
4987 (catch_exception_breakpoint_ops): Install it.
4988 (print_recreate_catch_exception_unhandled): New.
4989 (catch_exception_unhandled_breakpoint_ops): Install it.
4990 (print_recreate_catch_assert): New.
4991 (catch_assert_breakpoint_ops): Install it.
4993 * NEWS: Mention the new `save breakpoints' command. Mention the
4994 new `save tracepoints' alias and that `save-tracepoints' is now
4997 2010-04-18 Pedro Alves <pedro@codesourcery.com>
5001 * tui/tui-out.c: Include cli-out.h.
5002 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5003 (tui_begin, tui_end, tui_field_int, tui_field_skip)
5004 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
5005 (tui_message, tui_wrap_hint, tui_flush): Delete forward
5007 (struct ui_out_data): Rename to...
5008 (struct tui_ui_out_data): ... this. Remove `stream' and
5009 `suppress_output' fields, and inherit cli_ui_out_data.
5010 (tui_out_data): New typedef.
5011 (tui_ui_out_impl): Don't initialize fields staticaly.
5012 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5013 (tui_begin, tui_end): Delete.
5014 (tui_field_int): Adjust to delegate most work to the base type.
5015 (tui_field_skip): Delete.
5016 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
5017 delegate most work to the base type.
5018 (tui_spaces): Delete.
5019 (tui_text): Adjust to delegate most work to the base type.
5020 (tui_message): Delete.
5021 (tui_wrap_hint): Delete.
5022 (tui_flush): Delete.
5023 (out_field_fmt): Delete.
5024 (field_separator): Delete.
5025 (tui_out_new): Adjust to initialize the base type.
5026 (_initialize_tui_out): Initialize tui_ui_out_impl.
5027 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
5029 (cli_out_data): Adjust.
5030 (cli_ui_out_impl): Make extern.
5031 (cli_table_header, cli_field_int, cli_field_skip): Use
5032 uo_field_string instead of cli_field_string.
5033 (cli_redirect): Adjust to use cli_out_data.
5034 (cli_out_data_ctor): New.
5035 (cli_out_new): Use it.
5036 * cli-out.h (struct ui_file): Remove forward declaration.
5037 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
5038 (cli_ui_out_impl): Declare.
5039 (cli_out_data_ctor): Declare.
5040 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
5041 (uo_field_string): No longer static.
5042 (ui_out_data): Change return type to void pointer.
5043 (ui_out_new): Change `data' parameter type to void pointer.
5044 * ui-out.h (struct ui_out_data): Don't forward declare.
5045 (ui_out_data): Change return type to void pointer.
5046 (ui_out_new): Change `data' parameter type to void pointer.
5047 (uo_field_string): Declare.
5049 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5051 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
5052 instead of always false.
5054 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
5057 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
5060 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5062 * breakpoint.c (watchpoints_triggered): Use
5063 is_hardware_watchpoint.
5064 (watchpoints_triggered): Ditto.
5065 (bpstat_check_location): Use is_watchpoint and
5066 is_hardware_watchpoint.
5067 (bpstat_check_watchpoint): Use is_watchpoint and
5068 is_hardware_watchpoint.
5069 (bpstat_stop_status): Fix comment.
5070 (user_settable_breakpoint): Use is_watchpoint.
5071 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
5072 (disable_watchpoints_before_interactive_call_start): Use
5074 (enable_watchpoints_after_interactive_call_stop): Use
5076 (clear_command): Use is_watchpoint.
5077 (do_enable_breakpoint): Use is_watchpoint.
5079 2010-04-16 Mike Frysinger <vapier@gentoo.org>
5081 * solib-frv.c (enable_break1_done): Delete.
5082 (enable_break2): Do not check enable_break1_done. Move the
5083 enable_break2_done setting and call to
5084 remove_solib_event_breakpoints() to the end. Return without
5085 warning when the contents of _dl_debug_addr are 0.
5086 (enable_break): Do not set enable_break1_done.
5087 (frv_clear_solib): Likewise.
5089 2010-04-16 Kevin Buettner <kevinb@redhat.com>
5091 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
5092 instead of an error if no PLT entry is found. Return a
5093 potentially useful result.
5094 (m32c_m16c_pointer_to_address): Add code to search for function
5095 address when no .plt entry is found.
5097 2010-04-16 Stan Shebs <stan@codesourcery.com>
5099 * tracepoint.c (trace_variable_command): Run a cleanup.
5101 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5103 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
5105 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5107 Support for Windows OS Thread Information Block.
5108 * NEWS: Document new feature.
5109 * remote.c (PACKET_qGetTIBAddr): New enum element.
5110 (remote_get_tib_address): New function.
5111 (init_remote_ops): Set to_get_tib_address field
5112 to remote_get_tib_address.
5113 (_initialize_remote): Add add_packet_config_cmd
5114 for PACKET_qGetTIBAddr.
5115 * target.c (update_current_target): Set default value for
5116 new to_get_tib_address field.
5117 * target.h (target_ops): New field to_get_tib_address.
5118 (target_get_tib_address): New macro.
5119 * windows-nat.c (thread_info): Add thread_local_base field.
5120 (windows_add_thread): Add tlb argument of type 'void *'.
5121 (fake_create_process): Adapt windows_add_thread call.
5122 (get_windows_debug_event): Idem.
5123 (windows_get_tib_address): New function.
5124 (init_windows_ops): Set to_get_tib_address field
5125 to remote_get_tib_address.
5126 (_initialize_windows_nat): Replace info_w32_cmdlist
5127 initialization by a call to init_w32_command_list.
5128 (info_w32_command, info_w32_cmdlist): Removed from here...
5129 to windows-tdep.c file.
5130 * windows-tdep.h (info_w32_cmdlist): Declare.
5131 (init_w32_command_list): New external function
5133 * windows-tdep.c: Add several headers.
5134 (info_w32_cmdlist): to here, made global.
5135 (thread_information_32): New struct.
5136 (thread_information_64): New struct.
5137 (TIB_NAME): New char array.
5138 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
5139 (maint_display_all_tib): New static variable.
5140 (windows_get_tlb_type): New function.
5141 (tlb_value_read, tlb_value_write): New functions.
5142 (tlb_value_funcs): New static struct.
5143 (tlb_make_value): New function.
5144 (display_one_tib): New function.
5145 (display_tib): New function.
5146 (show_maint_show_all_tib):New function.
5147 (info_w32_command): Moved from windows-nat.c.
5148 (init_w32_command_list): New function.
5149 (_initialize_windows_tdep): New function.
5150 New "maint set/show show-all-tib" command
5151 New "$_tlb" internal variable.
5153 2010-04-16 Joel Brobecker <brobecker@adacore.com>
5155 * tui/tui-regs.c (tui_display_register): Add comment about
5157 * tui/tui-stack.c (tui_show_locator_content): Ditto.
5159 2010-04-15 Stan Shebs <stan@codesourcery.com>
5161 * frame.c: Include tracepoint.h.
5162 (get_current_frame): Allow a trace frame to be an alternate source
5163 of stack frame data.
5164 * tracepoint.c (tfind_1): Don't try to get current stack frame if
5167 2010-04-15 Pedro Alves <pedro@codesourcery.com>
5169 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
5171 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
5173 2010-04-15 Doug Evans <dje@google.com>
5175 * NEWS: Add entry for python program space support.
5176 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
5177 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
5178 (py-progspace.o): New rule.
5179 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
5181 (find_pretty_printer_from_progspace): New function.
5182 (find_pretty_printer_from_gdb): New function.
5183 (find_pretty_printer): Rewrite.
5184 * python/py-progspace.c: New file.
5185 * python/python-internal.h (program_space): Add forward decl.
5186 (pspace_to_pspace_object, pspy_get_printers): Declare.
5187 (gdbpy_initialize_pspace): Declare.
5188 * python/python.c: #include "progspace.h".
5189 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
5190 (_initialize_python): Call gdbpy_initialize_pspace.
5191 (GdbMethods): Add current_progspace, progspaces.
5193 Add -s option to source command.
5194 * NEWS: Document new option.
5195 * cli/cli-cmds.c (find_and_open_script): Add function comment.
5196 Delete from_tty and cleanupp args. Split filep arg into file and
5197 full_pathp. New arg search_path.
5198 (source_script_from_stream): New function.
5199 (source_script_with_search): New function.
5200 (source_script): Rewrite.
5201 (source_command): Parse "-s" option.
5202 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
5203 * python/python.c (source_python_script): Make file arg a const char *.
5204 Don't call fclose, leave for caller.
5205 * python/python.h (source_python_script): Update.
5207 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5208 Pedro Alves <pedro@codesourcery.com>
5210 Avoid rereading shared libraries that haven't changed.
5212 * solib.c (free_so_symbols): New function, from ...
5213 (free_so): ... here. Call it.
5214 (solib_read_symbols): Don't warn here if symbols have already been
5216 (solib_add): Warn here instead, if a pattern was specified.
5217 (reload_shared_libraries_1): New.
5218 (reload_shared_libraries): Rewrite to not fetch the library list.
5220 2010-04-14 Doug Evans <dje@google.com>
5222 * source.c (openp): Strip DOS drive letter if present before
5223 concatenating string to search path.
5225 2010-04-14 Pedro Alves <pedro@codesourcery.com>
5227 * objfiles.h (gdb_bfd_close_or_warn): Declare.
5228 * objfiles.c (gdb_bfd_close_or_warn): New.
5229 * corelow.c: Include objfiles.h
5230 (core_close): Use gdb_bfd_close_or_warn.
5231 * elfread.c (build_id_verify): Ditto.
5232 * exec.c (exec_close, exec_close_1): Ditto.
5234 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5235 Pedro Alves <pedro@codesourcery.com>
5237 Group errors for many missing shared libraries.
5239 * solist.h (struct so_list): Remove from_tty.
5240 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
5241 (solib_map_sections): Take so_list argument. Return 0 if we
5242 failed to open a BFD. Add target sections here.
5243 (symbol_add_stub): Delete.
5244 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
5245 not from_tty copied from the so_list. Don't warn a second time
5246 for a missing library.
5247 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
5248 add to the section table here. Print out a single warning for all
5250 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
5253 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5255 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
5256 error/warning messages. Capitalize and use complete sentences.
5257 (blpy_block_syms_iternext): Likewise.
5258 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
5259 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
5260 (frame_info_to_frame_object, frapy_read_var)
5261 (gdbpy_frame_stop_reason_string): Likewise.
5262 * python/py-lazy-string.c (stpy_convert_to_value)
5263 (gdbpy_create_lazy_string_object): Likewise.
5264 * python/py-objfile.c (objfpy_set_printers): Likewise.
5265 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
5266 * python/python.c (parameter_to_python): Likewise.
5267 * python/py-type.c (typy_range, typy_target): Likewise.
5268 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
5269 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
5272 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5276 * python/py-prettyprint.c (pretty_print_one_value): Test for
5278 (print_string_repr): Test for Py_None. Set flags accordingly.
5279 Return value depending on return type.
5280 (print_children): Take a value indicating whether data was printed
5281 before this function was called. Alter output accordingly.
5282 (apply_val_pretty_printer): Capture return value from
5283 print_string_repr and pass to print_children.
5285 2010-04-13 Mark Kettenis <kettenis@gnu.org>
5288 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
5289 register note sections.
5290 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
5292 (i386_linux_init_abi): Install list of supported register note
5293 sections that matches the target description.
5295 2010-04-13 Pedro Alves <pedro@codesourcery.com>
5297 * remote.c (remote_get_noisy_reply): Don't error out on empty
5299 (remote_start_remote): Update and merge tracepoints and trace
5300 state variables as long as the target supports tracepoints.
5301 (remote_trace_init): Fix prototype.
5302 (remote_download_trace_state_variable): Validate reply.
5303 (remote_trace_set_readonly_regions): Fix prototype.
5304 (remote_trace_start): Fix prototype. Check for empty reply.
5305 (remote_get_trace_status): Small cleanup.
5306 (remote_trace_stop): Fix prototype. Check for empty reply.
5307 (remote_trace_find): Check for empty reply.
5308 (remote_save_trace_data): Validate reply.
5309 (remote_set_disconnected_tracing): Check for empty reply, and
5311 (remote_set_circular_trace_buffer): Ditto.
5313 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
5315 Suppress unused value warning during compilation.
5316 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
5318 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5320 2010-04-12 Stan Shebs <stan@codesourcery.com>
5322 * tracepoint.c (tfile_xfer_partial): Check read result.
5324 2010-04-12 Mike Frysinger <vapier@gentoo.org>
5326 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
5327 * remote-sim.c (gdbsim_files_info): Likewise.
5329 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5331 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
5332 * arm-linux-nat.c (arm_linux_vfp_register_count): New
5334 (fetch_vfp_registers): New function to fetch VFP registers.
5335 (store_vfp_registers): New function to store VFP registers.
5336 (arm_linux_fetch_inferior_registers): Add support for VFP
5338 (arm_linux_store_inferior_registers): Likewise.
5339 (arm_linux_read_description): Likewise.
5340 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
5343 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
5345 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
5347 (amd64_collect_xstateregset): Likewise.
5349 2010-04-09 Stan Shebs <stan@codesourcery.com>
5351 * tracepoint.c (trace_status_mi): Report frames created.
5353 * tracepoint.c (trace_dump_command): Include default-collect
5356 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
5358 * symtab.c (find_function_start_sal): Never return SAL pointing
5359 before function start address, even if line info is missing.
5361 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5363 * NEWS: Mention tracepoints support.
5365 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5367 * tracepoint.c (trace_status_mi): Report disconnected tracing and
5368 circular trace buffer statuses.
5370 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5372 * config/djgpp/fnchange.lst: Fix typo in translations for
5373 symbol-without-target_section.exp and symbol-without-target_section.c.
5375 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5377 * breakpoint.c (condition_command): Pass condition expression to
5378 set_breakpoint_condition stripped from breakpoint number.
5380 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
5381 Thiago Jung Bauermann <bauerman@br.ibm.com>
5382 Tom Tromey <tromey@redhat.com>
5384 * breakpoint.c (condition_command): Simplify. Move condition
5386 (set_breakpoint_condition): ... here. New function.
5387 * breakpoint.h (set_breakpoint_condition): Declare.
5388 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
5389 (SUBDIR_PYTHON_SRCS): Likewise.
5390 (py-breakpoint.o): New rule.
5391 * python/py-breakpoint.c: New file.
5392 * python/python-internal.h (gdbpy_breakpoints)
5393 (gdbpy_initialize_breakpoints): Declare.
5394 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
5396 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5398 * regformats/regdat.sh: Include server.h. Don't include
5401 2010-04-08 Stan Shebs <stan@codesourcery.com>
5402 Pedro Alves <pedro@codesourcery.com>
5404 * tracepoint.h (struct trace_status): New fields disconnected_tracing
5405 and circular_buffer.
5406 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
5407 * tracepoint.c (trace_status_command): Display target's status for
5408 disconnected tracing and circular buffer.
5409 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
5410 query for non-disconnected-tracing case, remove the stop_tracing
5412 (tfile_open): Clear disconnected and circular buffer status.
5413 (trace_save): Save disconnected and circular buffer status.
5414 (parse_trace_status): Parse disconnected and circular buffer status,
5415 also recognize disconnected as a stop reason.
5416 * remote.c (remote_set_disconnected_tracing): Only set
5417 QTDisconnected if the remote end supports disconnected tracing.
5418 Warn otherwise, if trying to enable disconnected tracing.
5419 * infcmd.c (detach_command): Update disconnect_tracing call.
5420 * cli/cli-cmds.c (quit_command): Ditto.
5422 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5424 * i387-tdep.c (i387_collect_xsave): Replace abort with
5427 2010-04-08 Stan Shebs <stan@codesourcery.com>
5429 * breakpoint.c (default_collect_info): New function.
5430 (breakpoints_info): Call it.
5431 (maintenance_info_breakpoints): Ditto.
5432 (tracepoints_info): Ditto.
5434 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5436 * i387-tdep.c (i387_collect_xsave): Re-indent.
5438 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5440 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
5441 if HAVE_PTRACE_GETFPXREGS is defined.
5442 (i386_linux_read_description): Set have_ptrace_getfpxregs and
5443 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
5445 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
5446 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
5447 if .reg-xfp section doesn't exist.
5448 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
5450 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
5452 * i386-tdep.c: Include "features/i386/i386-mmx.c".
5453 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
5454 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
5455 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
5456 (i386_gdbarch_init): Update comments.
5457 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
5459 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
5461 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
5463 * features/Makefile (i386/i386-mmx-expedite): New.
5464 (i386/i386-mmx-linux-expedite): Likewise.
5465 ($(outdir)/i386/i386-mmx.dat): Likewise.
5466 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
5468 * features/i386/i386-mmx-linux.c: New.
5469 * features/i386/i386-mmx-linux.xml: Likewise.
5470 * features/i386/i386-mmx.c: Likewise.
5471 * features/i386/i386-mmx.xml: Likewise.
5472 * regformats/i386/i386-mmx-linux.dat: Likewise.
5473 * regformats/i386/i386-mmx.dat: Likewise.
5475 * features/Makefile (WHICH): Add i386/i386-mmx and
5476 i386/i386-mmx-linux.
5478 2010-04-08 Doug Evans <dje@google.com>
5480 * source.c (openp): Skip $cdir in PATH.
5482 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
5485 * python/py-lazy-string.c (stpy_convert_to_value): Check for
5487 (gdbpy_create_lazy_string_object): Allow strings with a NULL
5488 address and a zero length.
5490 2010-04-08 Hui Zhu <teawater@gmail.com>
5492 * i386-tdep.c (i386_process_record): Add support for insn
5495 2010-04-07 Doug Evans <dje@google.com>
5497 * python/python.c (source_python_script): Use ensure_python_env
5498 to prepare environment for script.
5500 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5502 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
5503 <sys/uio.h> and "i386-xstate.h".
5504 (PTRACE_GETREGSET): New.
5505 (PTRACE_SETREGSET): Likewise.
5506 (have_ptrace_getregset): Likewise.
5507 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
5509 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
5511 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
5512 (amd64_linux_store_inferior_registers): Likewise.
5513 (amd64_linux_read_description): Check and enable AVX target
5516 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
5517 and "features/i386/amd64-avx-linux.c".
5518 (amd64_linux_regset_sections): New.
5519 (amd64_linux_core_read_description): Check and enable AVX
5521 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
5522 set_gdbarch_core_regset_sections.
5523 (_initialize_amd64_linux_tdep): Call
5524 initialize_tdesc_amd64_avx_linux.
5526 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
5527 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
5528 (tdesc_amd64_avx_linux): New.
5529 (amd64_linux_update_xstateregset): Likewise.
5531 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
5532 (amd64_ymm_names): New.
5533 (amd64_ymmh_names): Likewise.
5534 (amd64_register_name): Likewise.
5535 (amd64_supply_xstateregset): Likewise.
5536 (amd64_collect_xstateregset): Likewise.
5537 (amd64_supply_xsave): Likewise.
5538 (amd64_collect_xsave): Likewise.
5539 (AMD64_NUM_REGS): Removed.
5540 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
5541 %xmmN if AVX is available.
5542 (amd64_pseudo_register_name): Support pseudo YMM registers.
5543 (amd64_regset_from_core_section): Support .reg-xstate section.
5544 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
5545 and ymm0h_regnum. Call set_gdbarch_register_name.
5546 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
5548 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
5549 AMD64_YMM15H_REGNUM.
5550 (AMD64_NUM_REGS): New.
5551 (amd64_supply_xsave): Likewise.
5552 (amd64_collect_xsave): Likewise.
5553 (amd64_register_name): Removed.
5554 (amd64_register_type): Likewise.
5556 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5558 * i387-tdep.c: Include "i386-xstate.h".
5559 (XSAVE_XSTATE_BV_ADDR): New.
5560 (xsave_avxh_offset): Likewise.
5561 (XSAVE_AVXH_ADDR): Likewise.
5562 (i387_supply_xsave): Likewise.
5563 (i387_collect_xsave): Likewise.
5565 * i387-tdep.h (I387_NUM_YMM_REGS): New.
5566 (I387_YMM0H_REGNUM): Likewise.
5567 (I387_YMMENDH_REGNUM): Likewise.
5568 (i387_supply_xsave): Likewise.
5569 (i387_collect_xsave): Likewise.
5571 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5573 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
5574 <sys/uio.h> and "i386-xstate.h".
5575 (PTRACE_GETREGSET): New.
5576 (PTRACE_SETREGSET): Likewise.
5577 (fetch_xstateregs): Likewise.
5578 (store_xstateregs): Likewise.
5579 (GETXSTATEREGS_SUPPLIES): Likewise.
5580 (regmap): Include 8 upper YMM registers.
5581 (i386_linux_fetch_inferior_registers): Support XSAVE extended
5583 (i386_linux_store_inferior_registers): Likewise.
5584 (i386_linux_read_description): Check and enable AVX target
5587 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
5588 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
5589 (i386_linux_regset_sections): Add ".reg-xstate".
5590 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
5591 (i386_linux_core_read_xcr0): New.
5592 (i386_linux_core_read_description): Check and enable AVX target
5594 (i386_linux_init_abi): Set xsave_xcr0_offset.
5595 (_initialize_i386_linux_tdep): Call
5596 initialize_tdesc_i386_avx_linux.
5598 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
5599 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
5600 (i386_linux_core_read_xcr0): New.
5601 (tdesc_i386_avx_linux): Likewise.
5602 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
5604 * i386-tdep.c: Include "i386-xstate.h" and
5605 "features/i386/i386-avx.c".
5606 (i386_ymm_names): New.
5607 (i386_ymmh_names): Likewise.
5608 (i386_ymmh_regnum_p): Likewise.
5609 (i386_ymm_regnum_p): Likewise.
5610 (i386_xmm_regnum_p): Likewise.
5611 (i386_register_name): Likewise.
5612 (i386_ymm_type): Likewise.
5613 (i386_supply_xstateregset): Likewise.
5614 (i386_collect_xstateregset): Likewise.
5615 (i386_sse_regnum_p): Removed.
5616 (i386_pseudo_register_name): Support pseudo YMM registers.
5617 (i386_pseudo_register_type): Likewise.
5618 (i386_pseudo_register_read): Likewise.
5619 (i386_pseudo_register_write): Likewise.
5620 (i386_dbx_reg_to_regnum): Return %ymmN register number for
5621 %xmmN if AVX is available.
5622 (i386_regset_from_core_section): Support .reg-xstate section.
5623 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
5624 (i386_process_record): Replace i386_sse_regnum_p with
5626 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
5627 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
5628 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
5629 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
5630 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
5631 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
5633 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
5635 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
5636 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
5638 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
5639 (I386_AVX_NUM_REGS): New.
5640 (i386_xmm_regnum_p): Likewise.
5641 (i386_ymm_regnum_p): Likewise.
5642 (i386_ymmh_regnum_p): Likewise.
5644 * common/i386-xstate.h: New.
5646 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5648 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
5650 * features/Makefile (WHICH): Add i386/i386-avx,
5651 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
5652 (i386/i386-avx-expedite): New.
5653 (i386/i386-avx-linux-expedite): Likewise.
5654 (i386/x86-64-avx-expedite):Likewise.
5655 (i386/x86-64-avx-linux-expedite): Likewise.
5656 ($(outdir)/i386/i386-avx.dat): New dependency.
5657 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
5658 ($(outdir)/i386/x86-avx-64.dat): Likewise.
5659 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
5661 * features/i386/32bit-avx.xml: New.
5662 * features/i386/64bit-avx.xml: Likewise.
5663 * features/i386/i386-avx-linux.c: Likewise.
5664 * features/i386/i386-avx-linux.xml: Likewise.
5665 * features/i386/i386-avx.c: Likewise.
5666 * features/i386/i386-avx.xml: Likewise.
5667 * features/i386/x86-64-avx-linux.c: Likewise.
5668 * features/i386/x86-64-avx-linux.xml: Likewise.
5669 * features/i386/x86-64-avx.c: Likewise.
5670 * features/i386/x86-64-avx.xml: Likewise.
5671 * regformats/i386/i386-avx-linux.dat: Likewise.
5672 * regformats/i386/i386-avx.dat: Likewise.
5673 * regformats/i386/x86-64-avx-linux.dat: Likewise.
5674 * regformats/i386/x86-64-avx.dat: Likewise.
5676 2010-04-07 Doug Evans <dje@google.com>
5678 * top.c (source_file_name): Make const char *.
5679 * top.h (source_file_name): Update.
5680 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
5682 (script_from_file): Change `file' arg to const char *.
5683 * cli/cli-script.h (script_from_file): Update.
5685 2010-04-06 Doug Evans <dje@google.com>
5687 * cli/cli-cmds.c (source_command): Run cleanups.
5689 2010-04-06 Stan Shebs <stan@codesourcery.com>
5691 * defs.h (char_ptr): Move typedef here from...
5692 * ada-lang.c (char_ptr): Remove.
5693 * charset.c (char_ptr): Remove.
5694 * tracepoint.h (struct uploaded_string): Remove.
5695 (struct uploaded_tp): Use vectors for string arrays.
5696 * tracepoint.c (trace_save): Use vectors of actions.
5697 (parse_tracepoint_definition): Ditto.
5698 (get_uploaded_tp): Clear vectors.
5699 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
5700 (next_cmd): Change to an int.
5701 (read_next_cmd): Use vector of command strings.
5703 2010-04-06 Doug Evans <dje@google.com>
5705 * top.h (source_script, cd_command): Delete.
5706 * main.c: #include "cli/cli-cmds.h"
5708 2010-04-06 Kevin Buettner <kevinb@redhat.com>
5710 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
5711 type in bytes, not bits.
5713 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5715 * stabsread.c (define_symbol): Add support for char
5716 and string constants.
5718 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5720 Remove remaining "%ll" uses.
5721 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
5723 * rs6000-nat.c (rs6000_ptrace64): Idem.
5724 * solib-pa64.c (pa64_current_sos): Idem.
5725 * solib-spu.c (spu_current_sos): Idem.
5726 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
5728 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
5730 * sh64-tdep.c (sh64_show_media_regs): Idem.
5732 2010-04-05 Stan Shebs <stan@codesourcery.com>
5734 * tracepoint.c: Include gdbcore.h.
5735 (tfile_xfer_partial): Return partial results, also try reading
5737 (tfile_has_all_memory): New function.
5738 (init_tfile_ops): Use it.
5740 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
5743 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
5744 the changes in data-directory.
5745 (init_sysinfo): Reload the syscall XML file if the data-directory
5748 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5751 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
5753 2010-04-04 Stan Shebs <stan@codesourcery.com>
5754 Nathan Sidwell <nathan@codesourcery.com>
5756 * breakpoint.c (breakpoint_1): Add filter argument, return number of
5757 breakpoints printed.
5758 (is_hardware_watchpoint): Make argument const.
5759 (is_watchpoint): Ditto.
5760 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
5762 (breakpoints_info): Pass NULL to breakpoint_1.
5763 (maintenance_info_breakpoints): Ditto.
5764 (watchpoints_info): New function.
5765 (tracepoints_info): Use breakpoint_1 filter.
5766 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
5767 (_initialize_breakpoint): Make "info watchpoints" its own command.
5768 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
5769 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
5771 2010-04-04 Stan Shebs <stan@codesourcery.com>
5773 * tracepoint.c (tfile_fetch_registers): Add fallback case.
5775 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5777 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
5778 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
5780 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5782 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
5783 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
5785 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5787 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
5790 2010-04-02 Hui Zhu <teawater@gmail.com>
5792 * i386-tdep.c (OT_DQUAD): New enum.
5793 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
5794 SSE3, SSSE3 and SSE4.
5796 2010-04-02 Hui Zhu <teawater@gmail.com>
5798 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
5801 2010-04-02 Pedro Alves <pedro@codesourcery.com>
5803 * tracepoint.c (trace_dump_actions): New, factored out from
5804 trace_dump_command, and adjusted to recurse into while-stepping's
5806 (trace_dump_command): Use it.
5808 2010-04-02 Pedro Alves <pedro@codesourcery.com>
5810 * breakpoint.h (struct counted_command_line): Moved definition to
5811 breakpoint.c, and forward declare.
5812 (breakpoint_commands): Declare.
5813 * breakpoint.c (struct counted_command_line): Moved here.
5814 (breakpoint_commands): New.
5815 * tracepoint.c (encode_actions): Use breakpoint_commands.
5816 * remote.c (remote_download_tracepoint): Ditto.
5818 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5820 * remote.c (remote_parse_stop_reply): Use hex_string instead
5821 of phex_nz for error.
5823 2010-04-01 Stan Shebs <stan@codesourcery.com>
5824 Nathan Sidwell <nathan@codesourcery.com>
5826 * tracepoint.h (enum actionline_type): Remove.
5827 (validate_actionline): Change return to void.
5828 * tracepoint.c (report_agent_reqs_errors): New function.
5829 (validate_actionline): Call it, change return to void, report errors
5831 (collect_symbol): Call report_agent_reqs_errors.
5832 (encode_actions_1): Ditto.
5833 (encode_actions): Don't expect a result from validate_actionline.
5835 2010-04-01 Stan Shebs <stan@codesourcery.com>
5837 * tracepoint.c (trace_start_command): Confirm if trace is running.
5838 (trace_stop_command): Error if trace not running.
5840 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5842 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
5843 (AMD64_NUM_LOWER_BYTE_REGS): New.
5844 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
5845 (amd64_pseudo_register_write): Likewise.
5846 (amd64_init_abi): Set num_byte_regs to 20.
5848 2010-04-01 Pedro Alves <pedro@codesourcery.com>
5850 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
5851 (prev_breakpoint_count): New.
5852 (set_breakpoint_count): Adjust.
5853 (rbreak_start_breakpoint_count): New.
5854 (start_rbreak_breakpoints): Adjust.
5855 (end_rbreak_breakpoints): Adjust.
5856 (struct commands_info) <arg>: New field.
5857 (do_map_commands_command): Tweak output to include breakpoint spec
5859 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
5860 ARG was empty on entry. Set INFO's arg.
5861 (create_breakpoint): Adjust.
5863 * NEWS: Clarify `commands' changes.
5865 2010-04-01 Pedro Alves <pedro@codesourcery.com>
5867 * tracepoint.c: Include stack.h.
5868 (struct add_local_symbols_data): New.
5869 (do_collect_symbol): New.
5870 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
5871 iterate_over_block_local_vars.
5872 * stack.c (print_block_frame_locals): Rewrite as ...
5873 (iterate_over_block_locals): ... this. Take a callback function
5874 pointer and generic data pointer, and call that instead of
5875 print_variable_and_value.
5876 (struct print_variable_and_value_data): New.
5877 (do_print_variable_and_value): New.
5878 (iterate_over_block_local_vars): New, abstracted out from
5879 print_frame_local_vars.
5880 (print_frame_local_vars): Rewrite using
5881 iterate_over_block_local_vars.
5882 (iterate_over_block_arg_vars): New, abstracted out from
5883 print_frame_arg_vars.
5884 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
5885 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
5886 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
5888 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
5890 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
5891 instructions. Use the PC+4 if the base of the TBB or TBH is the
5894 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5896 Fix crash on reading wrong function declaration DWARF.
5897 * dwarf2read.c (read_subroutine_type): New variable void_type.
5898 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
5899 more close to their use.
5901 2010-03-31 Stan Shebs <stan@codesourcery.com>
5903 * breakpoint.c (tracepoint_save_command): Include variables,
5904 conditionals, tracepoint types, and default-collect.
5905 * tracepoint.c (save_trace_state_variables): New function.
5906 * tracepoint.h (save_trace_state_variables): Declare it.
5908 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
5910 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
5912 2010-03-30 Keith Seitz <keiths@redhat.com>
5914 * c-typeprint.c (c_type_print_args): Don't print "void"
5915 for java, regardless of whether it is TYPE_PROTOTYPED.
5916 Use the passed-in language instead of current_language.
5917 (c_type_print_varspec_suffix): Use current_language instead
5918 of assuming language_c.
5919 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
5920 any return type specifier from the physname.
5922 2010-03-30 Pedro Alves <pedro@codesourcery.com>
5924 * tui/tui-interp.c (tui_is_toplevel): New.
5926 (tui_allowed_p): New.
5927 * tui/tui.c (tui_enable): Check if the TUI is allowed before
5929 * tui/tui.h (tui_allowed_p): Declare.
5931 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
5933 * serial.h: Include winsock2.h before windows.h.
5935 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
5937 * NEWS: Mention xmlRegisters= in qSupported packet.
5939 * i386-tdep.c: Include "remote.h".
5940 (_initialize_i386_tdep): Call register_remote_support_xml.
5942 * remote.c (remote_support_xml): New.
5943 (register_remote_support_xml): Likewise.
5944 (remote_query_supported_append): Likewise.
5945 (remote_query_supported): Support remote_support_xml.
5947 * remote.h (register_remote_support_xml): New.
5949 2010-03-29 Stan Shebs <stan@codesourcery.com>
5951 * tracepoint.c (trace_find_line_command): Remove dead code.
5953 * tracepoint.h (struct uploaded_string): New struct.
5954 (struct uploaded_tp): New fields for source strings.
5955 * breakpoint.c (this_utp, next_cmd): New globals.
5956 (read_uploaded_action): New function.
5957 (create_tracepoint_from_upload): Fill in more parts
5959 * tracepoint.c (encode_source_string): New function.
5960 (trace_save): Write out source strings, fix error checks.
5961 (parse_tracepoint_definition): Add source string parsing.
5962 * remote.c (PACKET_TracepointSource): New packet type.
5963 (remote_download_command_source): New function.
5964 (remote_download_tracepoint): Download source pieces also.
5965 (_initialize_remote): Add packet config command.
5967 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
5970 * tracepoint.c (start_tracing): Check tracepoints before sending
5971 commands to target, don't start if all tracepoints disabled.
5973 2010-03-28 Pedro Alves <pedro@codesourcery.com>
5975 * cli/cli-script.c (process_next_line): Handle 'stepping'.
5977 2010-03-26 Stan Shebs <stan@codesourcery.com>
5979 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
5981 2010-03-26 Tom Tromey <tromey@redhat.com>
5983 * breakpoint.c (commands_command_1): Duplicate 'arg'.
5985 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5987 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
5988 (skip_prologue_sal): Remove local definition.
5989 (resolve_sal_pc): Remove now unnecessary code.
5990 * linespec.c (minsym_found): Call skip_prologue_sal.
5991 * symtab.c (find_function_start_pc): Remove.
5992 (find_function_start_sal): Extract prologue skipping into ...
5993 (skip_prologue_sal): ... this new function. Handle code both
5994 with and without debug info. Respect SAL's explicit_pc and
5995 explicit_line flags. Inline old find_function_start_pc.
5996 * symtab.h (find_function_start_pc): Remove.
5997 (skip_prologue_sal): Add prototype.
5999 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6001 * dwarf2read.c (read_func_scope): Also scan specification DIEs
6002 for DW_TAG_imported_module children.
6004 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6006 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
6007 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
6008 * completer.c (add_struct_fields): Fix inverted logic.
6010 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6012 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
6014 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6016 * tracepoint.c (current_trace_status): Don't make sure error_desc
6018 (parse_trace_status): Release a previous error_desc string, and
6019 set it to NULL by default. If stop reason is tracepoint_error,
6020 make sure error_desc is not left NULL.
6022 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6024 * tracepoint.c (trace_save): Remove X from tracepoint error
6027 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6029 * tracepoint.c (parse_trace_status): Don't allow plain strings in
6030 the terror description. Don't expect an X prefix.
6032 2010-03-25 Stan Shebs <stan@codesourcery.com>
6034 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
6035 (struct trace_status): New field error_desc.
6036 * tracepoint.c (stop_reason_names): Add terror.
6037 (current_trace_status): Ensure non-NULL error description.
6038 (trace_status_command): Add error report.
6039 (trace_status_mi): Ditto.
6040 (trace_save): Add special case for error description.
6041 (parse_trace_status): Add case for errors.
6043 2010-03-25 Keith Seitz <keiths@redhat.com>
6045 * dwarf2read.c (read_subroutine_type): If the compilation unit
6046 language is Java, mark any formal parameter named "this" as
6047 artificial (GCC/43521).
6048 (dwarf2_name): Add special handling for Java constructors.
6050 2010-03-25 Tom Tromey <tromey@redhat.com>
6052 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
6053 * infrun.c (handle_inferior_event): Change initialization of
6055 (handle_inferior_event): Change assignment to stop_stack_dummy.
6056 (normal_stop): Update use of stop_stack_dummy.
6057 (struct inferior_status) <stop_stack_dummy>: Change type.
6058 * inferior.h (stop_stack_dummy): Update.
6059 * infcmd.c (stop_stack_dummy): Change type.
6060 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
6062 (call_function_by_hand): Call set_std_terminate_breakpoint.
6063 Rewrite std::terminate handling.
6064 * breakpoint.h (enum bptype) <bp_std_terminate,
6065 bp_std_terminate_master>: New.
6066 (enum stop_stack_kind): New.
6067 (struct bpstat_what) <call_dummy>: Change type.
6068 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
6070 * breakpoint.c (create_std_terminate_master_breakpoint): New
6072 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
6073 Call create_std_terminate_master_breakpoint.
6074 (print_it_typical): Handle new breakpoint kinds.
6075 (bpstat_stop_status): Handle bp_std_terminate_master.
6076 (bpstat_what): Correctly set call_dummy field. Handle
6077 bp_std_terminate_master and bp_std_terminate.
6078 (print_one_breakpoint_location): Update.
6079 (allocate_bp_location): Update.
6080 (set_std_terminate_breakpoint): New function.
6081 (delete_std_terminate_breakpoint): Likewise.
6082 (create_thread_event_breakpoint): Update.
6083 (delete_command): Update.
6084 (breakpoint_re_set_one): Update.
6085 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
6087 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6089 * symfile.c (build_section_addr_info_from_bfd): New.
6090 (build_section_addr_info_from_objfile): Base it on
6091 build_section_addr_info_from_bfd.
6092 (addrs_section_compar, addrs_section_sort): New.
6093 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
6094 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
6095 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
6097 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
6099 * elfread.c (find_separate_debug_file_by_buildid):
6100 Remove unused local variable.
6102 2010-03-24 Tom Tromey <tromey@redhat.com>
6104 PR breakpoints/9352:
6105 * NEWS: Mention changes to `commands' and `rbreak'.
6106 * symtab.c (do_end_rbreak_breakpoints): New function.
6107 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
6108 end_rbreak_breakpoints.
6109 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
6110 (set_breakpoint_count): Likewise. Clear last_was_multi.
6111 (multi_start, multi_end, last_was_multi): New globals.
6112 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
6114 (struct commands_info): New
6115 (do_map_commands_command): New function.
6116 (commands_command_1): New function.
6117 (commands_command): Use it.
6118 (commands_from_control_command): Likewise.
6119 (do_delete_breakpoint): New function.
6120 (delete_command): Use it.
6121 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
6122 (do_map_disable_breakpoint): New function.
6123 (disable_command): Use it.
6124 (do_map_enable_breakpoint): New function.
6125 (enable_command): Use it.
6126 (enable_once_breakpoint): Add argument.
6127 (enable_once_command): Update.
6128 (enable_delete_breakpoint): Add argument.
6129 (enable_delete_command): Update.
6130 (break_command_really): Set last_was_multi when needed.
6131 (check_tracepoint_command): Fix formatting.
6132 (validate_commands_for_breakpoint): New function.
6133 (breakpoint_set_commands): Use it.
6134 (tracepoint_save_command): Update.
6135 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
6138 2010-03-24 Tom Tromey <tromey@redhat.com>
6140 * breakpoint.h (struct counted_command_line): New struct.
6141 (struct breakpoint) <commands>: Change type.
6142 (struct bpstats) <commands>: Change type.
6143 <commands_left>: New field.
6144 * breakpoint.c (alloc_counted_command_line): New function.
6145 (incref_counted_command_line): Likewise.
6146 (decref_counted_command_line): Likewise.
6147 (do_cleanup_counted_command_line): Likewise.
6148 (make_cleanup_decref_counted_command_line): Likewise.
6149 (breakpoint_set_commands): Use decref_counted_command_line and
6150 alloc_counted_command_line.
6151 (commands_command): Don't error if breakpoint commands are
6153 (commands_from_control_command): Likewise.
6154 (bpstat_free): Update.
6155 (bpstat_copy): Likewise.
6156 (bpstat_clear_actions): Likewise.
6157 (bpstat_do_actions_1): Likewise.
6158 (bpstat_stop_status): Likewise.
6159 (print_one_breakpoint_location): Likewise.
6160 (delete_breakpoint): Likewise.
6161 (bpstat_alloc): Initialize new field.
6162 (tracepoint_save_command): Update.
6163 * tracepoint.c (encode_actions): Update.
6164 (trace_dump_command): Update.
6166 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6168 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
6169 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
6170 (read_structure_type): For RealView, set TYPE_STUB on structures with
6171 no byte size and no children.
6172 (read_subroutine_type): Mark functions as prototyped by default.
6173 * symtab.c (producer_is_realview): New function.
6174 * symtab.h (expand_line_sal): Fix declaration formatting.
6175 (producer_is_realview): Declare.
6177 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6179 * arm-tdep.c (skip_prologue_function): New function.
6180 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
6181 (thumb_analyze_prologue): Document return value. Recognize more
6182 Thumb instructions, skippable calls, and some Thumb-2 instructions.
6184 (arm_skip_prologue): Remove call dummy check. Check the prologue
6185 for non-GNU compilers.
6186 (arm_instruction_changes_pc): New function.
6187 (arm_analyze_prologue): New function, broken out from
6188 arm_scan_prologue. Recognize more ARM instructions and skippable
6189 calls. Update comments. Handle NULL cache. Return the address
6190 of the first unrecognized instruction. Do not skip past other
6191 instructions which change control flow. Add debug output.
6192 (arm_scan_prologue): Use arm_analyze_prologue.
6193 (ARM_PC_32): Delete.
6194 (shifted_reg_val): Simplify ARM_PC_32 check.
6196 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6198 * tracepoint.c (tvariables_info_1): Actually compute
6199 the number of rows in the result.
6201 2010-03-24 Pedro Alves <pedro@codesourcery.com>
6203 * remote.c (crc32): Constify `buf' parameter.
6204 (remote_verify_memory): New, abstracted out from...
6205 (compare_sections_command): ... this. Remove hardcoded target
6207 (init_remote_ops): Install remote_verify_memory.
6208 * target.c (target_verify_memory): New.
6209 * target.h (struct target_ops) <to_verify_memory>: New field.
6210 (target_verify_memory): Declare.
6212 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6214 Implement -trace-save.
6216 * mi-cmds.h (mi_cmds_trace_save): Declare.
6217 * mi-cmds.c (mi_cmds): Register -trace-save.
6218 * mi/mi-main.c (mi_cmd_trace_save): New.
6219 * remote.c (remote_save_trace_data): Take const parameter.
6220 * target.h (struct target_ops::to_save_trace_data): Take
6222 * target.c (update_current_target): Adjust to the above.
6223 * tracepoint.c (trave_save): New, extracted from
6224 (trace_save_command): ...this.
6225 (tfile_trace_find): Remove message that is unnecessary now
6226 that 'tfind' reports found frame.
6227 * tracepoint.h (trace_save): Declare.
6229 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6231 Implement -trace-find.
6233 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
6234 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
6235 * mi/mi-main.c (mi_cmd_trace_find): New.
6236 * target.h (struct target_ops): Document to_trace_find.
6237 * tracepoint.h (tfind_1): Declare.
6238 * tracepoint.c (finish_tfind_command): Rename to...
6240 * remote.c (remote_trace_find): Return -1 if target say
6241 there's no frame. Improve error diagnostics.
6243 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6245 -trace-define-variable and -trace-list-variables.
6247 * tracepoint.c (create_trace_state_variable): Make
6248 private copy of name, as opposed to assuming the
6249 pointer lives forever.
6250 (tvariables_info_1): New.
6251 (tvariables_info): Use the above.
6252 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
6254 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
6255 and -trace-list-variables.
6256 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
6257 (mi_cmd_trace_list_variables): New.
6258 * mi/mi-main.c (mi_cmd_trace_define_variable)
6259 (mi_cmd_trace_list_variables): New.
6261 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6263 Implement -break-passcount.
6265 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
6266 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
6267 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
6269 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6271 -trace-start/-trace-end/-trace-status.
6273 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
6275 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
6276 (mi_cmd_trace_stop): Declare.
6277 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
6278 (mi_cmd_trace_stop): New.
6279 * tracepoint.c (start_tracing): New, extracted from...
6280 (trace_start_command): ...this.
6281 (trace_status_mi): New.
6282 * tracepoint.h (struct trace_status): Document
6283 stopping_tracepoint.
6284 (start_tracing, stop_tracing, trace_status_mi): Declare.
6286 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6288 Implement creating tracepoints with -break-insert.
6290 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
6291 to mean that tracepoint should be created.
6293 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6295 * breakpoint.c (check_no_tracepoint_commands): Use
6296 current spelling of 'teval'.
6298 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6300 Unify actions and commands
6302 * defs.h (read_command_lines, read_command_lines_1): New
6303 parameters validator and closure.
6304 * tracepoint.h (struct action_line): Remove.
6305 * breakpoint.h (struct breakpoint): Remove the 'actions'
6307 * defs.h (enum command_control_type): New value
6308 while_stepping_control.
6309 (struct command_line): Add comments.
6310 * breakpoint.c (breakoint_is_tracepoint): New.
6311 (breakpoint_set_commands): For tracepoints,
6312 verify the commands are permissible.
6313 (check_tracepoint_commands): New.
6314 (commands_command): Require that each new line is validated using
6315 check_tracepoint_command, if we set commands for a tracepoint.
6316 (create_tracepoint_from_upload): Likewise.
6317 (print_one_breakpoint_location): Remove the code to print
6318 actions specifically.
6319 (tracepoint_save_command): Relay to print_command_lines.
6320 * cli/cli-script.c (process_next_line): New parameters validator
6321 and closure. Handle 'while-stepping'. Call validator if not null.
6322 (read_command_lines, read_command_lines1): Likewise.
6323 (recurse_read_control_structure): New parameters validator and
6324 closure. Handle while_stepping_control.
6325 (print_command_lines): Handle while-stepping.
6326 (get_command_line, define_command, document_command): Adjust.
6327 * remote.c (remote_download_tracepoint): Adjust.
6328 * tracepoint.c (make_cleanup_free_actions, read_actions)
6329 (free_actions, do_free_actions_cleanup): Remove.
6330 (trace_actions_command): Use read_command_lines.
6331 (validate_actionline): Use error in one place.
6332 (encode_actions_1): New, extracted from...
6333 (encode_actions): ...this. Also use cleanups for exception
6335 (trace_dump_command): Adjust.
6336 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
6339 2010-03-23 Mike Frysinger <vapier@gentoo.org>
6341 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
6343 2010-03-22 Stan Shebs <stan@codesourcery.com>
6345 * value.c (value_static_field): Be lazy about the field's value.
6347 2010-03-22 Reid Kleckner <reid@kleckner.net>
6350 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
6352 (disable_breakpoints_in_shlibs): Likewise.
6354 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
6356 * dwarf2read.c (partial_die_parent_scope): Work around buggy
6357 GCC 4.1 debug info generation (GCC PR c++/28460).
6358 (determine_prefix): Likewise.
6360 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
6362 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
6364 * tui/tui-layout.c (extract_display_start_addr): Likewise.
6366 2010-03-19 Stan Shebs <stan@codesourcery.com>
6368 * ax-gdb.c (gen_fetch): Handle bool.
6369 (gen_usual_unary): Ditto.
6371 (gen_equal): New function.
6372 (gen_less): New function.
6373 (gen_expr_binop_rest): Call them, also return integer type from
6377 2010-03-19 Tom Tromey <tromey@redhat.com>
6379 * jv-lang.c (jv_dynamics_objfile_data_key)
6380 (jv_type_objfile_data_key): New globals.
6381 (class_symtab): Move earlier.
6382 (jv_per_objfile_free): New function.
6383 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
6385 Remove ancient #if 1.
6386 (add_class_symbol): Remove redundant declaration.
6387 (java_lookup_class): Use alloc_type, not alloc_type_arch.
6388 (java_link_class_type): Mark as static. Update.
6389 (jv_clear_object_type): New function.
6390 (set_java_object_type): Likewise.
6391 (get_java_object_type): Use set_java_object_type.
6392 (is_object_type): Likewise.
6393 (_initialize_java_language): Register new objfile keys.
6394 (get_java_class_symtab): Add 'gdbarch' parameter.
6395 (add_class_symtab_symbol): Update.
6396 (type_from_class): Update.
6398 2010-03-19 Stan Shebs <stan@codesourcery.com>
6400 * ax-general.c (ax_const_l): Fix a sizing bug.
6402 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6406 2010-03-18 Stan Shebs <stan@codesourcery.com>
6407 Pedro Alves <pedro@codesourcery.com>
6409 * target.h (struct target_ops): New method
6410 to_set_circular_trace_buffer.
6411 (target_set_circular_trace_buffer): New macro.
6412 * target.c (update_current_target): Add
6413 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
6415 * remote.c (remote_set_circular_trace_buffer): New function.
6416 (init_remote_ops): Add it to vector.
6417 * tracepoint.h (struct trace_status): New field traceframes_created,
6418 change buffer_size and buffer_free to int.
6419 * tracepoint.c (circular_trace_buffer): New global.
6420 (start_tracing): Send values of disconnected tracing and circular
6421 trace buffer settings.
6422 (set_circular_trace_buffer): New function.
6423 (parse_trace_state): Handle total space and frames created.
6424 (trace_status_command): Display total space and total frames
6426 (trace_save): Write out new status values.
6427 (parse_trace_status): Set traceframe_count, traceframes_created,
6428 buffer_free and buffer_size to -1 by default.
6429 (_initialize_tracepoint): New setshow for circular-trace-buffer.
6430 * NEWS: Mention the circular trace buffer option.
6432 2010-03-18 Tom Tromey <tromey@redhat.com>
6434 * infcmd.c (finish_command_continuation): Wrap print_return_value
6437 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6439 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
6440 DIE has a name before creating the associated partial symbol.
6441 (read_func_scope): Emit a complaint if the subprogram does not
6442 have a name or when we can't extract the subprogram PC bounds.
6444 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6446 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
6447 instead of selected frame architecture.
6449 2010-03-18 Pedro Alves <pedro@codesourcery.com>
6451 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
6452 a valid selected thread, and that it is not running.
6453 (advance_command): Ditto.
6454 (finish_command): Ditto.
6456 2010-03-17 Stan Shebs <stan@codesourcery.com>
6458 * ax-gdb.c (require_rvalue): Disallow non-scalars.
6460 * infcall.c: Include tracepoint.h.
6461 (call_function_by_hand): Disallow calls in tfind mode.
6462 * infcmd.c: Include tracepoint.h.
6463 (ensure_not_tfind_mode): New function.
6464 (continue_1): Call it.
6466 (jump_command): Ditto.
6467 (signal_command): Ditto.
6468 (advance_command): Ditto.
6469 (until_command): Ditto.
6470 (finish_command): Ditto.
6471 * tracepoint.h (disconnect_or_stop_tracing): Declare.
6473 * ax-gdb.h (struct axs_value): New field optimized_out.
6474 (gen_trace_for_var): Add gdbarch argument.
6475 * ax-gdb.c (gen_trace_static_fields): New function.
6476 (gen_traced_pop): Call it, add gdbarch argument.
6477 (gen_trace_for_expr): Update call to it.
6478 (gen_trace_for_var): Ditto, and report optimized-out variables.
6479 (gen_struct_ref_recursive): Check for optimized-out value.
6480 (gen_struct_elt_for_reference): Ditto.
6481 (gen_static_field): Pass gdbarch instead of expression, assume
6482 optimization if field not found.
6483 (gen_var_ref): Set the optimized_out flag.
6484 (gen_expr): Error on optimized-out variable.
6485 * tracepoint.c (collect_symbol): Handle struct-valued vars as
6486 expressions, skip optimized-out variables with computed locations.
6487 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
6488 erroring out if location expression missing.
6489 (loclist_tracepoint_var_ref): Don't error out here.
6491 2010-03-17 Tom Tromey <tromey@redhat.com>
6493 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
6494 DWARF data is available.
6496 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
6498 * symfile.c (generic_load): Reset breakpoints after loading.
6500 2010-03-17 Tom Tromey <tromey@redhat.com>
6502 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
6504 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6506 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
6507 create_breakpoint call, adjust the parameters.
6509 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6510 Chandru <chandru@in.ibm.com>
6512 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
6513 * valarith.c (value_subscripted_rvalue): Suppress error if
6514 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
6516 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
6518 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
6520 2010-03-16 Joel Brobecker <brobecker@adacore.com>
6522 * ada-tasks.c (task_command_1): Check that the task ptid is valid
6523 before doing the associated thread switch.
6525 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
6527 * MAINTAINERS: Update my email address.
6529 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
6531 Simplify MI breakpoint setting.
6533 * breakpoint.c (break_command_really): Make nonstatic and
6535 (create_breakpoint): ...this. Rename prior function by this name
6537 (create_breakpoint_sal): ...this.
6538 (create_breakpoints): Rename to...
6539 (create_breakpoints_sal): ...this.
6540 (set_breakpoint): Remove.
6541 * breakpoint.h: Adjust to above changes.
6542 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
6544 2010-03-15 Stan Shebs <stan@codesourcery.com>
6546 * ax-gdb.c: Include cp-support.h.
6547 (find_field): Remove.
6548 (gen_primitive_field): New function.
6549 (gen_struct_ref_recursive): New function.
6550 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
6552 (gen_static_field): New function.
6553 (gen_struct_elt_for_reference): New.
6554 (gen_namespace_elt): New.
6555 (gen_maybe_namespace_elt): New.
6556 (gen_aggregate_elt_ref): New.
6557 (gen_expr): Add OP_SCOPE, display opcode name in error message.
6559 2010-03-15 Tom Tromey <tromey@redhat.com>
6561 * dwarf2read.c (die_needs_namespace): Also return 0 for
6564 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
6567 * cp-support.h: Added char *declaration element to using_direct
6569 (cp_add_using): Added char *declaration argument.
6570 (cp_add_using_directive): Ditto.
6571 (cp_lookup_symbol_imports): made extern.
6572 * cp-namespace.c: Updated with the above changes.
6573 * dwarf2read.c (read_import_statement): Ditto.
6574 (read_namespace): Ditto.
6575 (read_import_statement): Support import declarations.
6576 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
6578 Added support for 'declaration_only' search.
6579 (cp_lookup_symbol_namespace): Attempt to search for the name as
6580 is before consideration of imports.
6581 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
6582 search at every block level search.
6583 Now takes language argument.
6584 (lookup_symbol_aux): Updated.
6586 2010-03-15 Tom Tromey <tromey@redhat.com>
6588 * c-exp.y (name_not_typename): Add 'operator' clause.
6590 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
6592 * configure.ac: Exit if ${gdb_target_obs}" is not set.
6593 * configure: Regenerate.
6595 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6597 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
6598 and ".sdynbss". Update the comment.
6600 2010-03-15 Jie Zhang <jie@codesourcery.com>
6602 * MAINTAINERS: Update my email address.
6604 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6606 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
6608 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6610 * charset.c [USE_WIN32API]: Include <windows.h>.
6611 (_initialize_charset): Correct type of w32_host_default_charset.
6613 2010-03-14 Pedro Alves <pedro@codesourcery.com>
6615 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
6617 2010-03-12 Tom Tromey <tromey@redhat.com>
6620 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
6621 in a lexical block does not need a namespace.
6622 (new_symbol) <DW_TAG_variable>: Put extern variables on
6623 list_in_scope in all cases.
6625 2010-03-12 Stan Shebs <stan@codesourcery.com>
6627 * ax-gdb.c (gen_expr): Add shift expressions.
6628 (gen_expr_binop_rest): Ditto.
6630 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
6632 * buildsym.c (finish_block): Reset using_directives pointer
6633 after block initialization.
6635 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
6637 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
6638 * i386-tdep.c (i386_word_names): Likewise.
6640 2010-03-12 Pedro Alves <pedro@codesourcery.com>
6642 * target.c (memory_xfer_partial): Don't use the stack cache if
6643 inspecting trace frames.
6644 * tracepoint.c (finish_tfind_command): Invalidate the target
6647 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6649 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
6650 for the PIC displacement, print also the displacement value.
6651 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
6653 2010-03-10 Kevin Buettner <kevinb@redhat.com>
6655 * remote-mips.c (close_ports, mips_initialize_cleanups)
6656 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
6657 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
6658 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
6659 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
6660 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
6661 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
6662 comments describing each of these functions.
6663 (mips_enter_debug, mips_exit_debug, common_open)
6664 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
6665 blank line after the comment describing the function.
6667 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6669 * solib-svr4.c (svr4_exec_displacement): Return now success, new
6670 parameter displacementp. Update comment.
6671 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
6672 element exists. Return if svr4_exec_displacement was not successful.
6675 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6676 Daniel Jacobowitz <dan@codesourcery.com>
6678 * solib-svr4.c (read_program_header): Support type == -1 to read
6679 all program headers.
6680 (read_program_headers_from_bfd): New function.
6681 (svr4_static_exec_displacement): Remove and move the comment ...
6682 (svr4_exec_displacement): ... here. Remove variable found. New
6683 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
6684 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
6685 targets using read_program_headers_from_bfd. Remove the call of
6686 svr4_static_exec_displacement.
6688 2010-03-10 Tom Tromey <tromey@redhat.com>
6690 * dwarf2read.c (struct pubnames_header): Remove.
6691 (_PUBNAMES_HEADER): Remove.
6692 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
6693 (struct aranges_header): Remove.
6694 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
6695 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
6696 (PUBNAMES_SECTION): Remove.
6697 (ARANGES_SECTION): Remove.
6698 (dwarf2_locate_sections): Don't handle pubnames or aranges.
6699 (dwarf2_build_psymtabs): Remove dead code.
6700 (dwarf2_build_psymtabs_easy): Remove.
6702 2010-03-10 Tom Tromey <tromey@redhat.com>
6704 * elfread.c (elf_symfile_read): Don't call
6705 dwarf2_build_frame_info.
6706 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
6707 (struct dwarf2_per_objfile) <objfile>: New field.
6708 (dwarf2_has_info): Now idempotent. Set objfile field.
6709 (dwarf2_read_section): Check and set readin field. Call
6711 (dwarf2_build_psymtabs): Don't read all sections.
6712 (read_type_comp_unit_head): Read types section.
6713 (create_debug_types_hash_table): Likewise.
6714 (init_cu_die_reader): Add asserts.
6715 (process_type_comp_unit): Add assert.
6716 (dwarf2_build_psymtabs_hard): Read info section.
6717 (load_partial_comp_unit): Add assert.
6718 (create_all_comp_units): Read info section.
6719 (load_full_comp_unit): Likewise.
6720 (dwarf2_ranges_read): Read ranges section.
6721 (dwarf2_record_block_ranges): Add assert.
6722 (dwarf2_read_abbrevs): Read abbrev section.
6723 (read_indirect_string): Read str section.
6724 (dwarf_decode_line_header): Read line section.
6725 (read_signatured_type_at_offset): Read types section.
6726 (dwarf_decode_macros): Read macinfo section.
6727 (dwarf2_symbol_mark_computed): Read loc section.
6728 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
6729 dwarf2_build_frame_info.
6730 (dwarf2_build_frame_info): Unconditionally set
6731 dwarf2_frame_objfile_data on the objfile.
6732 * configure.ac: Check for posix_madvise.
6733 * config.in, configure: Rebuild.
6735 2010-03-10 Tom Tromey <tromey@redhat.com>
6737 * xcoffread.c (xcoff_start_psymtab): Update.
6738 (xcoff_end_psymtab): Update.
6739 * psymtab.c (allocate_psymtab): Remove dead code.
6740 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
6742 * mdebugread.c (parse_partial_symbols): Update.
6743 (new_psymtab): Likewise.
6744 * dwarf2read.c (process_psymtab_comp_unit): Update.
6745 (psymtab_to_symtab_1): Update.
6746 * dbxread.c (start_psymtab): Update.
6747 (end_psymtab): Likewise.
6749 2010-03-10 Tom Tromey <tromey@redhat.com>
6751 * xcoffread.c: Include psymtab.h.
6752 (xcoff_sym_fns): Update.
6753 * symtab.h (struct partial_symbol): Remove.
6754 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
6755 (struct partial_symtab): Remove.
6756 (PSYMTAB_TO_SYMTAB): Remove.
6757 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
6758 (find_pc_sect_psymtab): Remove.
6759 (find_pc_sect_symtab_via_partial): Declare.
6760 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
6761 (find_main_psymtab): Remove.
6762 (find_main_filename): Declare.
6763 (fixup_psymbol_section): Remove.
6764 (fixup_section): Declare.
6765 * symtab.c: Include psymtab.h.
6766 (lookup_symtab): Use lookup_symtab method.
6767 (lookup_partial_symtab): Remove.
6768 (find_pc_sect_psymtab_closer): Remove.
6769 (find_pc_sect_psymtab): Remove.
6770 (find_pc_sect_symtab_via_partial): New function.
6771 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
6772 (fixup_section): No longer static.
6773 (fixup_psymbol_section): Remove.
6774 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
6775 (lookup_global_symbol_from_objfile): Likewise.
6776 (lookup_symbol_aux_psymtabs): Remove.
6777 (lookup_symbol_aux_quick): New function.
6778 (lookup_symbol_global): Use lookup_symbol_aux_quick.
6779 (lookup_partial_symbol): Remove.
6780 (basic_lookup_transparent_type_quick): New function.
6781 (basic_lookup_transparent_type): Use it.
6782 (find_main_psymtab): Remove.
6783 (find_main_filename): New function.
6784 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
6785 (find_line_symtab): Use expand_symtabs_with_filename method.
6786 (output_partial_symbol_filename): New function.
6787 (sources_info): Use map_partial_symbol_filenames.
6788 (struct search_symbols_data): New type.
6789 (search_symbols_file_matches): New function.
6790 (search_symbols_name_matches): Likewise.
6791 (search_symbols): Use expand_symtabs_matching method.
6792 (struct add_name_data): Rename from add_macro_name_data.
6793 (add_macro_name): Update.
6794 (add_partial_symbol_name): New function.
6795 (default_make_symbol_completion_list): Use
6796 map_partial_symbol_names.
6797 (struct add_partial_symbol_name): New type.
6798 (maybe_add_partial_symtab_filename): New function.
6799 (make_source_files_completion_list): Use
6800 map_partial_symbol_filenames.
6801 (expand_line_sal): Use expand_symtabs_with_filename method.
6802 * symmisc.c: Include psymtab.h.
6803 (print_objfile_statistics): Use print_stats method.
6804 (dump_objfile): Use dump method.
6805 (dump_psymtab, maintenance_print_psymbols)
6806 (maintenance_info_psymtabs, maintenance_check_symtabs)
6807 (extend_psymbol_list): Remove.
6808 * symfile.h (struct quick_symbol_functions): New struct.
6809 (struct sym_fns) <qf>: New field.
6810 (sort_pst_symbols): Remove.
6811 (increment_reading_symtab): Declare.
6812 * symfile.c: Include psymtab.h.
6813 (compare_psymbols, sort_pst_symbols): Remove.
6814 (psymtab_to_symtab): Remove.
6815 (increment_reading_symtab): New function.
6816 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
6818 (set_initial_language): Use find_main_filename.
6819 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
6820 (free_named_symtabs): Remove unused code.
6821 (start_psymtab_common, add_psymbol_to_bcache)
6822 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
6824 * stack.c: Include psymtab.h, symfile.h.
6825 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
6826 * source.h (psymtab_to_fullname): Don't declare.
6827 * source.c: Include psymtab.h.
6828 (select_source_symtab): Use find_last_source_symtab method.
6829 (forget_cached_source_info): Use forget_cached_source_info
6831 (find_and_open_source): No longer static.
6832 (psymtab_to_fullname): Remove.
6833 * somread.c: Include psymtab.h.
6834 (som_sym_fns): Update.
6835 * psympriv.h: New file.
6836 * psymtab.h: New file.
6837 * psymtab.c: New file.
6838 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
6839 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
6840 * objfiles.c: Include psymtab.h.
6841 (objfile_relocate1): Use relocate method.
6842 (objfile_has_partial_symbols): Use has_symbols method.
6843 * mipsread.c: Include psymtab.h.
6844 (ecoff_sym_fns): Update.
6845 * mi/mi-cmd-file.c: Include psymtab.h.
6846 (print_partial_file_name): New function.
6847 (mi_cmd_file_list_exec_source_files): Use
6848 map_partial_symbol_filenames.
6849 * mdebugread.c: Include psympriv.h.
6850 * machoread.c: Include psympriv.h.
6851 (macho_sym_fns): Update.
6852 * m2-exp.y (yylex): Use lookup_symtab.
6853 * elfread.c: Include psympriv.h.
6854 (elf_sym_fns): Update.
6855 * dwarf2read.c: Include psympriv.h.
6856 * dbxread.c: Include psympriv.h.
6857 (aout_sym_fns): Update.
6858 * cp-support.c: Include psymtab.h.
6859 (read_in_psymtabs): Remove.
6860 (make_symbol_overload_list_qualified): Use
6861 expand_symtabs_for_function method.
6862 * coffread.c: Include psympriv.h.
6863 (coff_sym_fns): Update.
6864 * blockframe.c: Include psymtab.h.
6865 (find_pc_partial_function): Use find_pc_sect_symtab method.
6866 * ada-lang.h (ada_update_initial_language): Update.
6867 * ada-lang.c: Include psymtab.h.
6868 (ada_update_initial_language): Remove 'main_pst' argument.
6869 (ada_lookup_partial_symbol): Remove.
6870 (struct ada_psym_data): New type.
6871 (ada_add_psyms): New function.
6872 (ada_add_non_local_symbols): Use map_ada_symtabs method.
6873 (struct add_partial_datum): New type.
6874 (ada_add_partial_symbol_completions): New function.
6875 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
6876 (ada_exception_support_info_sniffer): Update.
6877 * Makefile.in (SFILES): Add psymtab.c.
6878 (COMMON_OBS): Add psymtab.o.
6879 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
6881 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6883 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
6885 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
6888 * cp-namespace.c (cp_add_using): Deleted.
6889 (cp_add_using_directive): Use obstack allocations.
6890 Merged the function cp_add_using into this one.
6891 Added 'struct obstack *' argument.
6892 (cp_scan_for_anonymous_namespaces): Updated.
6893 * cp-support.h: Updated.
6894 * dwarf2read.c (read_import_statement): Updated.
6895 (read_namespace): Updated.
6897 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6899 * windows-nat.c (cygwin_conv_path): Remove old macro.
6901 2010-03-10 Pedro Alves <pedro@codesourcery.com>
6903 * breakpoint.c (condition_command): Handle watchpoint conditions.
6904 (is_hardware_watchpoint): Add comment.
6905 (is_watchpoint): New.
6906 (update_watchpoint): Don't reparse the watchpoint's condition
6909 (watchpoint_check): Use it.
6910 (bpstat_check_watchpoint): Handle it.
6911 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
6912 conditions in a frame where it makes sense.
6913 (watch_command_1): Store the innermost block of the condition
6915 (delete_breakpoint): Delete the watchpoint condition expression.
6916 * breakpoint.h (struct bp_location) <cond>: Update comment.
6917 (struct breakpoint): New field `cond_exp_valid_block'.
6919 2010-03-09 Joel Brobecker <brobecker@adacore.com>
6921 Adjust handling of Ada DIEs after dwarf2_physname patch.
6922 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
6924 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
6925 Pierre Muller <muller@ics.u-strasbg.fr>
6927 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
6928 from/to posix/win32.
6929 (windows_make_so): Use non-Cygwin 1.7 specific function.
6930 (windows_create_inferior): Make sure that cygallargs points to
6931 original args in non Cygwin 1.7. case.
6933 2010-03-09 Michael Snyder <msnyder@vmware.com>
6935 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
6936 after target_read_memory to get host byte order.
6937 (i386_process_record): Ditto.
6939 2010-03-09 Keith Seitz <keiths@redhat.com>
6941 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
6942 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
6943 print out const or volatile qualifiers, too.
6944 (c_type_print_args): Add parameters show_artificial and language.
6945 Skip artificial parameters when requested.
6946 Use the appropriate language printer.
6947 (c_type_print_varspec): Tell c_type_print_args to skip artificial
6948 parameters and pass language_c.
6949 * dwarf2read.c (die_list): New file global.
6950 (struct partial_die_info): Update comments for name field.
6951 (pdi_needs_namespace): Renamed to ...
6952 (die_needs_namespace): ... this. Rewrite.
6953 (dwarf2_linkage_name): Remove.
6954 (add_partial_symbol): Do not predicate the call to
6955 partial_die_full_name based on pdi_needs_namespace.
6956 Remove call to cp_check_possible_namespace_symbols and associated
6958 (guess_structure_name): Do not inspect child subprogram DIEs.
6959 (dwarf2_fullname): Update comments.
6960 Use die_needs_namespace to assist in computing the name.
6961 (read_func_scope): Use dwarf2_name to get the DIE's name.
6962 Use dwarf2_physname to get the "linkage name" of the DIE.
6963 (dwarf2_add_member_field): Use dwarf2_physname instead of
6964 dwarf2_linkage_name.
6965 (read_structure_type): For structs and classes, set TYPE_NAME, too.
6966 (determine_class): Remove.
6967 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
6969 (new_symbol): Unconditionally call dwarf2_name.
6970 Compute the "linkage name" using dwarf2_physname.
6971 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
6972 When determining to scan for anonymous C++ namespaces, ignore
6974 (dwarf2_physname): New function.
6975 (dwarf2_full_name): Move content to new function and call
6977 (dwarf2_compute_name): "New" function.
6978 (_initialize_dwarf2_read): Initialize die_list.
6979 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
6981 (gnu_v3_print_method_ptr): Use the physname for virtual methods
6982 without a demangled name.
6983 Print out type information for non-virtual methods.
6984 * linespec.c (decode_line_1): Force ANY string using "::" (or
6985 "." for java) to use decode_compound, and clean up any stray quoting.
6986 If we found a file symtab, re-evaluate whether the remainder is_quoted.
6987 (decode_compound): Stop consuming at an open parenthesis.
6988 Keep template parameters.
6989 Keep any overload information.
6990 Keep keywords like "const".
6991 Remove paren_pointer.
6992 Move is_quoted check from set_flags to here.
6993 Remove #if 0 code from 2000. Ten years is long enough.
6994 (find_method): Before comparing symbol names, canonicalize the string
6996 If a specific overload is requested, find it. Otherwise throw an error.
6997 (find_method_overload_end): New function.
6998 (set_flags): Remove.
6999 (decode_compound): Assume that parentheses are matched.
7001 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
7003 * linespec.c (decode_line_1): Keep important keywords like
7004 "const" and "volatile".
7005 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
7006 * typeprint.h (c_type_print_args): Add declaration.
7007 * ui-file.c (do_ui_file_obsavestring): New function.
7008 (ui_file_obsavestring): New function.
7009 * ui-file.h (ui_file_obsavestring): Add declaration.
7010 * valops.c (find_overload_match): Resolve the object to
7012 If the object is a data member, search the object for the member
7013 and return with staticp set.
7014 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
7015 Do not attempt to extract a function name from non-function types.
7016 If the extracted function name and the original name are the same,
7017 we don't have a C++ method.
7019 From Jan Kratochvil <jan.kratochvil@redhat.com>:
7020 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
7022 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
7023 and arguments from symbol lookups.
7024 * ax-gdb.c (gen_expr): Likewise.
7025 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
7026 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
7027 lookup_possible_namespace_symbol): Likewise.
7028 * cp-support.c (read_in_psymtabs): Likewise.
7029 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
7030 * language.h (la_lookup_symbol_nonlocal): Likewise.
7031 * scm-valprint.c (scm_inferior_print): Likewise.
7032 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
7033 * solib-svr.c (elf_lookup_lib): Likewise.
7034 * solib.c (show_auto_solib_add): Likewise.
7035 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
7036 * symmisc.c (maintenance_check_symtabs): Likewise.
7037 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
7038 lookup_symbol_aux_local, lookup_symbol_aux_block,
7039 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
7040 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
7041 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
7042 basic_lookup_transparent_type, find_main_psymtab,
7043 lookup_block_symbol): Likewise.
7044 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
7045 lookup_symbol_global, lookup_symbol_aux_block,
7046 lookup_symbol_partial_symbol, lookup_block_symbol,
7047 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
7049 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
7051 * python/python-internal.h: Include symtab.h.
7053 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7054 Pierre Muller <muller@ics.u-strasbg.fr>
7056 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
7057 * p-valprint.c (pascal_val_print): Remove undeed block and fix
7060 2010-03-08 Tom Tromey <tromey@redhat.com>
7062 * breakpoint.c (breakpoint_1): Add "QUIT".
7064 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
7065 Pedro Alves <pedro@codesourcery.com>
7067 * solib.c (solib_find): Replace extension if
7068 solib_symbols_extension is set in the target gdbarch.
7069 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
7070 solib_symbols_extension to "sym".
7071 * gdbarch.sh (solib_symbols_extension): New variable.
7072 (pstring): New function.
7073 * gdbarch.h, gdbarch.c: Regenerate.
7075 2010-03-08 Tom Tromey <tromey@redhat.com>
7079 * utils.c: Include main.h.
7080 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
7081 (defaulted_query): Use default answer if `batch_flag'.
7082 * main.h (batch_flag): Declare.
7083 * main.c (batch_flag): New global.
7084 (captured_main): Remove 'batch'. Update.
7086 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7088 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
7091 * remote-mips.c (rockhopper_ops): New target_ops struct.
7092 (MON_ROCKHOPPER): New mips_monitor_type.
7093 (read_hex_value): New function.
7094 (mips_request): Send 8-byte values with a 'T' packet. Read the
7095 packet argument as a string and use read_hex_value to parse it.
7096 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
7097 (rockhopper_open): New function.
7098 (mips_wait): Read the PC, FP and SP fields as strings. Use
7099 read_hex_value to parse them and mips_set_register to commit them.
7100 (mips_set_register): New function.
7101 (mips_fetch_registers): Do not cast register value to "unsigned"
7102 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
7103 (mips_store_registers): Use a 'T' packet to set registers when
7104 using MON_ROCKHOPPER.
7105 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
7106 and expect the total to be printed before the entry address.
7107 (_initialize_remote_mips): Initialize and add rockhopper_ops.
7109 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7111 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
7112 Change return value to int. Store value fetched in location
7113 addressed by `val'. Use function's return value as success
7114 or failure indicator. Adjust all callers.
7116 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
7118 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
7120 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7121 Hui Zhu <teawater@gmail.com>
7123 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
7124 tmp_to_stopped_data_address.
7125 (record_open): Reset tmp_to_stopped_by_watchpoint and
7126 tmp_to_stopped_data_address.
7127 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
7128 to_stopped_data_address.
7130 2010-03-08 Hui Zhu <teawater@gmail.com>
7132 * i386-tdep.c (i386_process_record): Initialize regnum.
7134 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7136 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
7137 Do not warn on ".gnu.liblist" and ".gnu.conflict".
7139 2010-03-08 Joel Brobecker <brobecker@adacore.com>
7141 Memory error when reading wrong core file.
7142 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
7143 errors while reading the inferior memory, and return zero if
7144 an exception was raised.
7146 2010-03-07 Michael Snyder <msnyder@vmware.com>
7148 * record.c (record_restore): Rename tmpu8 to rectype.
7150 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
7151 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
7153 (i386_record_push): Rename local tmpulongest to addr.
7155 (i386_process_record): Rename local tmpulongest to addr.
7157 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
7160 Rename local variable tmpu8 to opcode8 and regnum.
7162 2010-03-07 Joel Brobecker <brobecker@adacore.com>
7164 * remote.c (remote_get_ada_task_ptid): New function.
7165 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
7167 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
7169 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
7170 block. Define helper macros to reduce ifdefs in code.
7171 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
7172 size. Call unadorned GetModuleFileNameEx rather than
7173 GetModuleFileNameEx*.
7174 (windows_make_so): Use __PMAX to denote maximum buffer size and
7175 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
7177 (get_image_name): Use __PMAX to denote maximum buffer size.
7178 (handle_load_dll): Likewise.
7179 (windows_pid_to_exec_file): Likewise.
7180 (windows_create_inferior): Add many accommodations for older Cygwin and
7182 (bad_GetModuleFileNameExW): Control inclusion of this function based on
7183 __USEWIDE conditional.
7184 (bad_GetModuleFileNameExA): Likewise.
7185 (_initialize_loadable): Just use real function names without the dyn_
7186 part since they are defined earlier.
7188 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
7189 Tom Tromey <tromey@redhat.com>
7191 * utils.c (host_char_to_target): Add 'gdbarch' argument.
7192 (parse_escape): Likewise.
7193 * python/py-utils.c (unicode_to_target_string): Update.
7194 (unicode_to_target_python_string): Update.
7195 (target_string_to_unicode): Update.
7196 * printcmd.c (printf_command): Update.
7197 * p-exp.y (yylex): Update.
7198 * objc-exp.y (yylex): Update.
7199 * mi/mi-parse.c: Include charset.h.
7200 (mi_parse_escape): New function.
7201 (mi_parse_argv): Use it.
7202 * jv-exp.y (yylex): Update.
7203 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
7205 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
7206 * gdbarch.sh (auto_charset, auto_wide_charset): New.
7207 * gdbarch.c: Rebuild.
7208 * gdbarch.h: Rebuild.
7209 * defs.h (parse_escape): Update.
7210 * cli/cli-setshow.c: Include arch-utils.h.
7211 (do_setshow_command): Update.
7212 * cli/cli-cmds.c (echo_command): Update.
7213 * charset.h (target_charset, target_wide_charset): Update.
7214 * charset.c: Include arch-utils.h.
7215 (target_charset_name): Default to "auto".
7216 (target_wide_charset_name): Likewise.
7217 (show_target_charset_name): Handle "auto".
7218 (show_target_wide_charset_name): Likewise.
7219 (be_le_arch): New global.
7220 (set_be_le_names): Add 'gdbarch' argument.
7221 (validate): Likewise. Don't call set_be_le_names.
7222 (set_charset_sfunc, set_host_charset_sfunc)
7223 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
7225 (target_charset): Add 'gdbarch' argument.
7226 (target_wide_charset): Likewise. Remove 'byte_order' argument.
7227 (auto_target_charset_name): New global.
7228 (default_auto_charset, default_auto_wide_charset): New functions.
7229 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
7230 for target charsets. Copy result of nl_langinfo. Use GetACP if
7232 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
7233 remove 'byte_order' argument. Update.
7234 (classify_type): Likewise.
7235 (c_emit_char): Update.
7236 (c_printchar): Update.
7237 (c_printstr): Update.
7238 (c_get_string): Update.
7239 (evaluate_subexp_c): Update.
7240 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
7242 * python/python.c (gdbpy_target_charset): New function.
7243 (gdbpy_target_wide_charset): Likewise.
7244 (GdbMethods): Update.
7247 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7249 * symfile.c (build_section_addr_info_from_objfile): Do not mask
7250 off high address bits.
7252 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7254 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
7255 address as UnsignedLongLong, not LongLong.
7257 2010-03-05 Kevin Buettner <kevinb@redhat.com>
7258 Pedro Alves <pedro@codesourcery.com>
7260 * remote-mips.c (gdbthread.h): Include.
7261 (remote_mips_ptid): Declare.
7262 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
7263 (common_open): Set inferior_ptid, add it as an inferior, and
7264 as a thread too. Delete FIXME comment regarding start_remote().
7265 (mips_close): Invoke generic_mourn_inferior().
7266 (mips_kill): Make sure that target_mourn_inferior is invoked.
7267 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
7268 it's now invoked from mips_close().
7269 (mips_load): Don't null out inferior_ptid. Don't call
7270 clear_symtab_users().
7271 (mips_thread_alive, mips_pid_to_str): New functions.
7272 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
7273 to_thread_alive and to_pid_to_str operations.
7275 2010-03-04 Tom Tromey <tromey@redhat.com>
7277 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
7278 in DWARF 3 and later.
7279 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
7281 2010-03-04 Keith Seitz <keiths@redhat.com>
7283 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
7284 If the filename portion of the linespec was quoted, recheck the
7285 remainder for additional quoting.
7286 (locate_first_half): Skip over completer chars, too.
7288 2010-03-04 Tom Tromey <tromey@redhat.com>
7290 * printcmd.c (printf_command): Pass dummy argument to
7293 2010-03-04 Doug Evans <dje@google.com>
7295 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
7298 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
7300 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7302 * breakpoint.c (update_watchpoint): Create a sentinel location if
7303 the software watchpoint isn't watching any memory.
7304 (breakpoint_address_bits): Skip dummy software watchpoint locations.
7306 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7308 * utils.c (fputs_maybe_filtered): Check if there's already a top
7309 level interpreter before dereferencing it. If there isn't one,
7310 don't paginate either.
7312 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7314 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
7315 the state right when single stepping.
7316 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
7317 Get the next PC along with the instruction state.
7318 (thumb_get_next_pc): Remove.
7319 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
7321 2010-03-04 Hui Zhu <teawater@gmail.com>
7323 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
7325 2010-03-03 Pedro Alves <pedro@codesourcery.com>
7327 * utils.c (fputs_maybe_filtered): Always disable pagination if the
7328 top level interpreter is MI.
7330 2010-03-03 Stan Shebs <stan@codesourcery.com>
7332 * remote.c (remote_download_tracepoint): Iterate over locations.
7333 * tracepoint.c (validate_actionline): Ditto.
7334 (encode_actions): Add location argument.
7335 (trace_dump_command): Check all locations to see if stepping
7338 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
7339 Eli Zaretskii <eliz@gnu.org>
7341 * NEWS: Add X86 general purpose registers section.
7343 2010-03-03 Tom Tromey <tromey@redhat.com>
7346 * varobj.c (install_new_value): Handle case where new print_value
7349 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
7352 * printcmd.c (printf_command): Print end of format string using
7355 2010-03-02 Tom Tromey <tromey@redhat.com>
7357 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
7358 * defs.h (read_command_lines_1): Add missing 'void'.
7359 * cli/cli-script.c (recurse_read_control_structure): Add missing
7361 (read_next_line): Likewise.
7362 (read_command_lines_1): Likewise.
7364 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7366 * spu-tdep.c (spu_analyze_prologue): Track instruction to
7367 store backchain as part of prologue.
7369 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
7371 * progspace.c (update_address_spaces): Update inferior address spaces
7374 2010-03-02 Doug Evans <dje@google.com>
7376 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
7377 lowpc,highpc args to addrmap_set_empty.
7379 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
7381 * amd64-tdep.c (amd64_byte_names): New.
7382 (amd64_word_names): Likewise.
7383 (amd64_dword_names): Likewise.
7384 (amd64_pseudo_register_name): Likewise.
7385 (amd64_pseudo_register_read): Likewise.
7386 (amd64_pseudo_register_write): Likewise.
7387 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
7388 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
7389 set_gdbarch_pseudo_register_write and
7390 set_tdesc_pseudo_register_name. Don't call
7391 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
7393 * i386-tdep.c (i386_num_mmx_regs): Removed.
7394 (i386_num_pseudo_regs): Likewise.
7395 (i386_byte_names): New.
7396 (i386_word_names): Likewise.
7397 (i386_byte_regnum_p): Likewise.
7398 (i386_word_regnum_p): Likewise.
7399 (i386_mmx_regnum_p): Updated.
7400 (i386_pseudo_register_name): Make it global. Handle byte and
7401 word pseudo-registers.
7402 (i386_pseudo_register_read): Likewise.
7403 (i386_pseudo_register_write): Likewise.
7404 (i386_pseudo_register_type): Handle byte, word and dword
7406 (i386_register_reggroup_p): Don't include pseudo
7407 registers, except for MXX, in any register groups. Don't
7408 include pseudo byte, word, dword registers in general_reggroup.
7409 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
7410 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
7411 pseudo-registers after word pseudo-registers. Call
7412 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
7414 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
7415 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
7417 (i386_byte_regnum_p): New.
7418 (i386_word_regnum_p): Likewise.
7419 (i386_dword_regnum_p): Likewise.
7420 (i386_pseudo_register_name): Likewise.
7421 (i386_pseudo_register_read): Likewise.
7422 (i386_pseudo_register_write): Likewise.
7424 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7426 * target-descriptions.c (tdesc_type): Remove
7427 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7428 (tdesc_predefined_types): Likewise.
7429 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
7430 if flag name is empty.
7431 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
7433 * features/i386/32bit-core.xml: Define i386_eflags.
7434 * features/i386/64bit-core.xml: Likewise.
7436 * features/i386/32bit-sse.xml: Define i386_mxcsr.
7437 * features/i386/64bit-sse.xml: Likewise.
7439 * features/i386/amd64-linux.c: Regenerated.
7440 * features/i386/amd64.c: Likewise.
7441 * features/i386/i386-linux.c: Likewise.
7442 * features/i386/i386.c: Likewise.
7444 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
7446 * gdbtypes.c (append_composite_type_field_raw): New.
7447 (append_composite_type_field_aligned): Use the new function.
7448 * gdbtypes.h (append_composite_type_field_raw): Declare.
7449 * target-descriptions.c (struct tdesc_type_field): Add start and end.
7450 (struct tdesc_type_flag): New type.
7451 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
7452 kind. Add size to u.u. Add u.f for flags.
7453 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
7454 (tdesc_free_type): Likewise.
7455 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
7456 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
7457 (tdesc_add_bitfield, tdesc_add_flag): New.
7458 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
7459 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
7460 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
7461 current_type. Add current_type_size and current_type_is_flags.
7462 (tdesc_start_union): Clear the new fields.
7463 (tdesc_start_struct, tdesc_start_flags): New.
7464 (tdesc_start_field): Handle struct fields, including bitfields.
7465 (field_attributes): Make type optional. Add start and end.
7466 (union_children): Rename to struct_union_children.
7467 (union_attributes): Rename to struct_union_attributes. Add optional
7469 (flags_attributes): New.
7470 (feature_children): Add struct and flags.
7471 * features/gdb-target.dtd: Add flags and struct to features.
7472 Make field type optional. Add field start and end.
7474 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7476 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
7477 (amd64_linux_read_description): Likewise.
7478 (_initialize_amd64_linux_nat): Set to_read_description to
7479 amd64_linux_read_description.
7481 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
7482 (amd64_linux_register_name): Removed.
7483 (amd64_linux_register_type): Likewise.
7484 (amd64_linux_core_read_description): New.
7485 (amd64_linux_init_abi): Set target description to
7486 tdesc_amd64_linux if needed. Support orig_rax in target
7487 description. Don't call set_gdbarch_register_name nor
7488 set_gdbarch_register_type. Call
7489 set_gdbarch_core_read_description.
7490 (_initialize_amd64_linux_tdep): Call
7491 initialize_tdesc_amd64_linux.
7493 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
7495 * amd64-tdep.c: Include "features/i386/amd64.c".
7496 (amd64_register_names): Removed.
7497 (amd64_register_name): Likewise.
7498 (amd64_register_type): Likewise.
7499 (amd64_init_abi): Set num_core_regs and register_names. Set
7500 target description to tdesc_amd64 if needed. Don't call
7501 set_gdbarch_register_name nor set_gdbarch_register_type.
7502 (_initialize_amd64_tdep): New.
7504 * i386-linux-nat.c (i386_linux_read_description): New.
7505 (_initialize_i386_linux_nat): Set to_read_description to
7506 i386_linux_read_description.
7508 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
7509 (i386_linux_register_name): Removed.
7510 (i386_linux_core_read_description): New.
7511 (i386_linux_read_description): Likewise.
7512 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
7513 Set target description to tdesc_i386_linux if needed. Support
7514 orig_eax. Set register_reggroup_p. Call
7515 set_gdbarch_core_read_description.
7516 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
7518 * i386-linux-tdep.h (tdesc_i386_linux): New.
7520 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
7523 * i386-tdep.c: Include "features/i386/i386.c".
7524 (i386_register_names): Make it const.
7525 (i386_mmx_names): Likewise.
7526 (i386_num_register_names): Removed.
7527 (i386_register_name): Likewise.
7528 (i386_eflags_type): Likewise.
7529 (i386_mxcsr_type): Likewise.
7530 (i386_sse_type): Likewise.
7531 (i386_register_type): Likewise.
7532 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
7533 (i386_pseudo_register_name): New.
7534 (i386_pseudo_register_type): Likewise.
7535 (i386_mmx_type): Make it static.
7536 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
7537 I387_NUM_REGS. Set num_core_regs and register_names. Don't
7538 call set_gdbarch_register_name nor set_gdbarch_register_type.
7539 Set register_reggroup_p. Set target description to tdesc_i386
7540 if needed. Call set_tdesc_pseudo_register_type,
7541 set_tdesc_pseudo_register_name and tdesc_use_registers.
7542 (_initialize_i386_tdep): Call initialize_tdesc_i386.
7543 initialize_tdesc_x86_64.
7545 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
7546 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
7547 register_names, tdesc and register_reggroup_p.
7548 (I386_NUM_FREGS): Removed.
7549 (i386_eflags_type): Likewise.
7550 (i386_mxcsr_type): Likewise.
7551 (i386_mmx_type): Likewise.
7552 (i386_sse_type): Likewise.
7553 (i386_register_name): Likewise.
7554 (i386_regnum): Add I386_MXCSR_REGNUM.
7555 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
7557 * i387-tdep.h (I387_NUM_REGS): New.
7559 * regformats/i386/i386-linux.dat: Generated.
7560 * regformats/i386/i386.dat: Likewise.
7561 * regformats/i386/amd64-linux.dat: Likewise.
7562 * regformats/i386/amd64.dat: Likewise.
7564 * regformats/reg-i386-linux.dat: Removed.
7565 * regformats/reg-i386.dat: Likewise.
7566 * regformats/reg-x86-64-linux.dat: Likewise.
7567 * regformats/reg-x86-64.dat: Likewise.
7569 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
7571 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
7572 cygwin_conv_path API rather than the deprecated
7573 cygwin_conv_to_full_posix_path.
7575 (GetModuleFileNameExA): Undefine for Cygwin.
7576 (GetModuleFileNameExW): Define for Cygwin.
7577 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
7578 Call GetModuleFileNameExW and convert path to POSIX using
7580 (windows_make_so): Always define p. Drop unused variable m.
7581 Don't use Win32 functions to check file existance, rather use
7582 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
7583 Use canonicalize_file_name to get full path.
7584 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
7585 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
7586 use correct target buffer size in call to WideCharToMultiByte.
7587 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
7588 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
7589 (windows_create_inferior): Convert all paths and arguments to wchar_t
7590 and use CreateProcessW on Cygwin.
7591 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
7592 (bad_GetModuleFileNameExA): Undefine for Cygwin.
7593 (bad_GetModuleFileNameExW): Define for Cygwin.
7594 (_initialize_loadable): Load GetModuleFileNameExW into
7595 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
7597 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
7600 * python/py-frame.c (frapy_read_var): Add block argument and logic
7601 to cope with user provided blocks.
7603 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7605 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
7608 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
7610 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
7611 (COMMON_OBS): ... to here since it's used unconditionally.
7612 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
7615 2010-02-26 David Daney <ddaney@caviumnetworks.com>
7617 * mips-linux-tdep.c: Update struct sigframe comments.
7618 (SIGFRAME_CODE_OFFSET): Delete macro.
7619 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
7621 (mips_linux_n32n64_sigframe_init): Same.
7623 2010-02-26 Kevin Buettner <kevinb@redhat.com>
7625 * remote-mips.c (mips_load): Don't use pseudo-register when
7626 invalidating regcache.
7628 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7630 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
7632 2010-02-26 Pedro Alves <pedro@codesourcery.com>
7634 * NEWS: Add "New targets" section, and mention ARM Symbian
7637 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
7639 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
7640 add ADDR_SIZE member.
7641 (allocate_piece_closure): Update.
7642 (copy_pieced_value_closure): Likewise.
7643 (dwarf2_evaluate_loc_desc): Likewise.
7644 (read_pieced_value): Use DWARF address size instead of
7645 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
7647 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
7648 Tom Tromey <tromey@redhat.com>
7650 * python/py-type.c (typy_lookup_typename): Add in block argument.
7651 If provided restrict lookup to specified blocks.
7652 (gdbpy_lookup_type): Likewise.
7653 (typy_lookup_type): Likewise.
7655 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7660 * arm-symbian-tdep.c: New.
7661 * configure.tgt (arm*-*-symbianelf*): New target.
7662 (*-*-symbianelf*): New OS.
7663 * osabi.c (gdb_osabi_names): Add Symbian.
7664 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
7665 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
7666 (ALLDEPFILES): Add arm-symbian-tdep.c.
7668 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7670 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
7672 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7674 * mi/mi-main.c (mi_cmd_execute): Fix typo.
7676 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
7677 Tom Tromey <tromey@redhat.com>
7678 Thiago Jung Bauermann <bauerman@br.ibm.com>
7680 * python/python.c (_initialize_python): Call
7681 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
7682 gdbpy_initialize_blocks.
7683 * python/python-internal.h: Declare struct symbol, block and
7684 symtab_and_line. Declare block_object_type and
7686 (gdbpy_lookup_symbol gdbpy_block_for_pc)
7687 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
7688 (symbol_to_symbol_object, block_to_block_object)
7689 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
7690 (gdbpy_initialize_blocks ): Declare.
7691 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
7692 (frapy_select): Add methods.
7693 (frapy_read_var): Add symbol branch.
7694 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
7696 (SUBDIR_PYTHON_SRCS): Likewise.
7697 (py-symbol.o): New rule.
7698 (py-symtab.o): Likewise.
7699 (py-block.o): Likewise.
7700 * python/py-symbol.c: New file.
7701 * python/py-symtab.c: Likewise.
7702 * python/py-block.c: Likewise.
7704 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7708 * inferior.h (prepare_for_detach): Declare.
7709 (struct inferior) <detaching>: New field.
7710 * infrun.c (prepare_for_detach): New.
7711 (handle_inferior_event) <random signal>: Don't stop if detaching.
7712 * target.c (target_detach): Call prepare_for_detach.
7714 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7716 Per-process displaced stepping queue.
7718 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
7719 (displaced_step_gdbarch, displaced_step_closure,
7720 (displaced_step_original, displaced_step_copy): Move globals to
7722 (struct displaced_step_inferior_state): ... new structure.
7723 (displaced_step_inferior_states): New global.
7724 (get_displaced_stepping_state, add_displaced_stepping_state)
7725 (remove_displaced_stepping_state, infrun_inferior_exit): New
7727 (displaced_step_clear): Add displaced_step_inferior_state
7728 parameter, and adjust to handle it.
7729 (displaced_step_clear_cleanup): Parameter is now a
7730 displaced_step_inferior_state. Adjust.
7731 (displaced_step_prepare): Adjust.
7732 (displaced_step_fixup, displaced_step_fixup)
7733 (infrun_thread_ptid_changed, resume): Adjust.
7734 (init_wait_for_inferior): Don't call displaced_step_clear.
7735 (infrun_thread_stop_requested): Rewrite.
7736 (_initialize_infrun): Install infrun_inferior_exit as
7737 inferior_exit observer.
7739 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7741 * inferior.h (ptid_match): Declare.
7742 * infrun.c (ptid_match): New.
7743 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
7744 (handle_notification): Add debug output.
7745 * linux-nat.c (ptid_match): Delete.
7747 2010-02-24 David S. Miller <davem@davemloft.net>
7749 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
7750 * syscalls/sparc-linux.xml: New.
7751 * syscalls/sparc64-linux.xml: New.
7752 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
7753 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
7754 (sparc32_linux_get_syscall_number): New function.
7755 (sparc32_linux_init_abi): Set syscall XML file name and hook up
7756 syscall number fetcher.
7757 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
7758 (sparc64_linux_get_syscall_number): New function.
7759 (sparc64_linux_init_abi): Set syscall XML file name and hook up
7760 syscall number fetcher.
7762 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7766 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
7767 * inferior.c (add_inferior_silent): Notify inferior_added
7769 (delete_inferior_1): Notify inferior_removed observer.
7770 (exit_inferior_1): Pass inferior, not pid, to observer.
7771 (inferior_appeared): Likewise.
7772 (add_inferior_with_spaces): New.
7773 (add_inferior_command): Use the above.
7774 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
7777 * inflow.c (inflow_inferior_exit): Likewise.
7778 * jit.c (jit_inferior_exit_hook): Likewise.
7780 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
7782 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7783 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
7784 (report_initial_inferior): New.
7785 (mi_inferior_removed): Register the above. Make sure
7786 inferior_added observer is called on the first inferior.
7787 (mi_new_thread, mi_thread_exit): Thread group is now identified by
7788 inferior number, not pid.
7789 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
7791 * mi/mi-main.c (current_context): New.
7792 (proceed_thread_callback): Use typed closure.
7793 Proceed everything if pid is 0. Most implementation split into
7794 (proceed_thread): ... this.
7795 (run_one_inferior): New.
7796 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
7797 Adjust for multiexec behaviour.
7798 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7799 (mi_cmd_execute): Handle the 'thread-group' option here.
7800 Do some extra checks.
7801 * mi-parse.c (mi_parse): Handle the --all and --thread-group
7803 * mi-parse.h (struct mi_parse): New fields all and thread_group.
7805 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7807 Make -exec-run a proper MI commands.
7809 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
7810 * mi/mi-cmds.c (mi_cmds): Adjust.
7811 * mi/mi-main.c (mi_cmd_exec_run): New.
7813 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7814 Stan Shebs <stan@codesourcery.com>
7816 * tracepoint.h (set_traceframe_number)
7817 (cleanup_restore_current_traceframe): Declare.
7818 * tracepoint.c (set_traceframe_number): New.
7819 (struct current_traceframe_cleanup): New.
7820 (do_restore_current_traceframe_cleanup)
7821 (restore_current_traceframe_cleanup_dtor)
7822 (make_cleanup_restore_current_traceframe): New.
7823 * infrun.c: Include tracepoint.h.
7824 (fetch_inferior_event): Switch out and in of tfind mode.
7826 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7828 * breakpoint.c (breakpoint_init_inferior): Also delete
7829 bp_shlib_event breakpoints.
7830 * solib-frv.c (enable_break): Remove call to
7831 remove_solib_event_breakpoints.
7832 * solib-svr4.c (enable_break): Ditto.
7833 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
7834 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
7835 * solib-som.c (som_solib_create_inferior_hook): Ditto.
7836 * solib-spu.c (spu_enable_break): Ditto.
7838 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7840 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
7842 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7844 * varobj.c (varobj_update): Avoid non-constants in initializers.
7846 2010-02-23 Tom Tromey <tromey@redhat.com>
7848 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
7849 handle big-endian values.
7850 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
7852 2010-02-22 Pedro Alves <pedro@codesourcery.com>
7857 * breakpoint.c (insert_bp_location): If inserting the read
7858 watchpoint failed, fallback to an access watchpoint.
7859 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
7860 if the value changed, if not watching the same memory for writes.
7861 (watchpoint_locations_match): Add comment.
7862 (update_global_location_list): Copy the location's watchpoint type.
7863 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
7864 handle read watchpoints here.
7865 (i386_insert_watchpoint): Read watchpoints aren't supported.
7866 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
7868 * target.h (target_insert_watchpoint): Update description.
7870 2010-02-19 Tom Tromey <tromey@redhat.com>
7872 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
7873 * m2-typeprint.c (m2_print_type): Update.
7874 * gdbtypes.c (recursive_dump_type): Update.
7875 (copy_type_recursive): Update.
7876 * c-typeprint.c (c_type_print_varspec_prefix): Update.
7877 (c_type_print_base): Update.
7878 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
7880 (struct cplus_struct_type) <ntemplate_args>: Remove.
7881 <struct template_arg>: Remove.
7882 <is_dynamic>: Move earlier.
7883 (TYPE_TEMPLATE_ARGS): Remove.
7884 (TYPE_NTEMPLATE_ARGS): Remove.
7885 (TYPE_TEMPLATE_ARG): Remove.
7887 2010-02-19 Tom Tromey <tromey@redhat.com>
7889 PR c++/8693, PR c++/9496:
7890 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
7891 * c-exp.y (lex_one_token): Rename from yylex. Don't call
7892 write_dollar_variable. Don't try to classify NAME tokens.
7893 (token_and_value): New type.
7894 (token_fifo, popping, name_obstack): New globals.
7895 (classify_name): New function.
7896 (classify_inner_name): Likewise.
7898 (VARIABLE): Now has type sval.
7899 (exp : VARIABLE): Call write_dollar_variable.
7900 (qualified_name): Use TYPENAME, not typebase. Add production for
7901 multiple "::" instances.
7902 (variable): Use name_not_typename.
7903 (qualified_type): Remove.
7906 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7908 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
7909 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
7910 found by bfd_get_section_by_name.
7911 * symfile.h (struct section_addr_info) <sectindex>: New comment.
7913 2010-02-19 Joel Brobecker <brobecker@adacore.com>
7915 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
7916 7.0 section" into "Changes in 7.1".
7918 2010-02-19 Joel Brobecker <brobecker@adacore.com>
7920 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
7921 * version.in: Bump version to 7.1.50.20100219-cvs.
7923 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
7925 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
7926 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
7928 2010-02-17 Tom Tromey <tromey@redhat.com>
7930 * NEWS: Add Python API Improvements section.
7932 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
7934 * NEWS: Correct typo.
7936 2010-02-17 Tom Tromey <tromey@redhat.com>
7938 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
7940 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7942 * symfile.c (build_section_addr_info_from_objfile): Include sections
7943 only if they are SEC_ALLOC or SEC_LOAD.
7945 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
7948 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
7949 of ULONGEST for address size.
7951 2010-02-17 Tom Tromey <tromey@redhat.com>
7953 * NEWS: Add C++ improvements section.
7955 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
7957 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
7958 PyThreadState_Swap): Avoid "statement with no effect" warning.
7960 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7962 * solib-svr4.c (enable_break <target_auxv_search>): New variable
7963 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
7965 2010-02-17 Tristan Gingold <gingold@adacore.com>
7966 Petr Hluzin <petr.hluzin@gmail.com>
7968 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
7969 gdb_assert. Fix info->size for SIG prologue.
7971 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7973 * infcmd.c (show_inferior_tty_command): Check for NULL.
7974 Correct output message.
7976 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7978 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
7979 FUNCTION contains parentheses. Improve removal of a trailing
7982 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7984 * gcore.c (do_bfd_delete_cleanup): New function.
7985 (gcore_command): Use it. Discard the cleanup after success.
7986 (gcore_copy_callback): Delete dead code.
7988 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7990 * symfile.c (addr_info_make_relative): Always use
7991 find_lowest_section.
7993 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
7995 * NEWS: Added entry for namespace fixes.
7997 2010-02-15 Tom Tromey <tromey@redhat.com>
7999 * dwarf2read.c (guess_structure_name): Allocate name on the
8002 2010-02-15 Tom Tromey <tromey@redhat.com>
8004 * c-typeprint.c (c_type_print_base): Reverse order of test.
8006 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8008 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
8009 initialize it from ELF BFD. Extend the prelink condition by it.
8011 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8013 * defs.h (parse_pid_to_attach): New.
8014 * utils.c (parse_pid_to_attach): New.
8015 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
8016 * gnu-nat.c (gnu_attach): Likewise.
8017 * nto-procfs.c (procfs_attach): Likewise.
8018 * procfs.c (procfs_attach): Likewise.
8019 * windows-nat.c (windows_attach): Likewise.
8020 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
8021 * inf-ttrace.c (inf_ttrace_attach): Likewise.
8022 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
8025 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
8027 * MAINTAINERS: Add myself for write after approval privileges.
8029 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8031 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
8034 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8036 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
8037 only if INFO_VERBOSE.
8039 2010-02-12 Tomas Holmberg <th@virtutech.com>
8041 * mi/mi-main.c: Added the --reverse flag to the following MI
8042 commands: exec-continue, exec-finish, exec-next, exec-step,
8043 exec-next-instruction, exec-step-instruction. This is to
8044 support reverse execution over the MI interface to gdb.
8046 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8048 * tracepoint.c (_initialize_tracepoint): Specify that the address
8049 range of `tfind outsize' is exclusive, and that the address range
8050 of `tfind range' is inclusive, in the commands' help strings.
8052 2010-02-12 Joel Brobecker <brobecker@adacore.com>
8054 Spurious "dll not found" error messages on x64-windows.
8055 * windows-nat.c: Add include of complaints.h.
8056 (handle_unload_dll): Change dll-not-found error into a complaint.
8058 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8060 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
8061 bp_tracepoint and bp_fast_tracepoint, not
8062 bp_loc_software_breakpoint.
8063 (update_global_location_list): Tracepoints are never duplicates of
8066 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8068 * breakpoint.c (break_command_really): Change return type to int.
8069 Return false if no breakpoint was created, true otherwise.
8070 (trace_command): Don't set the tracepoint count if no tracepoint
8072 (ftrace_command): Ditto.
8073 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
8074 created in the breakpoints table.
8076 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8077 Ulrich Weigand <uweigand@de.ibm.com>
8079 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
8081 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8083 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
8084 the offset value isn't of integral type.
8086 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8088 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
8091 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8093 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
8094 non-subscriptable types.
8095 * valarith.c (binop_types_user_defined_p): New, abstracted out
8097 (binop_user_defined_p): ... this.
8098 * value.h (binop_types_user_defined_p): Declare.
8100 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8102 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
8103 Merge uploaded TSVs before merging uploaded tracepoints.
8105 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8107 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
8109 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
8111 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
8112 whitespace character after a dot in comment.
8113 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
8115 (list_args_or_locals): For the 'all' (that is
8116 -stack-list-variables) case, always output list of tuples.
8117 Output 'arg' field if variable is argument.
8119 2010-02-10 Tom Tromey <tromey@redhat.com>
8121 * parser-defs.h (parser_debug): Declare.
8122 * parse.c (_initialize_parse): Install "debug parser" set/show
8124 (parser_debug): New global.
8125 (show_parserdebug): New function.
8126 * c-exp.y (c_parse): Set yydebug.
8128 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
8130 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
8131 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8132 (tdesc_predefined_types): Add i387_ext, i386_eflags and
8134 (tdesc_find_type): New.
8135 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
8136 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8138 * target-descriptions.h (tdesc_find_type): New.
8140 2010-02-10 Michael Snyder <msnyder@vmware.com>
8142 * gdb-gdb.py: Comment fix.
8144 2010-02-09 Tristan Gingold <gingold@adacore.com>
8146 * machoread.c (macho_symfile_relocate): New function.
8147 (macho_sym_fns): Use macho_symfile_relocate instead of
8148 default_symfile_relocate.
8149 (macho_oso_data): New type.
8150 (current_oso): New variable.
8151 (macho_add_oso_symfile): Do not compute section_addr_info, but
8152 instead set vma of sections.
8153 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
8154 Set and clear current_oso.
8156 2010-02-09 Joel Brobecker <brobecker@adacore.com>
8158 Wrong type description for tagged type parameter.
8159 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
8160 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
8161 reference to a tagged type.
8163 2010-02-09 Tristan Gingold <gingold@adacore.com>
8165 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
8166 brothers of the parent.
8168 2010-02-08 Tom Tromey <tromey@redhat.com>
8172 * valops.c (search_struct_field): Make 'name' const.
8173 (search_struct_method): Likewise.
8174 (find_method_list): Make 'method' const.
8175 (value_struct_elt): Make 'name' and 'err' const.
8176 (value_find_oload_method_list): Make 'method' const.
8177 (find_overload_match): Make 'name' const.
8178 * eval.c (evaluate_subexp_standard): New locals function,
8180 <OP_FUNCALL>: Handle OP_SCOPE specially.
8182 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8184 * infrun.c (handle_inferior_event): Do not look up regcache
8185 for exited processes.
8187 2010-02-08 Chris Moller <moller@mollerware.com>
8190 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8191 warn if found, and assume length = 1.
8193 2010-02-08 Chris Moller <cmoller@redhat.com>
8196 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
8197 (cp_print_static_field) Fix use of obstacks.
8199 2010-02-08 Pedro Alves <pedro@codesourcery.com>
8201 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
8202 resumed LWPs as resumed.
8203 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
8204 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
8205 of throwing an internal error. If an LWP of a process we're not
8206 waiting for reports a signal, don't force collecting a SIGSTOP,
8207 and if it was breakpoint hit in non-stop mode, cancel it. Don't
8208 go through all LWPs cancelling breakpoints in non-stop mode.
8209 (resume_stopped_resumed_lwps): New.
8210 (linux_nat_wait): Use it.
8212 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
8214 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
8215 i386/amd64 and i386/amd64-linux.
8216 (i386/i386-expedite): New.
8217 (i386/i386-linux-expedite): Likewise.
8218 (i386/amd64-expedite):Likewise.
8219 (i386/amd64-linux-expedite): Likewise.
8220 ($(outdir)/i386/i386-linux.dat): Likewise.
8221 ($(outdir)/i386/amd64.dat): Likewise.
8222 ($(outdir)/i386/amd64-linux.dat): Likewise.
8224 * features/i386/32bit-core.xml: New.
8225 * features/i386/32bit-linux.xml: Likewise.
8226 * features/i386/32bit-sse.xml: Likewise.
8227 * features/i386/64bit-core.xml: Likewise.
8228 * features/i386/64bit-linux.xml: Likewise.
8229 * features/i386/64bit-sse.xml: Likewise.
8230 * features/i386/i386-linux.xml: Likewise.
8231 * features/i386/i386.xml: Likewise.
8232 * features/i386/amd64-linux.xml: Likewise.
8233 * features/i386/amd64.xml: Likewise.
8234 * features/i386/i386-linux.c: Likewise.
8235 * features/i386/i386.c: Likewise.
8236 * features/i386/amd64-linux.c: Likewise.
8237 * features/i386/amd64.c: Likewise.
8239 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
8242 * cp-support.h: Added char* alias element to using_direct data
8244 (cp_add_using): Added char* alias argument.
8245 (cp_add_using_directive): Ditto.
8246 * cp-namespace.c: Updated with the above changes.
8247 (cp_lookup_symbol_imports): Check for aliases.
8248 * dwarf2read.c (read_import_statement): Figure out local alias
8249 for the import and pass it on to cp_add_using.
8250 (read_namespace): Pass alias argument to cp_add_using.
8252 2010-02-05 Hui Zhu <teawater@gmail.com>
8254 * defs.h (gdb_bfd_errmsg): New extern.
8255 * exec.c (exec_file_attach): Change bfd_errmsg to
8257 * utils.c (AMBIGUOUS_MESS1): New macro.
8258 (AMBIGUOUS_MESS2): New macro.
8259 (gdb_bfd_errmsg): New function.
8261 2010-02-04 Doug Evans <dje@google.com>
8263 * solib-svr4.c (enable_break): Add comment.
8265 2010-02-04 Anthony Green <green@moxielogic.com>
8267 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
8270 2010-02-04 Tom Tromey <tromey@redhat.com>
8272 * valops.c (search_struct_field): Account for
8273 value_embedded_offset. Fix check for virtual base past the end of
8274 the object. Use value_copy when making a slice of the value.
8276 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8279 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
8280 only if gdb_stdout is a tty.
8282 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8284 * target-descriptions.c: Include "osabi.h".
8285 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
8288 2010-02-04 Tristan Gingold <gingold@adacore.com>
8290 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
8291 (macho_symtab_read): Adjust calls to macho_add_oso.
8292 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
8293 (macho_symfile_read): Adjust call to macho_oso_symfile.
8294 (macho_new_init): Move this function after declarations.
8295 (macho_symfile_init): Ditto.
8296 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
8297 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
8299 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
8301 Include MI command in remotelog.
8303 * mi/mi-main.c (mi_execute_command): Call target_log_command.
8305 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8307 * remote.c (remote_state): Remove gdbarch.
8308 (init_remote_state): Don't set gdbarch.
8309 (remote_query_supported): Pass target_gdbarch instead of
8310 rs->gdbarch to gdbarch_qsupported.
8312 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8314 * gdbarch.sh: Add qsupported.
8316 * gdbarch.c: Regenerated.
8317 * gdbarch.h: Likewise.
8319 * remote.c (remote_state): Add gdbarch.
8320 (init_remote_state): Set gdbarch.
8321 (remote_query_supported): Support gdbarch_qsupported.
8323 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
8325 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
8326 __FreeBSD_kernel_version.
8328 2010-02-03 Tristan Gingold <gingold@adacore.com>
8330 * symfile.h (struct sym_fns): Add sym_relocate field.
8331 (default_symfile_relocate): New prototype.
8332 (symfile_relocate_debug_section): First argument is now an objfile.
8333 * symfile.c (default_symfile_relocate): Rename from
8334 symfile_relocate_debug_section, first argument is now an objfile.
8335 (symfile_relocate_debug_section): New function.
8336 * coffread.c (coff_sym_fns): Set sym_relocate field.
8337 * somread.c (som_sym_fns): Ditto.
8338 * mipsread.c (ecoff_sym_fns): Ditto.
8339 * machoread.c (macho_sym_fns): Ditto.
8340 * elfread.c (elf_sym_fns): Ditto.
8341 * dwarf2read.c (dwarf2_read_section): Ditto.
8342 * xcoffread.c (xcoff_sym_fns): Ditto.
8343 * dbxread.c (aout_sym_fns): Ditto.
8344 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
8345 (elfstab_build_psymtabs): Ditto.
8347 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8349 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
8351 2010-02-02 Tom Tromey <tromey@redhat.com>
8353 * valops.c (value_cast_structs): Try downcasting using the RTTI
8356 2010-02-02 Tom Tromey <tromey@redhat.com>
8358 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
8359 (gnuv2_baseclass_offset): Now static.
8360 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
8361 * gnu-v2-abi.h: Remove.
8363 2010-02-02 Tom Tromey <tromey@redhat.com>
8365 * m2-typeprint.c (m2_record_fields): Don't use
8367 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
8368 (struct main_type) <flag_declared_class>: New field.
8369 (struct cplus_struct_type) <declared_type>: Remove.
8370 <ntemplate_args>: Move earlier.
8371 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
8372 (DECLARED_TYPE_TEMPLATE): Remove.
8373 (TYPE_DECLARED_TYPE): Remove.
8374 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
8375 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
8376 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
8379 2010-02-02 Tom Tromey <tromey@redhat.com>
8381 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
8382 * valops.c (search_struct_field): Compute nbases after calling
8384 (check_field): Call CHECK_TYPEDEF.
8385 * cp-valprint.c (cp_print_value): Pass correct address to
8386 baseclass_offset. Fix check for virtual base past the end of the
8387 object. Don't offset address passed to cp_print_value_fields or
8388 apply_val_pretty_printer.
8389 (cp_print_value_fields): Fix call to val_print.
8390 (cp_print_value_fields_rtti): New function.
8391 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
8392 * p-valprint.c (pascal_object_print_value_fields): Fix call to
8394 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
8396 * language.h (struct language_defn) <la_val_print>: Document.
8397 * c-lang.h (cp_print_value_fields_rtti): Declare.
8399 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8402 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8403 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
8404 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8406 2010-02-01 Michael Matz <matz@suse.de>
8407 Daniel Jacobowitz <dan@codesourcery.com>
8409 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
8410 functions use a frame pointer.
8412 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8414 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
8415 by a conditional setting DYN_ADDR. Use DYN_ADDR.
8416 * config/djgpp/fnchange.lst: Add translations for
8417 symbol-without-target_section.exp and symbol-without-target_section.c.
8419 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8421 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
8422 (remote_breakpoint_for_pc): Correct invalid_p check.
8423 * gdbarch.c: Regenerated.
8425 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8427 * arm-tdep.c (arm_find_mapping_symbol): New function, from
8429 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
8430 (extend_buffer_earlier): New function.
8431 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
8432 (arm_adjust_breakpoint_address): New function.
8433 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
8435 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8437 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
8438 (arm_linux_thumb2_le_breakpoint): New constants.
8439 (arm_linux_init_abi): Set thumb2_breakpoint and
8440 thumb2_breakpoint_size.
8441 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
8442 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
8443 Implement support for single stepping through IT blocks if
8444 a 32-bit Thumb breakpoint instruction is available.
8445 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
8446 is available, use it when needed.
8447 (arm_remote_breakpoint_from_pc): New function.
8448 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
8449 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
8450 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
8452 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8454 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
8455 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
8456 * gdbarch.c, gdbarch.h: Regenerated.
8457 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
8458 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
8459 gdbarch_remote_breakpoint_from_pc.
8461 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8463 * infrun.c (prepare_to_proceed): Handle other signals which might
8465 (handle_inferior_event): Move the check for unusual breakpoint
8468 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
8470 amd64 - function returning record with field straddling 2 registers.
8471 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
8472 a record of length <= 16 in which a field straddles the two
8475 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8477 Implement return values on amd64-windows.
8478 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
8479 (amd64_windows_return_value): New function.
8480 (amd64_windows_init_abi): Call set_gdbarch_return_value with
8481 amd64_windows_return_value.
8483 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8485 amd64-windows: 32 bytes allocated on stack by caller for integer
8486 parameter registers.
8487 * i386-tdep.h (struct gdbarch_tdep): Add new field
8488 integer_param_regs_saved_in_caller_frame.
8489 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8490 tdep->integer_param_regs_saved_in_caller_frame to 1.
8491 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
8492 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
8494 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8496 amd64-windows: memory args passed by pointer during function calls.
8497 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
8498 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
8499 where tdep->memory_args_by_pointer is non-zero.
8500 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8501 tdep->memory_args_by_pointer to 1.
8503 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8505 amd64-windows: Integer parameters in function calls.
8506 * i386-tdep.h (enum amd64_reg_class): New, moved here from
8508 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
8509 call_dummy_integer_regs, and classify.
8510 * amd64-tdep.h (amd64_classify): Add declaration.
8511 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
8512 (amd64_reg_class): Delete, moved to i386-tdep.h.
8513 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
8514 Replace call to amd64_classify by call to tdep->classify.
8515 (amd64_push_arguments): Get the list of registers to use for
8516 passing integer parameters from the gdbarch tdep structure,
8517 rather than using a hardcoded one. Replace calls to amd64_classify
8518 by calls to tdep->classify.
8519 (amd64_push_dummy_call): Get the register number used for
8520 the "hidden" argument from tdep->call_dummy_integer_regs.
8521 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
8522 and tdep->call_dummy_integer_regs. Set tdep->classify.
8523 * amd64-windows-tdep.c: Add include of gdbtypes.h.
8524 (amd64_windows_dummy_call_integer_regs): New static global.
8525 (amd64_windows_classify): New function.
8526 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
8527 tdep->call_dummy_integer_regs and tdep->classify.
8529 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
8531 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
8532 for the new regcache. All callers updated.
8533 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
8534 (get_thread_arch_regcache): Do not set aspace here.
8535 * regcache.h (regcache_xmalloc): Update declaration.
8537 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
8538 regcache_xmalloc updated.
8540 2010-01-28 Joel Brobecker <brobecker@adacore.com>
8542 Another -Wunused-function error in procfs.c (sparc-solaris)
8543 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
8544 Only define if SYS_syssgi is defined.
8545 (remove_dbx_link_breakpoint): Delete declaration. Move up.
8546 (dbx_link_addr, insert_dbx_link_bpt_in_file)
8547 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
8550 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
8552 * windows-nat.c (windows_initialization_done): New variable.
8553 (get_windows_debug_event): Issue error when process dies before
8554 completely initializing.
8555 (do_initial_windows_stuff): Set flag to indicate when we are done with
8556 the initial steps of attaching to the child.
8558 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8560 * symtab.h (struct symbol <symtab>): New comment on NULL values.
8562 2010-01-27 Doug Evans <dje@google.com>
8564 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
8566 * breakpoint.c (bpstat_stop_status): Delete useless code.
8568 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8570 * printcmd.c (display_uses_solib_p): Remove variable section. Access
8571 objfile via SYMBOL_SYMTAB.
8573 2010-01-26 Tom Tromey <tromey@redhat.com>
8576 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
8577 coerce_array on result.
8579 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8581 * cp-namespace.c (cp_lookup_symbol_namespace): Added
8582 search_parent argument.
8583 (cp_add_using): Initialize 'searched' field.
8584 (reset_directive_searched): New function.
8585 * cp-support.h: Add 'searched' field to using_direct struct.
8586 (cp_lookup_symbol_imports): Ditto.
8587 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
8588 Perform recursive search.
8589 Implement non parent search.
8590 * valops.c (value_maybe_namespace_elt): Updated.
8592 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8595 * dwarf2read.c (read_lexical_block_scope): Create blocks for
8596 scopes which contain using directives even if they contain no
8598 * symtab.c (lookup_symbol_aux): Pass lowest level block to
8599 la_lookup_symbol_nonlocal.
8600 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
8601 cp_lookup_symbol_namespace.
8602 (cp_lookup_symbol_namespace): Perform an import lookup at every
8604 (cp_lookup_symbol_imports): New function.
8605 (cp_lookup_symbol_in_namespace): New function.
8607 2010-01-25 Tom Tromey <tromey@redhat.com>
8610 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
8613 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8615 * configure.ac: Only use host_os part when disabling TUI on osf.
8616 Use test to check variables, prefix strings with x.
8617 * configure: Regenerate.
8619 * solib-osf.c (osf_current_sos): Initialize tail.
8621 2010-01-25 gingold <gingold@adacore.com>
8623 * windows-nat.c (windows_continue): Use %x to print thread id.
8624 (get_windows_debug_event): Ditto.
8626 2010-01-22 Tom Tromey <tromey@redhat.com>
8629 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
8630 type and arguments. Use smash_to_methodptr_type.
8631 (read_structure_type): Call quirk_gcc_member_function_pointer
8633 * gdbtypes.h (smash_to_methodptr_type): Declare.
8634 * gdbtypes.c (smash_to_methodptr_type): New function.
8635 (lookup_methodptr_type): Use it.
8637 2010-01-21 Tom Tromey <tromey@redhat.com>
8640 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
8641 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
8642 * glibc-tdep.c (find_minsym_and_objfile): Remove.
8643 (glibc_skip_solib_resolver): Use
8644 lookup_minimal_symbol_and_objfile.
8646 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
8648 * inflow.c (check_syscall): Guard by #if clause for GO32 and
8651 2010-01-20 Tom Tromey <tromey@redhat.com>
8654 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
8655 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
8656 * dwarf2expr.c (new_dwarf_expr_context): Allocate
8657 dwarf_stack_values, not CORE_ADDRs.
8658 (execute_stack_op): Change DW_OP_div and comparison operators to
8659 use signed operands.
8661 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
8663 Per-inferior args and tty and environment.
8665 * infcmd.c (inferior_args): Rename to ...
8666 (inferior_args_scratch): ... this.
8667 (inferior_io_terminal): Rename to ...
8668 (inferior_io_terminal_scratch): ... this.
8669 (inferior_argc, inferior_argv): Remove.
8670 (set_inferior_io_terminal, get_inferior_io_terminal): Store
8671 inside current_inferior().
8672 (set_inferior_tty_command, show_inferior_tty_command): New.
8673 (get_inferior_args, set_inferior_args): Store inside
8675 (notice_args_set): Likewise and rename to...
8676 (set_args_command): ... this.
8677 (set_inferior_args_vector): Likewise.
8678 (notice_args_read): Rename to...
8679 (show_args_command): ...new.
8680 (tty_command): Remove.
8681 (run_command_1): Don't free old args, as they are freed by
8682 set_inferior_arg now.
8683 (run_no_args_command): Likewise.
8684 (inferior_environ): Remove.
8685 (run_command_1): Use environment of the current inferior.
8686 (environment_info, set_environment_command)
8687 (unset_environment_command, path_info, path_command): Likewise.
8688 (_initialize_infcmd): Adjust for function and variable renames.
8689 Do not init inferior_environ.
8690 * inferior.h (set_inferior_arg): Adjust prototype.
8691 (struct inferior): New fields args, argc, argv, terminal, environment.
8692 (inferior_environ): Remove declaration.
8693 * inferior.c (free_inferior): Free new fields.
8694 (add_inferior_silent): Initialize 'environment' field.
8695 * main.c (captured_main): Set arguments only after the initial
8696 inferior has been created. Set set_inferior_io_terminal,
8698 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
8700 (_initialize_mi_cmd_env): Adjust for disappearance of global
8702 * solib.c (solib_find): Use environment of the current inferior.
8704 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8706 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
8708 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
8710 2010-01-20 Joel Brobecker <brobecker@adacore.com>
8712 Get rid of ada-lang.c:function_name_from_pc.
8713 * ada-lang.c: Add "stack.h" #include.
8714 (function_name_from_pc): Delete.
8715 (is_known_support_routine): Replace call to function_name_from_pc
8716 by call to find_frame_funname.
8717 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8719 2010-01-19 Tom Tromey <tromey@redhat.com>
8722 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
8725 2010-01-19 Tom Tromey <tromey@redhat.com>
8727 * top.c (stop_sig, float_handler, do_nothing): Remove.
8729 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8731 * breakpoint.c (watchpoint_check): Check the call
8732 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
8734 * config/djgpp/fnchange.lst: Add translations for
8735 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
8736 watchpoint-cond-gone-stripped.c.
8738 2010-01-19 Tom Tromey <tromey@redhat.com>
8741 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
8742 into parent scope, and enumerator into grandparent scope.
8744 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8746 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
8748 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8750 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
8751 i[34567]86-*-solaris2.1[0-9]*.
8752 * configure.tgt: Likewise.
8754 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8756 * NEWS: Document the source command enhancement allowing it
8757 to load Python scripts. Document the "set/show script-extension"
8760 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8762 Add -Wunused-function to compile flags.
8763 * configure.ac: Add -Wunused-function to build_warnings.
8764 * configure: Regenerate.
8766 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8768 "delete" ada-lex.c:input function, not used.
8769 * ada-lex.l: #define YY_NO_INPUT.
8771 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8773 Delete free_named_symtabs and associated cleanup.
8774 * symfile.h (free_named_symtabs): Delete declaration.
8775 * symfile.c: Remove some commented out code (clear_symtab_users_once).
8776 (cashier_psymtab): Comment function out.
8778 (free_named_symtabs): Delete.
8779 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
8780 * dbxread.c (end_psymtab): Likewise.
8781 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
8782 * exec.c (exec_close_1): Ditto.
8783 * xcoffread.c (xcoff_end_psymtab): Likewise.
8785 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8787 * stack.c (print_block_frame_labels): Comment function out.
8789 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8791 Delete unused or undefined functions.
8792 * breakpoint.c (ep_parse_optional_filename): Delete.
8793 * dcache.c (dcache_write_line): Remove declaration.
8794 * infrun.c (build_infrun): Remove declaration.
8795 * tracepoint.c (tracepoint_save_command): Remove declaration.
8796 * linux-nat.c (init_lwp_list): Delete. No longer used.
8797 * event-loop.c (check_async_signal_handlers): Delete declaration.
8798 * infrun.c (init_execution_control_state): Delete.
8799 (proceed): Update comment to avoid mentioning
8800 init_execution_control_state.
8801 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
8802 * ada-lang.c (ada_to_static_fixed_value): Delete.
8803 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
8804 * cp-namespace.c (cp_copy_usings): Delete.
8805 * xml-syscall.c (xml_number_of_syscalls): Delete.
8806 * progspace.c (find_program_space_by_num): Delete.
8807 * inflow.c (handle_sigio): Delete declaration.
8808 * hppa-tdep.c (hppa_alignof): Delete.
8809 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
8810 (mipsnbsd_core_osabi_sniffer): Delete.
8812 2010-01-18 Tom Tromey <tromey@redhat.com>
8815 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
8816 (CONST_CAST): New tokens.
8817 (exp): Add new productions.
8818 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
8820 (is_cast_operator): New function.
8821 (yylex): Handle cast operators specially.
8822 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
8823 UNOP_REINTERPRET_CAST>: New cases.
8824 * expprint.c (print_subexp_standard): Likewise.
8825 (op_name_standard): Likewise.
8826 (dump_subexp_body_standard): Likewise.
8827 * parse.c (operator_length_standard): Likewise.
8828 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
8829 UNOP_REINTERPRET_CAST.
8830 * gdbtypes.c (class_types_same_p): New function.
8831 (is_ancestor): Use it.
8832 (is_public_ancestor): New function.
8833 (is_unique_ancestor_worker): Likewise.
8834 (is_unique_ancestor): Likewise.
8835 * gdbtypes.h (class_types_same_p, is_public_ancestor)
8836 (is_unique_ancestor): Declare.
8837 * valops.c (value_reinterpret_cast): New function.
8838 (dynamic_cast_check_1): Likewise.
8839 (dynamic_cast_check_2): Likewise.
8840 (value_dynamic_cast): Likewise.
8841 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
8843 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8845 Fix build failure when building without Python support.
8846 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
8849 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8851 Use XVS field type instead of doing a parallel lookup.
8852 * ada-lang.c (ada_get_base_type): Follow the XVS field type
8853 if it is a reference type instead of doing a type lookup using
8856 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8858 Trust PAD types instead of using PAD___XVS.
8859 * ada-lang.c (trust_pad_over_xvs): New static variable.
8860 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
8861 parallel XVS type, follow the XVS type instead of the PAD type.
8862 (unwrap_value): Make sure that there is no parallel XVE type
8863 before returning the value as is.
8864 (set_ada_list, show_ada_list): New static variables.
8865 (set_ada_command, show_ada_command): New functions.
8866 (_initialize_ada_language): Add new "set/show ada" prefix commands.
8867 Add new "set/show ada trust-PAD-over-XVS" setting.
8869 2010-01-18 Tom Tromey <tromey@redhat.com>
8870 Thiago Jung Bauermann <bauerman@br.ibm.com>
8872 Allow "source" to load python scripts.
8873 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
8874 * python/python.c (source_python_script): New function.
8875 * python/python.h (source_python_script): Add declaration.
8876 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
8877 (script_ext_off, script_ext_soft, script_ext_strict)
8878 (script_ext_enums, script_ext_mode): New static constants.
8879 (show_script_ext_mode, find_and_open_script): New functions.
8880 (source_script): Enhance to handle Python scripts.
8881 (init_cli_cmds): Add set/show script-extension commands.
8883 2010-01-16 Stan Shebs <stan@codesourcery.com>
8885 * tracepoint.h (struct trace_status): Use unsigned long long
8887 * tracepoint.c (trace_status_command): Fix printf directive.
8888 (trace_save_command): Check fwrite returns, fix printf directive.
8889 (trace_filename): New global.
8890 (tfile_open): Set it, check read returns.
8891 (tfile_close): Free trace_filename.
8892 (tfile_get_traceframe_address): Check read returns.
8893 (tfile_trace_find): Ditto.
8894 (tfile_fetch_registers): Ditto.
8895 (tfile_xfer_partial): Ditto.
8896 (tfile_get_trace_state_variable_value): Ditto.
8898 2010-01-15 Stan Shebs <stan@codesourcery.com>
8900 Add trace file support.
8901 * tracepoint.h (enum trace_stop_reason): New enum.
8902 (struct trace_status): New struct.
8903 (parse_trace_status): Declare.
8904 (struct uploaded_tp): Move here from remote.c,
8905 add fields for actions.
8906 (struct uploaded_tsv): New struct.
8907 * tracepoint.c (tfile_ops): New target vector.
8908 (trace_fd): New global.
8909 (tfile_open): New function.
8910 (tfile_close): New function.
8911 (tfile_files_info): New function.
8912 (tfile_get_trace_status): New function.
8913 (tfile_get_traceframe_address): New function.
8914 (tfile_trace_find): New function.
8915 (tfile_fetch_registers): New function.
8916 (tfile_xfer_partial): New function.
8917 (tfile_get_trace_state_variable_value): New function.
8918 (init_tfile_ops): New function.
8919 (_initialize_tracepoint): Call it, add tfile target.
8920 (trace_status): New global.
8921 (current_trace_status): New function.
8922 (trace_running_p): Remove, change all users to get from
8923 current_trace_status()->running.
8924 (get_trace_status): Remove.
8925 (trace_status_command): Call target_get_trace_status directly,
8926 report more detail including tracing stop reasons.
8927 (trace_find_command): Always allow tfind on a file.
8928 (trace_find_pc_command): Ditto.
8929 (trace_find_tracepoint_command): Ditto.
8930 (trace_find_line_command): Ditto.
8931 (trace_find_range_command): Ditto.
8932 (trace_find_outside_command): Ditto.
8933 (trace_frames_offset, cur_offset): Declare as off_t.
8934 (trace_regblock_size): Rename from reg_size, update users.
8935 (parse_trace_status): New function.
8936 (tfile_interp_line): New function.
8937 (disconnect_or_stop_tracing): Ensure current trace
8938 status before asking what to do.
8939 (stop_reason_names): New global.
8940 (trace_save_command): New command.
8941 (get_uploaded_tp): Move here from remote.c.
8942 (find_matching_tracepoint): Ditto.
8943 (merge_uploaded_tracepoints): New function.
8944 (parse_trace_status): Use stop_reason_names.
8945 (_initialize_tracepoint): Define tsave command.
8946 * target.h (target_ops): New fields to_save_trace_data,
8947 to_upload_tracepoints, to_upload_trace_state_variables,
8948 to_get_raw_trace_data, change to_get_trace_status
8949 to take a pointer to a status struct.
8950 (target_save_trace_data): New macro.
8951 (target_upload_tracepoints): New macro.
8952 (target_upload_trace_state_variables): New macro.
8953 (target_get_raw_trace_data): New macro.
8954 * target.c (update_current_target): Add new methods, change
8955 signature of to_get_trace_status.
8956 * remote.c (hex2bin): Make globally visible.
8958 (remote_download_trace_state_variable): Download name also.
8959 (remote_get_trace_status): Update parameter, use
8961 (remote_save_trace_data): New function.
8962 (remote_upload_tracepoints): New function.
8963 (remote_upload_trace_state_variables): New function.
8964 (remote_get_raw_trace_data): New function.
8965 (remote_start_remote): Use them.
8966 (_initialize_remote_ops): Add operations.
8967 * ax-gdb.c: Include breakpoint.h.
8968 * breakpoint.c (create_tracepoint_from_upload): Use
8969 break_command_really, return tracepoint, warn about unimplemented
8971 * NEWS: Mention trace file addition.
8973 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8975 Fix compilation warning on gcc-3.4.
8976 * exec.c (print_section_info): Move the `displacement' variable
8977 initialization to its declaration.
8979 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8981 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
8984 2010-01-15 Eric Botcazou <botcazou@adacore.com>
8986 "info tasks" broken by typedefs in ATCB type definitions.
8987 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
8988 ada_check_typedef before retrieving the length of the type for
8991 2010-01-15 Joel Brobecker <brobecker@adacore.com>
8993 Do not use name-based lookup for unconstrained packed arrays.
8994 * ada-lang.c (find_parallel_type_by_descriptive_type):
8995 Limit the fallback to name-based lookups to the case where
8996 the type is a constrained packed array.
8998 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9000 Enhance gdb-gdb.py to handle main_type.type_specific.
9001 * gdb-gdb.py: Print the type-specific part of struct main_type.
9003 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9005 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
9006 * configure: Regenerate.
9007 * config.in: Regenerate.
9008 * utils.c: Include sys/resource.h.
9009 (dump_core, can_dump_core): New.
9010 (internal_vproblem): Update the comment. Check can_dump_core while
9011 setting dump_core_p. Replace two abort calls by dump_core calls.
9013 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9014 Eli Zaretskii <eliz@gnu.org>
9016 * NEWS: Document the PIE support.
9018 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9020 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
9021 (check_is_pie_binary, _initialize_linux_tdep): Remove.
9023 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9025 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
9026 Replace exec_entry_point call by bfd_get_start_address.
9028 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9030 Support Valgrind attachments broken by the PIE support.
9031 * auxv.c: Include gdbcore.h.
9032 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
9033 parameters ops, object and annex. Remove their assertions.
9034 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
9035 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
9036 (memory_xfer_auxv): ... here.
9037 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
9039 * procfs.c (procfs_xfer_partial): Likewise.
9040 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
9041 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
9042 (svr4_solib_create_inferior_hook): Conditionalize the
9043 svr4_relocate_main_executable call.
9045 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9047 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
9048 target_section. Find SECT in current_target_sections, gdb_assert it.
9049 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
9051 * symtab.c (lookup_objfile_from_block): Return the binary file instead
9052 of separate debug info file.
9054 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9056 Support PIEs with no symfile_objfile.
9057 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
9058 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
9060 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9062 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
9064 (svr4_static_exec_displacement): ... a new function.
9065 (svr4_exec_displacement): New function.
9066 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
9067 new_offsets using alloca now. Remove variable old_chain and changed.
9068 Call objfile_relocate unconditionally now.
9070 2010-01-14 Doug Evans <dje@google.com>
9072 * gdbtypes.c (arch_flags_type): Fix comment.
9073 * gdbtypes.h (arch_composite_type): Fix comment.
9075 2009-01-14 Tristan Gingold <gingold@adacore.com>
9077 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
9078 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
9079 to symbol_file_add_from_bfd. Add OSO as separate objfile.
9080 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
9081 macho_add_oso_symfile.
9082 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
9084 2010-01-14 Joel Brobecker <brobecker@adacore.com>
9086 Tru64: Dead threads are never deleted.
9087 * dec-thread.c (dec_thread_ptid_is_alive): New function.
9088 (dec_thread_count_gdb_threads): Fix counter increment.
9089 (dec_thread_add_gdb_thread): Fix *listp increment.
9090 (resync_thread_list): Fix bug in deletion of dead threads that
9091 caused all threads to be deleted, instead of just the dead ones.
9093 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
9097 * python/python-internal.h: Add lazy_string_object_type
9099 (create_lazy_string_object, gdbpy_initialize_lazy_string)
9100 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
9101 * python/py-value.c (valpy_lazy_string): New function.
9102 (convert_value_from_python): Add lazy string conversion.
9103 * python/py-prettyprint.c (pretty_print_one_value): Check if
9104 return is also a lazy string.
9105 (print_string_repr): Add lazy string printing branch.
9106 (print_children): Likewise.
9107 * python/py-lazy-string.c: New file. Implement lazy strings.
9108 * python/python.c (_initialize_python): Call
9109 gdbpy_initialize_lazy_string.
9110 * varobj.c (value_get_print_value): Add lazy string printing
9111 branch. Account for encoding.
9112 * c-lang.c (c_printstr): Account for new encoding argument. If
9113 encoding is NULL, find encoding suited for type, otherwise use
9115 * language.h (language_defn): Add encoding argument.
9116 (LA_PRINT_STRING): Likewise.
9117 * language.c (unk_lang_printstr): Update to reflect new encoding
9118 argument to language_defn.
9119 * ada-lang.h (ada_printstr): Likewise.
9120 * c-lang.h (c_printstr): Likewise.
9121 * p-lang.h (pascal_printstr);
9122 * f-lang.c (f_printstr): Likewise.
9123 * m2-lang.c (m2_printstr): Likewise.
9124 * objc-lang.c (objc_printstr): Likewise.
9125 * p-lang.c (pascal_printstr): Likewise.
9126 * scm-lang.c (scm_printstr): Likewise.
9127 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
9129 * ada-valprint.c (ada_printstr): Likewise.
9130 * f-valprint.c (f_val_print): Likewise
9131 * m2-valprint.c (m2_val_print): Likewise.
9132 * p-valprint.c (pascal_val_print): Likewise.
9133 * expprint.c (print_subexp_standard): Likewise.
9134 * valprint.c (val_print_string): Likewise.
9135 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
9136 (SUBDIR_PYTHON_SRCS): Likewise.
9137 (py-lazy-string.o): New rule.
9139 2010-01-13 Doug Evans <dje@google.com>
9141 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
9142 uninitialized" warning from gcc on local `tree'.
9144 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
9146 Implement core awareness.
9148 * bcache.c (compare_ints): Remove
9149 (print_percentage): Use compare_positive_ints.
9150 * defs.h (compare_positive_ints): Declare.
9151 * linux-nat.h (struct lin_lwp): New field core.
9152 (linux_nat_core_of_thread_1): Declare.
9153 * linux-nat.c (add_lwp): Init the 'core' field.
9154 (linux_nat_wait_1): Record the core.
9155 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
9156 (linux_nat_add_target): Register the above.
9157 * linux-thread-db.c (update_thread_core): New.
9158 (thread_db_find_new_threads): Update core information for
9160 * remote.c (struct private_thread_info): New.
9161 (free_private_thread_info, demand_private_info): New.
9162 (PACKET_qXfer_threads, use_osdata_threads): New.
9163 (struct thread_item, threads_parsing_context
9164 (start_thread, end_thread, thread_attributes)
9165 (thread_children, threads_children, threads_elements): New.
9166 (remote_threads_info): Try qXfer:threads before anything
9168 (remote_protocol_packets): Register qXfer:threads.
9169 (remote_open_1): Init use_osdata_threads.
9170 (struct stop_reply): New field 'core'.
9171 (remote_parse_stop_reply): Parse core number.
9172 (process_stop_reply): Record core number.
9173 (remote_xfer_partial): Handle qXfer:threads.
9174 (remote_core_of_thread): New.
9175 (init_remote_ops): Register remote_core_of_thread.
9176 (_initialize_remote): Register qXfer:read.
9177 * target.c (target_core_of_thread): New
9178 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
9179 (struct target_ops): New field to_core_of_threads.
9180 (target_core_of_thread): Declare.
9181 * gdbthread.h (struct thread_info): New field private_dtor.
9182 * thread.c (print_thread_info): Report the core.
9183 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
9184 * utils.c (compare_positive_ints): New.
9185 * features/threads.dtd: New.
9186 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
9187 * mi/mi-main.c (struct collect_cores_data, collect_cores)
9188 (do_nothing, free_vector_of_osdata_items)
9189 (splay_tree_int_comparator, free_splay_tree): New.
9190 (print_one_inferior_data): Implemented printing of selected
9191 inferiors. Collect and print cores.
9192 (output_cores): New.
9193 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
9194 thread groups together with --available.
9196 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9198 * configure: Regenerate (for _STRUCTURED_PROC).
9200 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9202 Delete dead function.
9203 * ada-lang.c (extract_string): Delete. No longer used.
9205 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9207 Fix -Wunused warning in dec-thread.c.
9208 * dec-thread.c (dec_thread_count_gdb_threads)
9209 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
9211 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9213 * ada-valprint.c (ada_print_floating): Remove trailing space.
9215 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9217 Add support for DW_AT_GNAT_descriptive_type.
9218 * gdbtypes.h (enum type_specific_kind): New enum.
9219 (struct main_type) [type_specific_field]: New component.
9220 [type_specific]: Add new component "gnat_stuff".
9221 (struct gnat_aux_type): New type.
9222 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
9223 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
9224 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
9225 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
9226 (TYPE_SPECIFIC_FIELD): New macros.
9227 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
9228 type does not hold any cplus-specific data.
9229 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
9230 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
9231 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
9232 cplus-specific data.
9233 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
9234 Set new component TYPE_SPECIFIC_FIELD (type).
9235 (gnat_aux_default): New constant.
9236 (allocate_gnat_aux_type): New function.
9237 (init_type): Add initialization the type-specific stuff for
9238 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
9239 (print_gnat_stuff): New function.
9240 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
9241 specific data. Adjust code that prints the contents of the
9242 type-specific union using the TYPE_SPECIFIC_FIELD value.
9243 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
9244 the type cplus stuff for Ada types.
9245 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
9246 Error out if these routines are called with an Ada type.
9247 (read_structure_type, read_array_type, read_subrange_type):
9248 Add call to set_descriptive_type.
9249 (set_die_type): Initialize the gnat-specific data if necessary.
9250 (need_gnat_info, die_descriptive_type, set_descriptive_type):
9252 * ada-lang.c (decode_constrained_packed_array_type): Use
9253 decode_constrained_packed_array_type instead of doing a standard
9254 lookup to locate a parallel type.
9255 (find_parallel_type_by_descriptive_type): New function.
9256 (ada_find_parallel_type_with_name): New function.
9257 (ada_find_parallel_type): Reimplement using
9258 ada_find_parallel_type_with_name.
9259 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
9260 to check if type has a cplus stuff.
9261 * linespec.c (total_number_of_methods): Likewise.
9262 * mdebugread.c (new_type): Likewise.
9264 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9266 * NEWS: Document the 0b binary number prefix parsing.
9268 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9270 * objfiles.c (objfile_relocate1): Change the return type to int.
9271 Describe the new return value. Return non-zero if data changed.
9272 (objfile_relocate): New variable changed. Set it. Call
9273 breakpoint_re_set depending on CHANGED.
9275 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9277 Implement binary numbers parsing.
9278 * c-exp.y (parse_number): New case 'b' and 'B'.
9280 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9281 Tristan Gingold <gingold@adacore.com>
9283 * solib.c (info_sharedlibrary_command): Replace
9284 objfile_has_partial_symbols and objfile_has_full_symbols calls by
9285 objfile_has_symbols.
9287 2010-01-10 Joel Brobecker <brobecker@adacore.com>
9289 * NEWS: Document the improvements made to the mips-irix port.
9291 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9293 Fix the documentation of valprint.c:value_print.
9294 * valprint.c (value_print): Update the function description to
9295 mention that the syntax of the output follows the current_language,
9298 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9300 Fix displacement of separate debug info files.
9301 * objfiles.c (objfile_relocate): Rename to ...
9302 (objfile_relocate1): ... here and make it static. Extend the comment.
9303 (objfile_relocate): New function.
9304 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
9305 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
9306 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
9307 allocated using alloca.
9308 * symfile.c (copy_section_addr_info): Remove.
9309 (build_section_addr_info_from_objfile): Make it global. New variables
9310 addr_bit and mask, use them.
9311 * symfile.h (build_section_addr_info_from_objfile): New prototype.
9312 (copy_section_addr_info): Remove.
9314 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9316 Signal unwinder for mips-irix N32.
9317 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
9319 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
9320 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
9321 (SIGCONTEXT_LO_OFF): New macros.
9322 (mips_irix_n32_tramp_frame_init): New function.
9323 (mips_irix_n32_tramp_frame): New static constant.
9324 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
9326 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9328 Breakpoint in shared library does not work on mips-irix.
9329 * procfs.c: #include "observer.h".
9330 (procfs_inferior_created): New function, moving here the code
9331 which unsets the syssgi syscall-exit notifications.
9332 (procfs_create_inferior): Remove the code which unsets the syssgi
9333 syscall-exit notifications. It is too early to do this here.
9334 (_initialize_procfs): Attach the procfs_inferior_created observer.
9336 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9338 Wrong return convention for arrays (mips-irix).
9339 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
9340 128 bits or smaller are returned the same way as structs
9341 and unions of the the same size.
9343 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9345 Cannot set the PC on mips-irix.
9346 * irix5-nat.c (fill_gregset): Check regno against the raw PC
9347 register number, no the cooked one.
9349 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9351 Error while loading core file on mips-irix.
9352 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
9353 if debugging from a core file.
9355 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9357 GDB hangs when attaching to process on mips-irix.
9358 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
9359 attaching to a process.
9361 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9363 Use the correct breakpoint instruction on mips-irix.
9364 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
9365 containing the correct breakpoint instruction to use on mips-irix.
9366 Use it when the osabi is GDB_OSABI_IRIX.
9368 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9370 -Wunused warning in procfs.c (mips-irix only).
9371 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
9372 throughout instead of using praddset and prdelset respectively.
9374 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9376 GDB crash while stepping into function.
9377 * infrun.c (handle_inferior_event): Refetch the current frame
9378 after handling what.main_action, in case that pointer became
9381 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9383 Fix build failure of solaris-hosted cross debuggers.
9384 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
9386 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
9388 Fix build failure on sparc-solaris.
9389 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
9391 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9393 Move some symfile code into subroutines.
9394 * symfile.h (relative_addr_info_to_section_offsets)
9395 (addr_info_make_relative): New prototypes.
9396 * symfile.c (default_symfile_offsets): Move a part to ...
9397 (relative_addr_info_to_section_offsets): ... this new function.
9398 (default_symfile_offsets): Call it.
9399 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
9401 (addr_info_make_relative): ... this new function.
9403 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9405 Add from_tty to solib_create_inferior_hook.
9406 * infcmd.c (post_create_inferior): Move solib_add after
9407 solib_create_inferior_hook. Pass from_tty to
9408 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
9409 0 from_tty and comment why.
9410 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
9411 * linux-nat.c (linux_child_follow_fork): Likewise.
9412 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
9413 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
9415 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
9416 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
9417 * solib-null.c (null_solib_create_inferior_hook): Likewise.
9418 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
9419 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
9420 * solib-som.c (som_solib_create_inferior_hook): Likewise.
9421 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
9422 Pass it to svr4_so_ops.solib_create_inferior_hook.
9423 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
9425 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
9427 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
9429 * solib-target.c (solib_target_solib_create_inferior_hook): New
9431 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
9432 it to ops->solib_create_inferior_hook.
9433 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
9434 Move solib_add after solib_create_inferior_hook, call it now with
9435 from_tty as 0. New comment there.
9436 * solib.h (solib_create_inferior_hook): New parameter from_tty.
9437 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
9440 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
9443 * infrun.c (handle_inferior_event): Use get_thread_regcache
9444 with events ptid, not get_current_regcache.
9446 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9448 GDB crash with empty executable name (MinGW).
9449 * source.c (openp): Add assert that parameter string is not NULL.
9450 if parameter string is an empty string, then return with a failure
9453 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9455 Get rid of support for VAX Floats.
9456 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9457 (ada_vax_float_print_function): Delete.
9458 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9459 (ada_vax_float_print_function): Delete.
9460 * ada-typeprint.c (print_vax_floating_point_type): Delete.
9461 (ada_print_type): Remove support for VAX floats.
9462 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
9464 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9466 * stabsread.c (read_args): Handle zero arguments.
9468 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9470 Cannot find in-tree libiconv.a after reconfigure.
9471 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
9472 that we can use, then cache the path to this archive.
9473 * configure: Regenerate.
9475 2010-01-07 Stan Shebs <stan@codesourcery.com>
9477 Make tracepoint operations go through target vector.
9478 * target.h (enum trace_find_type): New enum.
9479 (struct target_ops): New fields to_trace_init,
9480 to_download_tracepoint, to_download_trace_state_variable,
9481 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
9482 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
9483 to_set_disconnected_tracing.
9484 (target_trace_init): New macro.
9485 (target_download_tracepoint): New macro.
9486 (target_download_trace_state_variable): New macro.
9487 (target_trace_start): New macro.
9488 (target_trace_set_readonly_regions): New macro.
9489 (target_get_trace_status): New macro.
9490 (target_trace_stop): New macro.
9491 (target_trace_find): New macro.
9492 (target_get_trace_state_variable_value): New macro.
9493 (target_set_disconnected_tracing): New macro.
9494 * target.c (update_current_target): Inherit and set defaults for
9495 tracepoint operations.
9496 * tracepoint.c (default_collect): Make globally visible.
9497 (target_is_remote): Remove, along with all calls.
9498 (tvariables_info): Call target_get_trace_state_variable_value.
9499 (remote_set_transparent_ranges): Remove.
9500 (trace_start_command): Call target_trace_init,
9501 target_download_tracepoint, etc.
9502 (download_tracepoint): Remove.
9503 (trace_stop_command): Simplify.
9504 (stop_tracing): Call target_trace_stop.
9505 (get_trace_status): Call target_get_trace_status.
9506 (trace_status_command): Add case for targets that cannot trace.
9507 (finish_tfind_command): Change to take numerical arguments, call
9509 (trace_find_command): Update call to finish_tfind_command.
9510 (trace_find_pc_command): Ditto.
9511 (trace_find_tracepoint_command): Ditto.
9512 (trace_find_line_command): Ditto.
9513 (trace_find_range_command): Ditto.
9514 (trace_find_outside_command): Ditto.
9515 (set_disconnected_tracing_value): Call
9516 target_set_disconnected_tracing.
9517 * remote.c: Add protocol encoding bits from tracepoint.c.
9518 (trace_error): Move from tracepoint.c.
9519 (remote_get_noisy_reply): Ditto.
9520 (free_actions_list_cleanup_wrapper): Ditto.
9521 (free_actions_list): Ditto.
9522 (remote_trace_init): New function.
9523 (remote_download_tracepoint): New function.
9524 (remote_download_trace_state_variable): New function.
9525 (remote_trace_set_readonly_regions): New function.
9526 (remote_trace_start): New function.
9527 (remote_get_trace_status): New function.
9528 (remote_trace_stop): New function.
9529 (remote_trace_find): New function.
9530 (remote_download_trace_state_variable): New function.
9531 (remote_set_disconnected_tracing): New function.
9532 (init_remote_ops): Add tracepoint operations.
9534 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
9536 2010-01-07 Tristan Gingold <gingold@adacore.com>
9538 * symfile.c (build_section_addr_info_from_objfile): New function.
9539 (symbol_file_add_separate): Don't use offsets from objfile but
9542 2010-01-06 Stan Shebs <stan@codesourcery.com>
9544 Support disconnected tracing.
9545 * infcmd.c (detach_command): Ask whether to stop tracing.
9546 * cli/cli-cmds.c (quit_command): Ditto.
9547 * breakpoint.h (struct breakpoint): New field number_on_target.
9548 * breakpoint.c (create_tracepoint_from_upload): New function.
9549 (get_tracepoint_by_number_on_target): New function.
9550 * remote.c (struct remote): New field disconnected_tracing.
9551 (remote_disconnected_tracing_feature): New function.
9552 (remote_protocol_features): Add DisconnectedTracing.
9553 (struct uploaded_tp): New struct.
9554 (uploaded_tps): New global.
9555 (get_uploaded_tp): New function.
9556 (find_matching_tracepoint): New function.
9557 (remote_get_tracing_state): New function.
9558 (remote_start_remote): Call it.
9559 * tracepoint.c (disconnected_tracing): New global.
9560 (trace_start_command): Initialize number_on_target.
9561 (stop_tracing): New function, split out from...
9562 (trace_stop_command): Call stop_tracing.
9563 (get_trace_status): New function, split out from...
9564 (trace_status_command): Call get_trace_status, add info on
9565 disconnection behavior.
9566 (disconnect_or_stop_tracing): New function.
9567 (finish_tfind_command): Translate from number on target.
9568 (trace_find_tracepoint_command): Translate to number on target.
9569 (send_disconnected_tracing_value): New function.
9570 (set_disconnected_tracing): New function.
9571 (_initialize_tracepoint): Add disconnected-tracing variable.
9572 * NEWS: Mention disconnected tracing.
9574 2010-01-06 Tristan Gingold <gingold@adacore.com>
9576 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
9577 parameter to main_objfile. Iterate on all separate debug objfiles.
9578 * symfile.h (symbol_file_add_separate)
9579 (find_separate_debug_file_by_debuglink): Remove parameter names.
9580 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
9581 (reread_symbols): Use free_objfile_separate_debug.
9582 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
9584 (objfile_separate_debug_iterate, add_separate_debug_objfile)
9585 (free_objfile_separate_debug): New prototypes.
9586 * objfiles.c (objfile_separate_debug_iterate): New function.
9587 (add_separate_debug_objfile, free_objfile_separate_debug): New
9589 (free_objfile): Use free_objfile_separate_debug. Adjust for
9590 multiple separate debug objfile.
9591 (objfile_has_symbols): Adjust comment. Iterate on all separate
9593 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
9595 (lookup_minimal_symbol_text): Ditto.
9596 (lookup_minimal_symbol_by_pc_name): Ditto.
9597 (lookup_minimal_symbol_solib_trampoline): Ditto.
9598 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
9601 2010-01-05 Stan Shebs <stan@codesourcery.com>
9603 Add fast tracepoints.
9604 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
9605 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
9606 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
9607 * breakpoint.c (tracepoint_type): New function.
9608 (ALL_TRACEPOINTS): Use it.
9609 (should_be_inserted): Ditto.
9610 (bpstat_check_location): Ditto.
9611 (print_one_breakpoint_location): Ditto.
9612 (user_settable_breakpoint): Ditto.
9613 (set_breakpoint_location_function): Ditto.
9614 (disable_breakpoints_in_shlibs): Ditto.
9615 (delete_trace_command): Ditto.
9616 (print_it_typical): Add bp_fast_tracepoint case.
9617 (bpstat_what): Ditto.
9618 (print_one_breakpoint_location): Ditto.
9619 (allocate_bp_location): Ditto.
9621 (breakpoint_re_set_one): Ditto.
9622 (disable_command): Ditto.
9623 (enable_command): Ditto.
9624 (check_fast_tracepoint_sals): New function.
9625 (break_command_really): Call it.
9626 (ftrace_command): New function.
9627 (_initialize_breakpoint): Add ftrace command.
9628 * gdbarch.sh (fast_tracepoint_valid_at): New.
9629 * gdbarch.h, gdbarch.c: Regenerate.
9630 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
9631 (i386_gdbarch_init): Use it.
9632 * remote.c (struct remote_state): New field fast_tracepoints.
9633 (PACKET_FastTracepoints): New packet config type.
9634 (remote_fast_tracepoint_feature): New function.
9635 (remote_protocol_features): Add FastTracepoints.
9636 (remote_supports_fast_tracepoints): New function.
9637 (_initialize_remote): Add FastTracepoints.
9638 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
9639 * NEWS: Mention fast tracepoints.
9641 2010-01-06 Joel Brobecker <brobecker@adacore.com>
9643 * gdb-gdb.py: New file.
9645 2010-01-05 Michael Snyder <msnyder@vmware.com>
9647 * infrun.c (handle_inferior_event): Fix typo in comment.
9649 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9651 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
9653 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9655 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
9657 (s390-linux32-expedite): Define.
9658 (s390-linux64-expedite): Define.
9659 (s390x-linux64-expedite): Define.
9660 * features/s390-acr.xml: New file.
9661 * features/s390-fpr.xml: New file.
9662 * features/s390-core32.xml: New file.
9663 * features/s390-core64.xml: New file.
9664 * features/s390x-core64.xml: New file.
9665 * features/s390-linux32.xml: New file.
9666 * features/s390-linux64.xml: New file.
9667 * features/s390x-linux64.xml: New file.
9668 * features/s390-linux32.c: New generated file.
9669 * features/s390-linux64.c: New generated file.
9670 * features/s390x-linux64.c: New generated file.
9672 * regformats/s390-linux32.dat: New generated file.
9673 * regformats/s390-linux64.dat: New generated file.
9674 * regformats/s390x-linux64.dat: New generated file.
9675 * regformats/reg-s390.dat: Remove.
9676 * regformats/reg-s390x.dat: Remove.
9678 * s390-nat.c: Include "auxv.h" and <elf.h>.
9679 (HWCAP_S390_HIGH_GPRS): Define if undefined.
9680 (s390_target_wordsize): New function.
9681 (s390_auxv_parse): Likewise.
9682 (s390_get_hwcap): Likewise.
9683 (s390_read_description): Likewise.
9684 (_initialize_s390_nat): Install s390_auxv_parse and
9685 s390_read_description.
9687 * s390-tdep.c: Include "features/s390-linux32.c",
9688 "features/s390-linux64.c", and "features/s390x-linux64.c".
9689 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
9690 (s390_register_call_saved): New function.
9691 (s390_register_name): Remove.
9692 (s390_register_type): Remove.
9693 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
9694 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
9695 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
9696 (s390_pseudo_register_name): New function.
9697 (s390_pseudo_register_type): New function.
9698 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
9699 Handle full GPR pesudos and varying pseudo register numbers.
9700 (s390_pseudo_register_write): Likewise
9701 (s390x_pseudo_register_read): Remove.
9702 (s390x_pseudo_register_write): Likewise.
9703 (s390_register_group): Remove.
9704 (s390_pseudo_register_group): New function.
9705 (s390_regmap_gregset): Add GPR upper halves.
9706 (s390x_regmap_gregset): Likewise.
9707 (s390_regmap_fpregset): Likewise.
9708 (s390_regmap_upper): New global variable.
9709 (s390_upper_regset): New global variable.
9710 (s390_upper_regset_sections): New global variable.
9711 (s390_regset_from_core_section): Handle GPR upper halves.
9712 (s390_core_read_description): New function.
9713 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
9714 register information. Handle varying pseudo register numbers.
9715 (s390_backchain_frame_unwind_cache): Likewise.
9716 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
9717 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
9718 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
9719 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
9720 Handle varying pseudo register numbers.
9721 (s390_unwind_pc): Handle varying pseudo register numbers.
9722 (s390_dwarf2_prev_register): New function.
9723 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
9724 register information. Handle varying pseudo register numbers.
9725 Install s390_dwarf2_prev_register to unwind full GPRs.
9726 (s390_gdbarch_init): Handle target descriptions. Assign varying
9727 pseudo register numbers. Install s390_adjust_frame_regnum.
9728 (_initialize_s390_tdep): Initialize target descriptions.
9730 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
9731 (S390_NUM_REGS): Redefine to include upper half registers.
9732 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
9733 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
9734 (tdesc_s390_linux32): Add declaration.
9735 (tdesc_s390_linux64): Likewise.
9736 (tdesc_s390x_linux64): Likewise.
9738 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9740 * regset.h (struct core_regset_section): Add HUMAN_NAME.
9741 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
9742 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
9743 (ppc_linux_vmx_regset_sections): Likewise.
9744 (ppc_linux_fp_regset_sections): Likewise.
9746 * corelow.c (get_core_register_section): Constify arguments.
9747 (get_core_registers): Use gdbarch_core_regset_sections instead
9748 of hard-coded platform-specific register section names.
9750 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9752 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
9753 a register, assume the least-significant part is used.
9754 (write_pieced_value): Likewise.
9756 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9758 * printcmd.c: Include "arch-utils.h".
9759 (do_one_display): Re-parse expression if current architecture changed.
9761 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9762 Joel Brobecker <brobecker@adacore.com>
9764 * gdbtypes.c (check_typedef): New comment on type length.
9765 * value.c (allocate_value_lazy): Remove the unused atype variable. New
9766 comment on type length.
9767 (value_primitive_field): Keep the original TYPE value, new comment.
9769 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9771 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
9772 p_start. Change != comparisons to > and < comparisons.
9774 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9776 * cli/cli-script.c (process_next_line): Check P2 overrun.
9778 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9780 Update the copyright hearder to add year 2010 for most GDB files.
9782 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9784 Fix build failure in inf-ptrace.c.
9785 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
9787 2010-01-01 Joel Brobecker <brobecker@adacore.com>
9789 * top.c (print_gdb_version): Update copyright year.
9791 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
9793 Fix break *FUN'address thread NUM.
9794 * ada-lex.l (task): Expand rule to also match the thread keyword.
9796 2010-01-01 Joel Brobecker <brobecker@adacore.com>
9798 Fix break *FUN'address task NUM.
9799 * ada-lex.l (task): New rule.
9800 * ada-lang.c (valid_task_id): Make sure the Ada task list has
9801 been built before using it.
9803 For older changes see ChangeLog-2009.
9809 version-control: never