1 2010-09-01 Tom Tromey <tromey@redhat.com>
3 * symtab.h (lookup_type_symbol): Declare.
4 * symtab.c (lookup_symbol_in_language_full): Rename from
5 lookup_symbol_in_language. Add 'for_type' argument.
6 (lookup_symbol_in_language): New function.
7 (lookup_type_symbol): Likewise.
8 (lookup_symbol_aux): Add 'for_type' argument.
9 (match_symbol_aux): New function.
10 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
11 (match_transparent_type): New function.
12 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
13 * symfile.h (struct quick_symbol_functions)
14 <pre_expand_symtabs_matching>: Remove.
15 <expand_one_symtab_matching>: New field.
16 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
17 (pre_expand_symtabs_matching_psymtabs): Remove.
18 (psym_functions): Update.
19 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
20 * dwarf2read.c (dw2_lookup_symbol): Update comment.
21 (dw2_pre_expand_symtabs_matching): Remove.
22 (dw2_expand_one_symtab_matching): New function.
23 (dwarf2_gdb_index_functions): Update.
25 2010-09-01 Joel Brobecker <brobecker@adacore.com>
27 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
29 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
31 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
32 as a feature reported by -list-target-features.
34 2010-09-01 Joel Brobecker <brobecker@adacore.com>
36 * features/Makefile (WHICH): Add rs6000/powerpc-32.
37 (powerpc-32.o, powerpc-32.c): New rules.
38 (clean): Also remove powerpc-32.c.
39 * regformats/rs6000/powerpc-32.dat: Generate.
41 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
43 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
45 * psymtab.h (psymbol_bcache_init): New function prototype.
46 (psymbol_bcache_free): New function prototype.
47 (psymbol_bcache_get_bcache): New function prototype.
48 * psymtab.c (psymbol_bcache_init): New function.
49 (psymbol_bcache_free): New function.
50 (psymbol_bcache_full): New function.
51 (psymbol_bcache_get_bcache): New function.
52 (add_psymbol_to_bcache): use psymbol_bcache_full.
53 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
55 * symmisc.c (print_symbol_bcache_statistics): Updated.
56 (print_objfile_statistics): Updated.
57 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
59 (free_objfile): Use psymbol_bcache_free.
61 2010-08-31 Tom Tromey <tromey@redhat.com>
64 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
65 Don't set TYPE_NAME on the type.
67 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
69 * infrun.c (set_exec_direction_func): Error out if target does not
70 support reverse execution.
72 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
74 Make linux_get_siginfo_type `type *' unique.
75 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
76 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
77 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
78 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
79 (_initialize_linux_tdep): New.
81 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
84 * defs.h (find_memory_region_ftype): New typedef.
85 (exec_set_find_memory_regions): Use it.
86 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
87 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
88 * gcore.c (objfile_find_memory_regions): Likewise.
89 * gnu-nat.c (gnu_find_memory_regions): Likewise.
90 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
91 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
92 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
93 find_memory_region_ftype.
94 (insert_dbx_link_bpt_in_region): Likewise.
95 (iterate_over_mappings): Likewise. Drop the comment part about the
97 (find_memory_regions_callback): Use find_memory_region_ftype.
98 (proc_find_memory_regions): Likewise.
99 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
100 find_memory_region_ftype.
101 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
102 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
104 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
106 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
107 'static partial_symbol psymbol'.
108 (psymbol_hash): New function.
109 (psymbol_compare): New function.
110 * bcache.c (hash_continue): New.
111 (hash): Use hash_continue.
112 * bcache.c: Add hash_function and compare_function
113 pointers to bcache struct.
114 (bcache_full): Use bcache->hash_function, and
115 bcache->compare_function.
116 (bcache_compare): New function.
117 (bcache_xmalloc): Take hash_function and
118 compare_function arguments and initialize the
121 * objfiles.c (allocate_objfile): Updated.
122 * symfile.c (reread_symbols): Updated.
123 * python/py-type.c (typy_richcompare): Updated.
125 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
126 Tom Tromey <tromey@redhat.com>
129 * python/py-value.c (valpy_get_dynamic_type): New function.
130 (value_object_getset): Add "dynamic_type".
131 (valpy_get_type): Fail on error.
133 2010-08-30 Yao Qi <yao@codesourcery.com>
135 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
136 (arm_linux_syscall_next_pc): New.
137 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
138 (arm_linux_init_abi): Initialize syscall_next_pc.
139 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
140 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
141 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
142 Declare arm_frame_is_thumb.
144 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
147 * breakpoint.c (bpstat_alloc): Remove unused prototype.
148 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
150 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
151 calls of bpstat_alloc. Remove explicit bs chain termination.
153 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
156 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
157 (my_waitpid): Likewise.
159 2010-08-27 Doug Evans <dje@google.com>
161 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
164 2010-08-27 Tom Tromey <tromey@redhat.com>
166 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
167 TYPE_FIELD_IGNORE_BITS.
169 2010-08-27 Doug Evans <dje@google.com>
171 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
172 the order they're defined in. munmap .debug_types buffer.
174 2010-08-26 Doug Evans <dje@google.com>
176 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
177 (dw2_forget_cached_source_info): Rename local cu to per_cu.
178 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
179 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
180 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
181 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
182 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
183 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
184 (write_psymtabs_to_index): Ditto.
186 2010-08-26 Pedro Alves <pedro@codesourcery.com>
188 * NEWS: Mention libthread_db debugging with core files.
190 2010-08-26 Doug Evans <dje@google.com>
192 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
193 forward decl. Pass pst->dirname to dwarf_decode_lines.
194 (psymtab_include_file_name): New function.
195 (dwarf_decode_lines): Call it. Update comments.
197 2010-08-25 Pedro Alves <pedro@codesourcery.com>
199 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
200 compilation unit being different from target die's.
202 2010-08-24 Doug Evans <dje@google.com>
205 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
206 debug_types_type_hash.
207 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
209 (lookup_die_type): Renamed from tag_type_to_tag. First look in
210 appropriate type_hash table. All callers updated.
211 (allocate_signatured_type_table): Renamed from
212 allocate_signatured_type_hash_table. All callers updated.
213 (create_signatured_type_table_from_index): Renamed from
214 create_signatured_type_hash_from_index. All callers updated.
215 (read_die_type): Add comment. Move actual reading to ...
216 (read_die_type_1): ... here. New function.
217 (follow_die_ref_or_sig): Tweak comment.
218 (set_die_type): Rewrite to use appropriate choice of
219 debug_info_type_hash or debug_types_type_hash.
220 (get_die_type_at_offset): New function.
221 (get_die_type): Call it.
223 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
225 * python/py-type.c (typy_richcompare): Initialize worklist.
227 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
228 Kazu Hirata <kazu@codesourcery.com>
229 Jonathan Larmour <jifl@eCosCentric.com>
231 * arm-tdep.c: Include features/arm-with-m.c.
232 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
234 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
235 Check is_m after force-mode.
236 (arm_gdbarch_init): Check the binary before the target description.
237 Add check for M profile attribute. If we have an M-profile device,
238 but no target register description, use arm-with-m. Recognize the
239 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
240 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
241 * arm-tdep.h (XPSR_T): Define.
242 (struct gdbarch_tdep): Add is_m member.
243 * features/arm-m-profile.xml, features/arm-with-m.c,
244 features/arm-with-m.xml: New files.
246 2010-08-23 Doug Evans <dje@google.com>
248 * dwarf2read.c (read_structure_type): Add comment.
249 (read_enumeration_type): Add comment.
250 (process_enumeration_scope): Move definition of some locals
252 (read_namespace_type): Add comment.
253 (set_die_type): Fix typo in comment.
255 2010-08-23 Tom Tromey <tromey@redhat.com>
258 * python/py-value.c: Include expression.h.
259 (valpy_do_cast): New function.
260 (valpy_cast): Use it.
261 (valpy_dynamic_cast): New function.
262 (valpy_reinterpret_cast): Likewise.
263 (value_object_methods): Add dynamic_cast, reinterpret_cast.
265 2010-08-23 Tom Tromey <tromey@redhat.com>
268 * python/py-value.c (valpy_nonzero): Don't throw error for other
271 2010-08-23 Tom Tromey <tromey@redhat.com>
274 * python/py-type.c: Include bcache.h, vec.h.
275 (struct type_equality_entry): New.
276 (compare_strings): New function.
277 (check_types_equal): Likewise.
278 (check_types_worklist): Likewise.
279 (typy_richcompare): Likewise.
280 (type_object_type): Set tp_richcompare field.
282 2010-08-23 Tom Tromey <tromey@redhat.com>
285 * python/py-type.c (typy_fields): Call check_typedef.
286 (typy_template_argument): Add TRY_CATCH.
288 2010-08-23 Tom Tromey <tromey@redhat.com>
291 * python/py-type.c (typy_array): New function.
292 (type_object_methods): Add "array".
294 2010-08-20 Pedro Alves <pedro@codesourcery.com>
296 * python/python.c: Include "serial.h".
297 (gdbpy_event_fds): Change type to `struct serial *' a array from
299 (gdbpy_run_events): Change parameters. Use serial_readchar in
301 (gdbpy_post_event): Use serial_write in place of write.
302 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
303 serial_async in place of add_file_handler.
305 2010-08-20 Pedro Alves <pedro@codesourcery.com>
307 * serial.h (gdb_pipe, serial_pipe): Declare.
308 * serial.c (serial_interface_lookup): Take a const char pointer.
309 (serial_fdopen): Rename to ...
310 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
311 Call the OPS' fdopen function if there is one.
312 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
314 (struct serial_ops) <fdopen>: New field.
316 * ser-mingw.c (free_pipe_state):
317 (free_pipe_state): Close output on non-pex pipes.
318 (pipe_windows_fdopen): New.
320 (_initialize_ser_windows): Register pipe_windows_fdopen.
321 * ser-go32.c (gdb_pipe): New.
322 * ser-pipe.c (pipe_close): Close file descriptor even if there's
327 2010-08-20 Keith Seitz <keiths@redhat.com>
330 * dwarf2read.c (struct delayed_method_info): New struct.
331 (struct dwarf2_cu): Add vector method_list.
332 (scan_partial_symbols): Count methods for union, class, structure,
334 (add_to_method_list): New function.
335 (free_delayed_list): New function.
336 (compute_delayed_physnames): New function.
337 (process_full_comp_unit): Make a cleanup for the CU's delayed
338 physname list, compute the delayed physnames, and free the
340 (dwarf2_add_member_fn): For C++ and Java, delay the computation
341 of the physname until after the CU is read.
343 * dwarf2read.c (read_structure_type): Check if the current
344 DIE's type was already completed after dwarf2_full_name
347 2010-08-19 Stan Shebs <stan@codesourcery.com>
349 * NEWS: Mention some additional changes.
351 2010-08-19 Tom Tromey <tromey@redhat.com>
353 * Makefile.in (install-python): Add DESTDIR.
355 2010-08-19 Doug Evans <dje@google.com>
358 * parser-defs.h (parse_float, parse_c_float): Declare.
359 * parse.c (parse_float, parse_c_float): New function.
360 * c-exp.y (parse_number): Call parse_c_float.
361 * objc-exp.y (parse_number): Ditto.
362 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
363 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
365 2010-08-19 Joel Brobecker <brobecker@adacore.com>
367 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
368 the arguments in the correct order.
369 * symtab.c (maybe_add_partial_symtab_filename): Declare
370 the arguments in the correct order.
372 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
374 * varobj.c (varobj_create): Replace variable old_fi with old_id,
375 initialize it by null_frame_id, wrap its usage by get_frame_id,
376 frame_id_p and frame_find_by_id.
378 2010-08-18 Tom Tromey <tromey@redhat.com>
381 * configure: Rebuild.
382 * configure.ac: Add install-python to CONFIG_INSTALL.
383 * Makefile.in (install-python): New.
385 2010-08-18 Doug Evans <dje@google.com>
387 * gdb_assert.h (gdb_assert_not_reached): New macro.
388 (gdb_assert_fail): Fix typo in comment.
389 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
391 * darwin-nat.c (darwin_check_new_threads): Ditto.
392 * dwarf2read.c (dwarf2_get_section_info): Ditto.
393 (munmap_section_buffer): Ditto.
394 * m32c-tdep.c (make_types): Ditto.
395 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
396 * macroexp.c (get_character_constant): Ditto.
397 (get_string_literal): Ditto.
398 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
399 (mep_pseudo_cr_index, mep_register_type): Ditto.
400 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
401 (mep_get_insn, mep_analyze_prologue): Ditto.
402 * objfiles.c (qsort_cmp): Ditto.
403 * prologue-value.c (pv_is_identical): Ditto.
404 * record.c (record_get_loc): Ditto.
405 * value.c (value_static_field): Ditto.
406 * xtensa-tdep.c (call0_track_op): Ditto.
408 2010-08-18 Tom Tromey <tromey@redhat.com>
411 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
412 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
413 name-copying lower. Document exception behavior.
414 * completer.c (expression_completer): Catch exceptions from
415 parse_field_expression.
417 2010-08-18 Pedro Alves <pedro@codesourcery.com>
421 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
422 workaround on core files.
423 (try_thread_db_load_1): Don't try enabling thread event reporting
425 (thread_db_load): Allow thread_db on core files.
426 (attach_thread): Don't check thread signals on core files, nor try
427 really attaching to the thread, nor enabling thread event event
429 (thread_db_detach): Don't try disabing thread event reporting or
430 removing thread event breakpoints when debugging a core file.
431 (find_new_threads_callback): Don't try enabling thread event
432 reporting on core files.
433 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
434 debugging a core file.
435 (thread_db_find_new_threads): Don't update thread
436 cores (processors) when debugging a core (dump).
438 2010-08-18 Pedro Alves <pedro@codesourcery.com>
442 * corelow.c (add_to_thread_list): Don't use
443 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
444 (get_core_register_section): Don't use
445 gdbarch_core_reg_section_encodes_pid.
447 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
448 * gdbarch.h, gdbarch.c: Regenerate.
449 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
450 gdbarch_core_reg_section_encodes_pid.
451 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
452 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
453 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
455 2010-08-18 Yao Qi <yao@codesourcery.com>
457 * MAINTAINERS : Add myself under Write After Approval.
459 2010-08-17 Tom Tromey <tromey@redhat.com>
461 * NEWS: Mention template parameter support.
463 2010-08-17 Pedro Alves <pedro@codesourcery.com>
467 * breakpoint.c (decref_bp_location): Assert the reference count is
470 2010-08-17 Pedro Alves <pedro@codesourcery.com>
474 * breakpoint.c (breakpoint_init_inferior): Decrement the
475 location's reference count instead of deleting right away.
476 (bpstat_free): Decrement the location's reference count. Make
478 (bpstat_copy): Increment the location's reference count.
479 (bpstat_find_breakpoint): Adjust.
480 (bpstat_num): Adjust.
481 (print_it_typical): Adjust. Use the breakpoint pointer in the
482 bpstat instead of the location's owner.
483 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
484 Adjust to record the location's owner in the bpstat.
485 (watchpoint_check): Use the breakpoint pointer in the bpstat
486 instead of the location's owner.
487 (bpstat_check_breakpoint_conditions): Don't handle
488 bp_watchpoint_scope here. Use the breakpoint pointer in the
489 bpstat instead of the location's owner.
490 (bpstat_stop_status): Defer inferior function calls to after
491 building the bpstat list. Handle bp_watchpoint_scope here. Use
492 the breakpoint pointer in the bpstat instead of the location's
494 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
495 the location's owner.
496 (free_bp_location): Don't walk bpstats clearing locations.
497 (incref_bp_location): New.
498 (decref_bp_location): New.
499 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
500 instead of the location's owner.
501 (update_global_location_list): Clear the location's owner, and
502 decrement the location's reference count instead of deleting it
504 (breakpoint_retire_moribund): Decrement the location's reference
505 count instead of deleting it right away.
506 (bpstat_remove_bp_location): Delete.
507 (bpstat_remove_breakpoint): New.
508 (bpstat_remove_bp_location_callback): Delete.
509 (bpstat_remove_breakpoint_callback): New.
510 (delete_breakpoint): Iterate over all threads' stop_bpstat's
511 clearing references to the breakpoint that is being deleted.
513 * breakpoint.h (struct bp_location) <refc>: New field.
514 <owner>: Update comments.
515 (bpstat_free): Delete declaration.
516 (struct bpstats): Change the type of the breakpoint_at field to
517 struct breakpoint point, from struct bp_location pointer. Add new
518 field bp_location_at.
520 2010-08-16 Tom Tromey <tromey@redhat.com>
524 2010-08-16 Tom Tromey <tromey@redhat.com>
526 * NEWS: Mention watch -location.
528 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
530 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
531 EXP_STRING_REPARSE to EXP_STRING.
532 (watch_command_1): Set also EXP_STRING_REPARSE.
533 (delete_breakpoint): Free also EXP_STRING_REPARSE.
534 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
535 Update comment for exp_string.
537 2010-08-16 Tom Tromey <tromey@redhat.com>
539 * value.c (release_value): Clear 'next' pointer.
540 * breakpoint.c (watch_command_1): Add 'just_location' argument.
541 (watch_command_wrapper): Update.
542 (watch_maybe_just_location): New function.
543 (watch_command): Update.
544 (rwatch_command_wrapper): Update.
545 (rwatch_command): Update.
546 (awatch_command_wrapper): Update.
547 (awatch_command): Update.
548 (check_for_argument): New function.
549 (_initialize_breakpoint): Update help text.
551 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
553 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
554 typedef'ed function types correctly.
556 2010-08-13 Tom Tromey <tromey@redhat.com>
558 * python/python-internal.h (gdbpy_get_hook_function): Don't
561 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
563 * cli-logging.c (logging_overwrite, logging_redirect): Make them
566 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
568 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
569 the format strings to be compatible with Python 2.4.
571 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
573 Easier and more stubborn MI memory read commands.
575 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
576 and data-write-memory-bytes.
577 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
578 (mi_cmd_data_write_memory_bytes): New.
579 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
580 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
582 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
583 * target.c (target_read_until_error): Remove.
584 (read_whatever_is_readable, free_memory_read_result_vector)
585 (read_memory_robust): New.
586 * target.h (target_read_until_error): Remove.
587 (struct memory_read_result, free_memory_read_result_vector)
588 (read_memory_robust): New.
590 2010-08-13 Hui Zhu <teawater@gmail.com>
592 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
593 (read_comp_unit): Initialize back_to.
595 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
596 Pedro Alves <pedro@codesourcery.com>
598 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
599 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
600 (struct partial_die_info) <has_template_arguments>: New field.
601 <num_attrs>: Change type to unsigned char.
602 <building_fullname>: New field.
603 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
604 allocate a CU if we don't have one already. Add a cleanup for the
606 (partial_die_full_name): Handle template arguments not in
608 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
609 (load_full_comp_unit): Only allocate a CU if we don't have one
611 (do_ui_file_peek_last): New.
612 (dwarf2_compute_name): Handle template parameters not in
614 (read_comp_unit): Read and free abbrevs if not read yet.
615 (load_partial_dies): Handle template arguments not in DW_AT_name.
616 (find_partial_die): If we have a CU, but no a partial dies yet,
618 (dwarf2_const_value_attr): New, abstracted out from
620 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
621 dwarf2_const_value_attr.
622 (determine_prefix): Detect and break loops created by RCVT's debug
624 (maybe_queue_comp_unit): Bail out early if reading partial
626 (follow_die_offset): Load full CU if we have no dies.
627 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
628 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
630 2010-08-11 Tom Tromey <tromey@redhat.com>
631 Phil Muldoon <pmuldoon@redhat.com>
633 * python/python.c (gdbpy_run_events): New function.
634 (gdbpy_post_event): Likewise.
635 (gdbpy_initialize_events): Likewise.
636 (_initialize_python): Call gdbpy_initialize_events.
638 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
640 * gdb/valarith.c (vector_binop): New function.
641 (scalar_binop): Likewise.
642 (value_binop): Call scalar_binop or vector_binop depending on the types.
643 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
644 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
646 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
648 2010-08-11 Brad Roberts <braddr@puremagic.com>
650 * d-lang.c (extract_identifiers): Handle multiple digits.
652 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
655 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
656 Rename to dummy_frame_unwind.
657 (dummy_frame_unwind): Remove.
658 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
659 * frame-unwind.c (frame_unwind_init): Use address of
660 dummy_frame_unwind and inline_frame_unwind.
661 * frame.c (create_sentinel_frame): Use address of
662 sentinel_frame_unwind.
663 * inline-frame.c (inline_frame_unwinder): Rename to
665 (inline_frame_unwind): Remove.
666 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
667 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
668 sentinel_frame_unwind.
669 (sentinel_frame_unwind): Remove.
670 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
673 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
676 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
677 and returned value. New comment from frame-unwind.h.
678 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
680 * frame.c (get_frame_id, frame_unwind_register_value)
681 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
682 (get_frame_type, frame_unwind_arch): Do not use the return value of
683 frame_unwind_find_by_frame.
685 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
686 Thiago Jung Bauermann <bauerman@br.ibm.com>
687 Tom Tromey <tromey@redhat.com>
689 * python/python.c (gdbpy_solib_address): New function.
690 (gdbpy_decode_line): Likewise.
692 2010-08-10 Tom Tromey <tromey@redhat.com>
694 Revert gdb-add-index addition:
695 * Makefile.in (install-only): Don't install gdb-add-index.
696 * gdb-add-index.sh: Remove.
698 2010-08-09 Kevin Buettner <kevinb@redhat.com>
700 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
701 `target_has_execution' check with `to_has_memory' check.
702 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
703 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
704 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
706 2010-08-09 Kevin Buettner <kevinb@redhat.com>
708 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
709 (resume_siggnal, resume_step): Move these static globals...
710 (struct sim_inferior_data): ...into this new struct.
711 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
713 (gdb_callback, callbacks_initialized): Move these globals to
714 a point earlier in the file.
715 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
716 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
717 (gdbsim_close_inferior, gdbsim_resume_inferior)
718 (gdbsim_stop_inferior): New functions.
719 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
721 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
722 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
723 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
724 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
725 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
726 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
727 new local variable `sim_data' in each of these functions. Use
728 `sim_data' to reference former globals `program_loaded',
729 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
731 (gdbsim_open): Remove local variable `argv'. Put results of call
732 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
733 make a cleanup for it. Free it though when a sim instance cannot
735 (gdbsim_close): Free sim_argv and null it out as appropriate.
736 Close sim instances in all inferiors.
737 (gdbsim_cntrl_c): Stop all inferiors.
739 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
741 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
743 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
744 function after symbol construction is complete.
745 Do the same for template symbol addition to template_symbols list.
747 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
749 * symtab.c (symbol_get_demangled_name): Remove assertion and
750 return NULL when language_specific.cplus_specific is not initialized.
751 * stabsread.c (define_symbol): Set the name before calling
752 cp_scan_for_anonymous_namespaces.
754 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
756 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
758 (symbol_init_language_specific): Renamed to symbol_set_language.
759 * symtab.c (symbol_init_language_specific): Removed redundant check
761 Renamed to symbol_set_language.
762 * stabsread.c (define_symbol): Updated.
763 (read_enum_type): Updated
764 * psymtab.c (add_psymbol_to_bcache): Updated.
765 * minsyms.c (install_minimal_symbols): Updated.
766 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
767 SYMBOL_LANGUAGE to set the language.
768 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
769 * mdebugread.c (new_symbol): Ditto.
770 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
771 * dwarf2read.c (new_symbol_full): Ditto.
772 * jv-lang.c (add_class_symbol): Ditto.
774 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
776 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
777 (make_cleanup_restore_page_info)
778 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
779 * gdbcmd.h (execute_command_to_string): New declaration.
780 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
781 (make_cleanup_restore_ui_file): Move to utils.c
782 (execute_gdb_command) <to_string>: Move ...
783 * top.c (execute_command_to_string): ... here. Call
784 set_batch_flag_and_make_cleanup_restore_page_info.
785 * utils.c (make_cleanup_restore_integer): New source file blank line.
786 (make_cleanup_restore_uinteger): New.
787 (struct restore_ui_file_closure, do_restore_ui_file)
788 (make_cleanup_restore_ui_file): Move here from python/python.c.
789 (init_page_info) <batch_flag>
790 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
791 (set_batch_flag_and_make_cleanup_restore_page_info): New.
793 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
795 * thread.c (add_thread_silent): Use null_ptid instead of
796 minus_one_ptid while getting rid of stale inferior_ptid.
798 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
800 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
801 Throughout, call read_encoded_value with ptr_size rather than addr_size.
802 (decode_frame_entry_1): Remove redundant setting of
803 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
804 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
805 on examined frame section. Add comment to explain why.
806 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
807 comment to explain usage.
808 * gdbarch.c: Regenerate.
809 * gdbarch.h: Regenerate.
811 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
813 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
816 * varobj.c (varobj_create): Move variables fi, old_fi and block to
819 2010-08-05 Pedro Alves <pedro@codesourcery.com>
821 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
822 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
823 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
824 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
825 linux-tdep.o to gdb_target_obs.
827 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
829 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
832 2010-08-05 Hui Zhu <teawater@gmail.com>
834 * mips-linux-tdep.c(regset.h): New include.
835 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
836 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
837 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
838 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
839 mips_linux_regset_from_core_section): New functions.
840 (fetch_core_registers, regset_core_fns): Deleted.
841 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
842 Deleted regset_core_fns.
843 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
844 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
845 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
848 2010-08-04 Pedro Alves <pedro@codesourcery.com>
850 * s390-tdep.c: Include linux-tdep.h.
851 (s390_gdbarch_init): Call linux_init_abi.
853 2010-08-04 Pedro Alves <pedro@codesourcery.com>
855 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
856 instead of printing "Thread" here.
857 * linux-tdep.c: Include inferior.h.
858 (linux_core_pid_to_str): New.
859 (linux_init_abi): New.
860 * linux-tdep.h (linux_init_abi): Declare.
861 * alpha-linux-tdep.c: Include linux-tdep.h.
862 (alpha_linux_init_abi): Call linux_init_abi.
863 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
864 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
865 * frv-linux-tdep.c: Include linux-tdep.h
866 (frv_linux_init_abi): Call linux_init_abi.
867 * hppa-linux-tdep.c: Include linux-tdep.h
868 (hppa_linux_init_abi): Call linux_init_abi.
869 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
870 * ia64-linux-tdep.c: Include linux-tdep.h.
871 (ia64_linux_init_abi): Call linux_init_abi.
872 * m32r-linux-tdep.c: Include linux-tdep.h.
873 (m32r_linux_init_abi): Call linux_init_abi.
874 * m68klinux-tdep.c: Include linux-tdep.h.
875 (m68k_linux_init_abi): Call linux_init_abi.
876 * microblaze-linux-tdep.c: Include linux-tdep.h.
877 (microblaze_linux_init_abi): Call linux_init_abi.
878 * mips-linux-tdep.c: Include linux-tdep.h.
879 (mips_linux_init_abi): Call linux_init_abi.
880 * mn10300-linux-tdep.c: Include linux-tdep.h.
881 (am33_linux_init_osabi): Call linux_init_abi. Rename the
882 'gdbinfo' parameter to 'info'.
883 * ppc-linux-tdep.c: Include linux-tdep.h.
884 (ppc_linux_init_abi): Call linux_init_abi.
885 * sh-linux-tdep.c: Include linux-tdep.h.
886 (sh_linux_init_abi): Call linux_init_abi.
887 * sparc-linux-tdep.c: Include linux-tdep.h.
888 (sparc32_linux_init_abi): Call linux_init_abi.
889 * sparc64-linux-tdep.c: Include linux-tdep.h.
890 (sparc64_linux_init_abi): Call linux_init_abi.
891 * xtensa-linux-tdep.c: Include linux-tdep.h.
892 (xtensa_linux_init_abi): Call linux_init_abi.
893 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
894 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
897 2010-08-03 Doug Evans <dje@google.com>
899 * breakpoint.c (bpdisp_text): Constify bpdisps.
900 * solib-svr4.c (solib_break_names): Constify.
901 (bkpt_names, main_name_list): Constify.
902 (match_main): Constify soname arg.
903 (bfd_lookup_symbol): Remove unnecessary forward decl.
904 Constify symname arg.
905 (enable_break): Constify bkpt_namep.
906 * symtab.c (search_symbols): Constify types, types2, types3, types4.
907 (symtab_symbol_info): Constify classnames.
909 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
911 * NEWS: Document Python value inferior function calls.
913 2010-08-02 Doug Evans <dje@google.com>
915 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
917 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
919 * linux-thread-db.c (libthread_db_debug): New variable.
920 (thread_db_find_new_threads_silently): Control verbosity with it.
921 (try_thread_db_load_1, try_thread_db_load): Likewise.
922 (find_new_threads_once): Likewise.
923 (_initialize_thread_db): Set/show it.
925 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
927 * common/signals.c (signals): Move the content to signals.def.
928 Include it. Remove the INDENT comments.
930 2010-07-30 Tom Tromey <tromey@redhat.com>
932 * Makefile.in (install-only): Install gdb-add-index.
933 * gdb-add-index.sh: New file.
935 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
937 * MAINTAINERS: Add myself for write after approval privileges.
939 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
941 * symfile.c (addr_section_name): New function.
942 (addrs_section_compar): Use it.
943 (addr_info_make_relative): Use it. Move variable sect_name into a more
944 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
946 2010-07-30 Tom Tromey <tromey@redhat.com>
948 * configure: Rebuild.
949 * configure.ac: Add missing case for Python 2.7.
951 2010-07-29 DJ Delorie <dj@redhat.com>
953 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
956 2010-07-29 Pedro Alves <pedro@codesourcery.com>
958 * PROBLEMS: Remove mention of all problems.
960 2010-07-28 Pedro Alves <pedro@codesourcery.com>
963 * configure.ac: Check for wresize.
964 * configure, config.in: Regenerate.
965 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
968 2010-07-28 Tom Tromey <tromey@redhat.com>
971 * python/py-type.c (typy_legacy_template_argument): New function,
972 extracted from typy_template_argument.
973 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
976 2010-07-28 Oleg Nesterov <oleg@redhat.com>
978 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
980 2010-07-27 Tom Tromey <tromey@redhat.com>
982 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
984 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
986 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
987 handling DW_AT_object_pointer, and workaround GCC PR 43053.
989 2010-07-28 Tom Tromey <tromey@redhat.com>
991 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
993 2010-07-28 Joel Brobecker <brobecker@adacore.com>
995 * remote.c (remote_download_tracepoint): Add missing gettext markup.
996 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
998 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1000 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
1001 down, just before the block that parse the breakpoint addr_string.
1003 2010-07-28 Tom Tromey <tromey@redhat.com>
1006 * symfile.c (reread_symbols): Clear template_symbols.
1007 * symtab.h (struct symbol) <is_cplus_template_function>: New
1009 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
1010 (struct template_symbol): New.
1011 * symtab.c (lookup_symbol_aux_local): Use
1012 cp_lookup_symbol_imports_or_template.
1013 * objfiles.h (struct objfile) <template_symbols>: New field.
1014 * objfiles.c (relocate_one_symbol): New function.
1015 (objfile_relocate1): Use it. Relocate isolated symbols.
1016 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
1017 template_arguments>: New fields.
1018 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
1019 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
1020 (TYPE_TEMPLATE_ARGUMENT): Likewise.
1021 (lookup_typename): Update.
1022 * gdbtypes.c (lookup_typename): Constify "block" argument.
1023 * dwarf2read.c: Include vec.h.
1024 (symbolp): New typedef.
1025 (read_func_scope): Read template arguments. Allocate a
1026 template_symbol when needed.
1027 (read_structure_type): Read template arguments.
1028 (new_symbol_full): New function, from new_symbol. Handle
1029 DW_TAG_template_type_param and DW_TAG_template_value_param.
1030 (new_symbol): Rewrite as wrapper.
1031 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
1032 * cp-namespace.c: Include language.h.
1033 (search_symbol_list): New function.
1034 (cp_lookup_symbol_imports_or_template): Likewise.
1036 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1038 * tui/tui-win.c (make_visible_with_new_height): Resize and move
1039 the command window to the new size and position.
1041 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1043 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
1046 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1048 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
1049 after a detecting a resize.
1050 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
1053 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1055 * configure.ac: Check for resize_term.
1056 * configure, config.in: Regenerate.
1058 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1060 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
1062 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1064 * dwarf2read.c (read_string): Rename to ...
1065 (read_direct_string): ... this.
1066 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
1067 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
1069 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1071 * linux-nat.c (linux_nat_lp_status_is_event): New function.
1072 (count_events_callback, select_event_lwp_callback)
1073 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
1075 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1077 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
1078 (_initialize_ia64_linux_nat): Install it.
1079 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
1080 (linux_nat_set_status_is_event): New.
1081 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
1082 cancel_breakpoints_callback, linux_nat_filter_event)
1083 (linux_nat_wait_1): Use linux_nat_status_is_event.
1084 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
1086 2010-07-27 Tom Tromey <tromey@redhat.com>
1088 * NEWS: Mention labels, .gdb_index.
1090 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
1092 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
1093 "start,+length" form of arguments.
1094 * NEWS: Add "Changed commands" (disassemble) section for "Changes
1095 since GDB 7.1"; and merge two separated paragraphs of disassemble
1096 description in "Changes in GDB 7.0".
1098 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1100 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
1101 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
1102 (fputs_maybe_filtered): Do not do filtering also on
1103 ! INPUT_FROM_TERMINAL_P.
1105 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1107 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
1110 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
1112 * python/py-value.c (valpy_call): New Function.
1114 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
1116 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
1117 types_list_elements variables.
1119 2010-07-26 Tom Tromey <tromey@redhat.com>
1121 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
1122 TLS with DW_OP_const4u or DW_OP_const8u.
1124 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1126 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
1127 VSX registers contents.
1129 2010-07-26 Jerome Guitton <guitton@adacore.com>
1131 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
1132 its adress is null. Add comment to explain why.
1133 (new_symbol): Ditto.
1135 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1137 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
1138 the host signal first.
1140 2010-07-23 Tom Tromey <tromey@redhat.com>
1142 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
1143 type_comp_units>: New fields.
1144 (dw2_get_cu): New function.
1145 (create_cus_from_index): Remove unused argument.
1146 (create_signatured_type_hash_from_index): New function.
1147 (create_addrmap_from_index): Update.
1148 (dwarf2_read_index): Handle version 2.
1149 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
1150 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
1151 (dw2_print_stats, dw2_expand_all_symtabs)
1152 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
1153 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
1154 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
1155 (allocate_signatured_type_hash_table): New function.
1156 (add_signatured_type_cu_to_list): Likewise.
1157 (create_debug_types_hash_table): Use them. Set type_comp_units.
1158 (read_signatured_type): Ensure section data is available.
1159 (add_address_entry): Don't record empty ranges.
1160 (struct signatured_type_index_data): New.
1161 (write_one_signatured_type): New function.
1162 (write_psymtabs_to_index): Write type CUs.
1163 (save_gdb_index_command): Update comment.
1164 (process_type_comp_unit): Move inititalization of
1166 (create_debug_types_hash_table): ... here.
1168 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1170 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
1171 cleanup and generating of gdb script to it.
1172 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
1173 and terminal size. Convert $tmpfile to a series of -ex-es.
1175 2010-07-23 Keith Seitz <keiths@redhat.com>
1177 * symtab.c (basic_lookup_transparent_type): Call pre-expand
1178 hook for STATIC_BLOCK types, too.
1180 2010-07-23 Keith Seitz <keiths@redhat.com>
1182 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
1183 and vector definition.
1185 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1187 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
1189 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1191 * dwarf2read.c: Include completer.h.
1192 (save_gdb_index_command): Use matching usage command name.
1193 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
1194 Set filename_completer for it.
1196 2010-07-22 Tom Tromey <tromey@redhat.com>
1198 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
1199 type signature's per-CU data.
1201 2010-07-22 Pedro Alves <pedro@codesourcery.com>
1203 * NEWS: Mention target reported shared libraries support by
1206 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1211 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1212 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1213 and DW_TAG_volatile_type.
1214 (new_symbol): Likewise.
1216 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
1218 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
1219 function symbols before overload resolution.
1221 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1223 * breakpoint.c (bptype_string): New, abstracted out from
1224 print_one_breakpoint_location.
1225 (print_one_breakpoint_location): Adjust.
1226 (breakpoint_1): Adjust the type column width dynamically.
1228 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1230 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1231 a gdb_assert call, new comment.
1233 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1235 * linux-nat.c (linux_handle_extended_wait): Handle case when
1236 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
1238 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1241 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
1242 linux_nat_wait_1. Use always LP->STATUS afterwards.
1244 2010-07-20 Hui Zhu <teawater@gmail.com>
1246 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
1247 (inf_ptrace_attach): Ditto.
1249 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1251 Make core files the process_stratum.
1252 * corefile.c (core_target): New variable.
1253 (core_file_command): Remove variable t, use core_target.
1254 * corelow.c (core_ops): Make it static.
1255 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
1256 * defs.h (make_cleanup_unpush_target): New prototype.
1257 * gdbarch.h: Regenerate.
1258 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
1259 * gdbcore.h (core_target): New declaration.
1260 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
1261 variables ops_already_pushed and back_to. Use push_target,
1262 make_cleanup_unpush_target and discard_cleanups calls.
1263 * record.c (record_open): Replace core_stratum by a core_bfd check.
1264 * target.c (target_is_pushed): New function.
1265 (find_core_target): Remove.
1266 * target.h (enum strata) <core_stratum>: Remove.
1267 (target_is_pushed): New declaration.
1268 (find_core_target): Remove declaration.
1269 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
1270 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
1272 2010-07-19 Hui Zhu <teawater@gmail.com>
1274 * breakpoint.c (single_step_breakpoints_inserted): New
1276 * breakpoint.h (single_step_breakpoints_inserted): Extern.
1277 * infrun.c (maybe_software_singlestep): Add check code.
1278 * record.c (record_resume): Add code for software single step.
1279 (record_wait): Ditto.
1281 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1283 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
1284 a more inner block. Remove its unused declaration initializer.
1286 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
1288 * NEWS: Mention support for the new ptrace interface and hardware
1289 accelerated watchpoint conditions on powerpc-linux.
1291 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
1293 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
1294 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
1295 and host_address_to_string() and %s for pointers.
1296 (debug_to_remove_breakpoint): Likewise.
1297 (debug_to_region_ok_for_hw_watchpoint): Likewise.
1298 (debug_to_can_accel_watchpoint_condition): Likewise.
1299 (debug_to_stopped_data_address): Likewise.
1300 (debug_to_watchpoint_addr_within_range): Likewise.
1301 (debug_to_insert_hw_breakpoint): Likewise.
1302 (debug_to_remove_hw_breakpoint): Likewise.
1303 (debug_to_insert_watchpoint): Likewise.
1304 (debug_to_remove_watchpoint): Likewise.
1306 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1308 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
1310 (cplus_specific): New struct.
1311 * symtab.c (symbol_set_demangled_name): Updated.
1312 Use cplus_specific for cplus symbols.
1313 (symbol_get_demangled_name): Retrive the name from the cplus_specific
1314 struct for cplus symbols.
1315 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
1316 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
1317 * symtab.c (symbol_init_cplus_specific): New function.
1319 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1321 * symtab.h (symbol_set_demangled_name): New function.
1322 (symbol_get_demangled_name): New function.
1323 * symtab.c (symbol_set_demangled_name): New function.
1324 (symbol_get_demangled_name): New function.
1325 (symbol_init_language_specific): Use demangled_name setter and getter.
1326 (symbol_set_names): Ditto.
1327 (symbol_natural_name): Ditto.
1328 (symbol_demangled_name): Ditto.
1329 * dwarf2read.c (new_symbol): Ditto.
1331 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1333 * symtab.h: Renamed cplus_specific to mangled_lang.
1334 * symtab.c (symbol_init_language_specific): Updated.
1335 (symbol_set_names): Updated.
1336 (symbol_natural_name): Updated.
1337 (symbol_demangled_name): Updated.
1338 * ada-lang.c (ada_decode_symbol): Updated.
1339 * dwarf2read.c (new_symbol): Updated.
1341 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1343 * valops.c (value_assign): Do not call to value_coerce_to_target.
1344 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
1346 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1348 * MAINTAINERS: Add myself for write after approval privileges.
1350 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
1352 * c-valprint.c (c_val_print): Add embedded_offset to address in
1353 call to val_print_array_elements.
1355 2010-07-13 Tom Tromey <tromey@redhat.com>
1357 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
1359 2010-07-13 Tom Tromey <tromey@redhat.com>
1361 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
1364 2010-07-13 Tom Tromey <tromey@redhat.com>
1366 * symfile.c (set_initial_language): Update.
1367 (deduce_language_from_filename): Argument type now const.
1368 * symtab.h (find_main_filename): Update.
1369 (deduce_language_from_filename): Update.
1370 * symtab.c (find_main_filename): Make result const.
1371 * dwarf2read.c (dw2_find_symbol_file): Change return type.
1372 * psymtab.c (find_symbol_file_from_partial): Change return type.
1373 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1376 2010-07-13 Tom Tromey <tromey@redhat.com>
1378 * breakpoint.c (save_cmdlist): No longer static.
1379 * gdbcmd.h (save_cmdlist): Declare.
1380 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
1381 OBJF_READNOW on objfile if readnow_symbol_files.
1382 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
1383 (elf_sym_fns_gdb_index): New global.
1384 * dwarf2read.c: Include exceptions.h.
1386 (struct mapped_index): New.
1387 (dwarf2_per_cu_data_ptr): New typedef.
1388 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
1390 (GDB_INDEX_SECTION): New define.
1391 (struct dwarf2_per_cu_quick_data): New.
1392 (struct dwarf2_per_cu_data) <objfile>: New field.
1395 (byte_swap): New function.
1396 (MAYBE_SWAP): New macro.
1397 (INDEX_SUFFIX): New macro.
1398 (dw2_do_instantiate_symtab): New function.
1399 (dw2_instantiate_symtab): Likewise.
1400 (create_cus_from_index): Likewise.
1401 (create_addrmap_from_index): Likewise.
1402 (mapped_index_string_hash): Likewise.
1403 (find_slot_in_mapped_hash): Likewise.
1404 (dwarf2_read_index): Likewise.
1405 (dw2_setup): Likewise.
1406 (dw2_require_line_header): Likewise.
1407 (dw2_require_full_path): Likewise.
1408 (dw2_find_last_source_symtab): Likewise.
1409 (dw2_forget_cached_source_info): Likewise.
1410 (dw2_lookup_symtab): Likewise.
1411 (dw2_lookup_symbol): Likewise.
1412 (dw2_do_expand_symtabs_matching): Likewise.
1413 (dw2_pre_expand_symtabs_matching): Likewise.
1414 (dw2_print_stats): Likewise.
1415 (dw2_dump): Likewise.
1416 (dw2_relocate): Likewise.
1417 (dw2_expand_symtabs_for_function): Likewise.
1418 (dw2_expand_all_symtabs): Likewise.
1419 (dw2_expand_symtabs_with_filename): Likewise.
1420 (dw2_find_symbol_file): Likewise.
1421 (dw2_map_ada_symtabs): Likewise.
1422 (dw2_expand_symtabs_matching): Likewise.
1423 (dw2_find_pc_sect_symtab): Likewise.
1424 (dw2_map_symbol_names): Likewise.
1425 (dw2_map_symbol_filenames): Likewise.
1426 (dw2_has_symbols): Likewise.
1427 (dwarf2_gdb_index_functions): New global.
1428 (dwarf2_initialize_objfile): New function.
1429 (process_psymtab_comp_unit): Update.
1430 (add_partial_subprogram): Likewise.
1431 (dwarf2_psymtab_to_symtab): Likewise.
1432 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
1433 (process_full_comp_unit): Update.
1434 (find_file_and_directory): New function.
1435 (read_file_scope): Use find_file_and_directory.
1436 (dwarf2_per_cu_objfile): Update.
1437 (dwarf2_per_cu_addr_size): Update.
1438 (dwarf2_per_cu_offset_size): Update.
1439 (dwarf2_free_objfile): Free the index, if needed.
1440 (dwarf2_per_objfile_free): Unmap the index, if needed.
1441 (struct strtab_entry): New.
1442 (hash_strtab_entry): New function.
1443 (eq_strtab_entry): Likewise.
1444 (create_strtab): Likewise.
1445 (add_string): Likewise.
1446 (struct symtab_index_entry): New.
1447 (struct mapped_symtab): New.
1448 (hash_symtab_entry): New function.
1449 (eq_symtab_entry): Likewise.
1450 (delete_symtab_entry): Likewise.
1451 (create_index_table): Likewise.
1452 (create_mapped_symtab): Likewise.
1453 (cleanup_mapped_symtab): Likewise.
1454 (find_slot): Likewise.
1455 (hash_expand): Likewise.
1456 (add_index_entry): Likewise.
1457 (add_indices_to_cpool): Likewise.
1458 (write_hash_table): Likewise.
1459 (add_address_entry): Likewise.
1460 (write_psymbols): Likewise.
1461 (write_obstack): Likewise.
1462 (unlink_if_set): Likewise.
1463 (write_psymtabs_to_index): Likewise.
1464 (save_gdb_index_command): Likewise.
1465 (_initialize_dwarf2_read): Install "save gdb-index"
1467 (create_all_comp_units): Initialize 'objfile' field of CU.
1468 (dwarf2_locate_sections): Check for .gdb_index.
1469 * psymtab.h (dwarf2_gdb_index_functions): Declare.
1470 * symfile.h (dwarf2_initialize_objfile): Declare.
1472 2010-07-13 Tom Tromey <tromey@redhat.com>
1474 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
1475 (basic_lookup_transparent_type): Likewise.
1476 * symfile.h (struct quick_symbol_functions)
1477 <pre_expand_symtabs_matching>: New field.
1478 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
1479 (psym_functions): Update.
1481 2010-07-13 Tom Tromey <tromey@redhat.com>
1483 PR breakpoints/8357:
1484 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
1485 * linespec.c (decode_line_1): Update comment. Call decode_label.
1486 (decode_label): New function.
1487 (symbol_found): Handle LOC_LABEL.
1488 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
1489 domain. Call add_symbol_to_list.
1491 2010-07-13 Tom Tromey <tromey@redhat.com>
1493 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
1494 * dwarf2loc.c (find_location_expression): Use
1495 dwarf2_per_cu_text_offset.
1496 (dwarf2_evaluate_loc_desc): Likewise.
1497 (dwarf2_loc_desc_needs_frame): Likewise.
1498 (compile_dwarf_to_ax): Likewise.
1499 (loclist_describe_location): Likewise.
1500 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
1501 (dwarf2_per_cu_objfile): Update comment.
1503 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1505 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
1506 * p-lang.c (pascal_printstr): Likewise.
1508 2010-07-09 Tom Tromey <tromey@redhat.com>
1510 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
1511 'hint' if it is NULL.
1513 2010-07-09 Hui Zhu <teawater@gmail.com>
1515 * source.c (print_source_lines_base): Add check for noprint.
1517 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1519 * python/python-config.py: Resync with Python 2.7 version of this
1522 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1524 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
1526 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1528 * NEWS: Create a new section for the next release branch.
1529 Rename the section of the current branch, now that it has
1532 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1534 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
1535 * version.in: Bump version to 7.2.50.20100707-cvs.
1537 2010-07-07 Tom Tromey <tromey@redhat.com>
1539 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
1540 LOC_COMPUTED symbol.
1541 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
1542 (dwarf2_loc_desc_needs_frame): Likewise.
1543 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
1544 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
1545 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
1546 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
1548 (struct dwarf2_frame_cache) <text_offset>: New field.
1549 (dwarf2_frame_cache): Set new field.
1550 (dwarf2_frame_prev_register): Update.
1551 (dwarf2_frame_sniffer): Update.
1552 (dwarf2_frame_base_sniffer): Update.
1553 (dwarf2_frame_find_fde): Add 'out_offset' argument.
1555 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1556 Thiago Jung Bauermann <bauerman@br.ibm.com>
1558 Support for hw accelerated condition watchpoints in booke powerpc.
1560 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
1561 and move to eval.c. Change callers.
1562 (insert_bp_location): Pass watchpoint condition in
1563 target_insert_watchpoint.
1564 (remove_breakpoint_1) Pass watchpoint condition in
1565 target_remove_watchpoint.
1566 (watchpoint_locations_match): Call
1567 target_can_accel_watchpoint_condition.
1568 * eval.c: Include wrapper.h.
1569 (fetch_subexp_value): Moved from breakpoint.c.
1570 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
1572 (can_use_watchpoint_cond_accel): New function.
1573 (calculate_dvc): Likewise.
1574 (num_memory_accesses): Likewise.
1575 (check_condition): Likewise.
1576 (ppc_linux_can_accel_watchpoint_condition): Likewise
1577 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
1578 check_condition and calculate_dvc.
1579 (ppc_linux_remove_watchpoint): Likewise.
1580 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
1581 ppc_linux_can_accel_watchpoint_condition
1582 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
1584 (debug_to_remove_watchpoint): Likewise.
1585 (debug_to_can_accel_watchpoint_condition): New function.
1586 (update_current_target): Set to_can_accel_watchpoint_condition.
1587 (setup_target_debug): Set to_can_accel_watchpoint_condition.
1588 * target.h: Add opaque declaration for struct expression.
1589 (struct target_ops) <to_insert_watchpoint>,
1590 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
1591 <to_can_accel_watchpoint_condition>: New member.
1592 condition. Update all callers and implementations.
1593 (target_can_accel_watchpoint_condition): New macro.
1594 * value.c (free_value_chain): New function.
1595 * value.h (fetch_subexp_value): New prototype.
1596 (free_value_chain): Likewise.
1598 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
1600 * linux-nat.c (linux_nat_do_thread_registers): Use section size
1601 from gdbarch_core_regset_sections also for .reg if present.
1603 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
1604 section size for .reg.
1605 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1606 (ppc_linux_vmx_regset_sections): Likewise.
1607 (ppc_linux_fp_regset_sections): Likewise.
1608 (ppc64_linux_vsx_regset_sections): New variable.
1609 (ppc64_linux_vmx_regset_sections): Likewise.
1610 (ppc64_linux_fp_regset_sections): Likewise.
1611 (ppc_linux_init_abi): Install core_regset_section lists appropriate
1612 for current word size.
1614 2010-07-06 Joel Brobecker <brobecker@adacore.com>
1616 * server.c (myresume): Make static.
1618 2010-07-06 Tom Tromey <tromey@redhat.com>
1620 * configure, config.in: Rebuild.
1621 * configure.ac (HAVE_LIBPYTHON2_7): New define.
1622 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
1624 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1626 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
1629 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
1631 * gdbtypes.h (floatformats_ieee_half): Add declaration.
1632 * gdbtypes.c (floatformats_ieee_half): New variable.
1633 * doublest.c (floatformat_from_length): Set format to
1634 gdbarch_half_format if length matches.
1635 * gdbarch.sh (half_bit): New architecture method.
1636 (half_format): Likewise.
1637 * gdbarch.h: Regenerate.
1638 * gdbarch.c: Likewise.
1640 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1641 Joel Brobecker <brobecker@adacore.com>
1643 Fix re-run of PIE executable, PR shlibs/11776.
1644 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
1645 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
1647 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1648 Joel Brobecker <brobecker@adacore.com>
1650 * auxv.c (memory_xfer_auxv): Update attach comment.
1651 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
1652 svr4_relocate_main_executable.
1653 (svr4_solib_create_inferior_hook): Make the call to
1654 svr4_relocate_main_executable unconditional.
1656 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1657 Joel Brobecker <brobecker@adacore.com>
1659 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
1661 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1662 Joel Brobecker <brobecker@adacore.com>
1664 Fix attaching to PIEs prelinked on the disk after the process was
1666 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
1667 Verify it against bfd_get_arch_size. Try to match arbitrary
1668 displacement for the phdrs comparison.
1670 2010-07-02 Tom Tromey <tromey@redhat.com>
1673 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
1674 value as optimized-out.
1676 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1677 Thiago Jung Bauermann <bauerman@br.ibm.com>
1679 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
1680 represent?" question in comment. Change comment to a proper sentence.
1682 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
1684 * c-valprint.c (c_val_print): Fix printing of character vectors.
1686 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1688 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
1689 create_breakpoint prototype.
1691 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1693 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
1694 usefulness suggestion of multiple breakpoints at same location.
1696 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1698 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
1700 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1702 * dwarf2loc.c (locexpr_tracepoint_var_ref)
1703 (loclist_tracepoint_var_ref): Handle optimized out values.
1705 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1707 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
1708 unnecessary space in string.
1709 * filesystem.c (_initialize_filesystem): Ditto.
1710 * frame.c (_initialize_frame): Ditto.
1711 * infcmd.c (step_once): Ditto.
1712 * infrun.c (_initialize_infrun): Ditto.
1713 * linux-nat.c (linux_child_follow_fork): Ditto.
1714 * maint.c (maintenance_deprecate): Ditto.
1715 * memattr.c (_initialize_mem): Ditto.
1716 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1717 * monitor.c (monitor_open): Ditto.
1718 * procfs.c (procfs_xfer_memory): Ditto.
1719 * reverse.c (bookmarks_info): Ditto.
1720 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
1721 * stack.c (_initialize_stack): Ditto.
1722 * tracepoint.c (_initialize_tracepoint): Ditto.
1723 * xtensa-tdep.c (xtensa_supply_gregset,
1724 xtensa_regset_from_core_section): Ditto.
1726 2010-07-01 Tom Tromey <tromey@redhat.com>
1728 * value.h (struct lval_funcs) <check_any_valid>: Rename from
1730 * value.c (value_entirely_optimized_out): Invert result. Update
1731 for new function name.
1733 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1735 Static tracepoints support.
1737 * NEWS: Mention new support for static tracepoints.
1738 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
1739 qXfer:statictrace:read.
1740 (New features in the GDB remote stub, GDBserver): Mention static
1741 tracepoints support using an UST based backend.
1742 (New commands): Mention "info static-tracepoint-markers" and
1744 * breakpoint.c (is_marker_spec): New.
1745 (is_tracepoint): Handle static tracepoints.
1746 (validate_commands_for_breakpoint): Static tracepoints can't do
1748 (static_tracepoints_here): New.
1749 (bpstat_what): Handle static tracepoints.
1750 (print_one_breakpoint_location, allocate_bp_location, mention):
1752 (create_breakpoint_sal): Ditto.
1753 (decode_static_tracepoint_spec): New.
1754 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
1755 `type_wanted'. Adjust. Handle static tracepoint marker
1757 (break_command_1): Adjust.
1758 (update_static_tracepoint): New.
1759 (update_breakpoint_locations): Handle static tracepoints.
1760 (breakpoint_re_set_one): Handle static tracepoint marker
1762 (disable_command, enable_command): Handle static tracepoints.
1763 (trace_command, ftrace_command): Adjust.
1764 (strace_command): New.
1765 (create_tracepoint_from_upload): Adjust.
1766 (save_breakpoints): Handle static tracepoints.
1767 (_initialize_breakpoint): Install the "strace" command.
1768 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
1769 (struct breakpoint): New fields static_trace_marker_id and
1770 static_trace_marker_id_idx.
1771 (breakpoints_here_p): Declare.
1772 (create_breakpoint): Adjust.
1773 (static_tracepoints_here): Declare.
1774 * remote.c (struct remote_state) <static_tracepoints>: New field.
1775 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
1776 (remote_static_tracepoint_marker_at): New.
1777 (remote_static_tracepoint_markers_by_strid): New.
1778 (remote_static_tracepoint_feature): New.
1779 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
1780 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
1781 (remote_supports_static_tracepoints): New.
1782 (remote_download_tracepoint): Download static tracepoints.
1783 (init_remote_ops): Install remote_static_tracepoint_marker_at and
1784 remote_static_tracepoint_markers_by_strid.
1785 (_initialize_remote): Install set|show remote static-tracepoints,
1786 and set|show remote read-sdata-object commands.
1787 * target.c (update_current_target): Inherit and default
1788 to_static_tracepoint_marker_at, and
1789 to_static_tracepoint_markers_by_strid.
1790 * target.h (static_tracepoint_marker): Forward declare.
1791 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
1792 (static_tracepoint_marker_p): New typedef.
1793 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
1794 (struct target_ops): New fields to_static_tracepoint_marker_at and
1795 to_static_tracepoint_markers_by_strid.
1796 (target_static_tracepoint_marker_at)
1797 (target_static_tracepoint_markers_by_strid): New.
1798 * tracepoint.c: Include source.h.
1799 (validate_actionline): Handle $_sdata.
1800 (struct collection_list): New field strace_data.
1801 (add_static_trace_data): New.
1802 (clear_collection_list): Clear strace_data.
1803 (stringify_collection_list): Account for a possible static trace
1805 (encode_actions_1): Encode an $_sdata collection.
1806 (parse_tracepoint_definition): Handle static tracepoints.
1807 (parse_static_tracepoint_marker_definition): New.
1808 (release_static_tracepoint_marker): New.
1809 (print_one_static_tracepoint_marker): New.
1810 (info_static_tracepoint_markers_command): New.
1811 (sdata_make_value): New.
1812 (_initialize_tracepoint): Create the $_sdata convenience variable.
1813 Add the "info static-tracepoint-markers" command.
1814 Mention $_sdata in the "collect" command's help output.
1815 * tracepoint.h (struct static_tracepoint_marker): New.
1816 (parse_static_tracepoint_marker_definition)
1817 (release_static_tracepoint_marker): Declare.
1818 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
1819 * python/py-breakpoint.c (bppy_new): Adjust.
1821 2010-06-30 Joel Brobecker <brobecker@adacore.com>
1823 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
1826 2010-06-29 Doug Evans <dje@google.com>
1829 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
1830 DW_AT_external is present.
1834 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
1835 create a symbol for the field and record the value.
1836 (new_symbol): Handle DW_TAG_member.
1837 * gdbtypes.c (field_is_static): Remove FIXME.
1838 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
1839 only ignore LOC_CONST symbols that are enums.
1841 * dwarf2read.c: Remove trailing whitespace.
1843 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
1844 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
1845 (struct main_type, field loc): Delete dwarf_block.
1846 (FIELD_DWARF_BLOCK): Delete.
1847 (SET_FIELD_DWARF_BLOCK): Delete.
1848 (TYPE_FIELD_DWARF_BLOCK): Delete.
1849 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
1852 2010-06-29 Hui Zhu <teawater@gmail.com>
1854 * record.c (set_record_pic_cmdlist,
1855 show_record_pic_cmdlist): New variables.
1856 (set_record_pic_command,
1857 show_record_pic_command): New functions.
1858 (record_pic_function, record_pic_line, record_pic_enum,
1859 set_record_pic_type, record_pic_hide_nofunction,
1860 record_pic_hide_nosource, record_pic_hide_same): New variables.
1861 (record_pic_fputs): New function.
1862 (function_list, node_list, edge_list): New struct.
1863 (function_list, node_list, edge_list): New variables.
1864 (record_pic_cleanups, record_pic_node,
1865 record_pic_edge, cmd_record_pic): New functions.
1866 (_initialize_record): Add new commands for record pic.
1868 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1870 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
1871 ALLOCATE_CPLUS_STRUCT_TYPE.
1873 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
1874 Tom Tromey <tromey@redhat.com>
1875 Thiago Jung Bauermann <bauerman@br.ibm.com>
1877 * value.c (pack_unsigned_long): New function.
1878 (value_from_ulongest): New function.
1879 * value.h (value_from_ulongest): Declare.
1880 * python/python.c (_initialize_python): Call
1881 gdbpy_initialize_thread and gdbpy_initialize_inferior.
1882 * python/python-internal.h: Define thread_object.
1883 (gdbpy_inferiors, gdbpy_selected_thread)
1884 (frame_info_to_frame_object, create_thread_object)
1885 (find_thread_object, find_inferior_object)
1886 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
1887 (gdbpy_is_value_object, get_addr_from_python): Declare.
1888 * python/py-value.c (builtin_type_upylong): Define.
1889 (convert_value_from_python): Add logic for ulongest.
1890 (gdbpy_is_value_object): New function.
1891 * python/py-utils.c (get_addr_from_python): New function.
1892 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
1893 (gdbpy_selected_frame): Use PyObject over frame_info.
1894 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
1896 (SUBDIR_PYTHON_SRCS): Likewise.
1897 (py-inferior.o): New Rule.
1898 (py-infthread.o): New Rule.
1899 * python/py-inferior.c: New File.
1900 * python/py-infthread.c: New File.
1902 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1904 * c-typeprint.c (c_type_print_base): For no fields check include also
1905 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
1906 * dwarf2read.c (struct typedef_field_list)
1907 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
1908 (dwarf2_add_typedef): New.
1909 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
1910 Copy also FI.TYPEDEF_FIELD_LIST.
1911 * gdbtypes.h (struct typedef_field)
1912 (struct cplus_struct_type) <typedef_field, typedef_field_count>
1913 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
1914 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
1916 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1918 * cp-namespace.c (cp_lookup_nested_type): New variable
1919 concatenated_name. Turn the current return condition into a reverse
1920 one. Call also lookup_static_symbol_aux on the constructed qualified
1922 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
1923 other files into a called ...
1924 (lookup_static_symbol_aux): ... new function here.
1925 * symtab.h (lookup_static_symbol_aux): New prototype.
1926 * valops.c (value_maybe_namespace_elt): Call also
1927 lookup_static_symbol_aux if we failed otherwise.
1929 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1931 Fix PR c++/11703 and PR gdb/1448.
1932 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
1935 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1937 Fix modification of cplus_struct_default.
1938 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
1939 Call ALLOCATE_CPLUS_STRUCT_TYPE.
1940 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
1942 2010-06-28 Joel Brobecker <brobecker@adacore.com>
1944 * NEWS: Add entry announcing the python directory.
1946 2010-06-28 Tom Tromey <tromey@redhat.com>
1948 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
1950 2010-06-28 Doug Evans <dje@google.com>
1952 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
1953 All callers updated.
1955 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1957 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
1958 obstack_begin after each obstack_free.
1960 2010-06-27 Doug Evans <dje@google.com>
1962 * value.c (value_static_field): Use `switch' instead of `if'.
1963 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
1965 * valops.c (search_struct_field): Fix typo in error message.
1967 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
1969 * dwarf2expr.c (execute_stack_op): Place preprocessor
1970 directives at the start of the source line.
1972 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
1974 * defs.h (make_command_stats_cleanup): Declare.
1975 (set_display_time): Declare.
1976 (set_display_space): Declare.
1977 * event-top.c (command_handler): Use make_command_stats_cleanup.
1978 * main.c (display_time, display_space): Move definitions to utils.c.
1979 (captured_main): Use make_command_stats_cleanup to get start-up
1981 Use set_display_time and set_display_space for processing OPT_STATISTICS
1983 * maint.c (maintenance_time_display): Use set_display_time.
1984 (maintenance_space_display): Use set_display_space.
1985 * top.c (execute_command): Remove obsolete 'maint time' code.
1986 (command_loop): Use make_command_stats_cleanup.
1987 * utils.c (struct cmd_stats): Structure for storing initial time
1989 (display_time, display_space): Move definitions here from utils.c.
1990 (set_display_time): New function.
1991 (set_display_space): New function.
1992 (make_command_stats_cleanup): New function.
1993 (report_command_stats): New auxiliary function for
1994 make_command_stats_cleanup.
1996 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1998 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
1999 hosts where CORE_ADDR is long long.
2001 2010-06-25 Tom Tromey <tromey@redhat.com>
2004 * python/python.c (execute_gdb_command): Add keywords. Accept
2005 "to_string" argument.
2006 (struct restore_ui_file_closure): New.
2007 (restore_ui_file): New function.
2008 (make_cleanup_restore_ui_file): Likewise.
2009 (GdbMethods) <execute>: Update.
2011 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2013 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
2014 during inferior call stack frame setup.
2016 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
2018 * solib-spu.c: Include "exception.h".
2019 (ocl_program_data_key): New variable.
2020 (append_ocl_sos): New function.
2021 (ocl_enable_break): Likewise.
2022 (spu_current_sos): Call append_ocl_sos.
2023 (spu_solib_loaded): Call ocl_enable_break.
2024 (_initialize_spu_solib): Register ocl_program_data_key.
2026 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2028 * cp-support.c (reset_directive_searched): New function.
2029 (make_symbol_overload_list_using): Prevent recursive calls.
2031 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
2033 * printcmd.c (print_variable_and_value): Print error message on
2036 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2038 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
2040 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
2042 (dwarf_expr_push): Change input type to ULONGEST.
2043 (dwarf_expr_fetch): Change return type to ULONGEST.
2044 (dwarf_expr_fetch_address): Add prototype.
2045 (dwarf2_read_address): Remove prototype.
2046 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
2047 Truncate stack values to ctx->addr_size bytes.
2048 (dwarf_expr_fetch): Change return value to ULONGEST.
2049 (dwarf_expr_fetch_address): New function.
2050 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
2051 when appropriate. Update for struct dwarf_expr_piece changes.
2052 (dwarf2_read_address): Remove.
2053 (unsigned_address_type): Remove.
2054 (signed_address_type): Remove.
2055 (execute_stack_op): Use dwarf_expr_fetch_address instead of
2056 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
2057 values. Perform operations on ULONGEST instead of on GDB values,
2058 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
2059 values and DW_OP_deref results as unsigned integers.
2060 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
2062 (write_pieced_value): Likewise.
2063 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
2064 dwarf_expr_fetch when appropriate.
2065 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
2066 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
2067 instead of dwarf_expr_fetch when appropriate.
2069 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
2071 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
2073 2010-06-24 Joel Brobecker <brobecker@adacore.com>
2075 * python/python.c (_initialize_python): Add new "constant"
2076 PYTHONDIR in gdb module. Insert this path at the head of
2077 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
2078 exec its __init__.py script if it exists in that directory.
2080 2010-06-24 Kevin Buettner <kevinb@redhat.com>
2082 * rx-tdep.c (RX_ACC_REGNUM): Define.
2083 (RX_NUM_REGS): Redefine to 26.
2084 (rx_register_name): Add register "acc". Change order of several
2085 registers. Change name of "vct" register to "fintv" to match RX
2087 (rx_register_type): Add case for RX_ACC_REGNUM.
2089 2010-06-24 Tom Tromey <tromey@redhat.com>
2091 * psymtab.c (lookup_partial_symbol): Mark definition as static.
2093 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2094 Tom Tromey <tromey@redhat.com>
2096 Fix GDB startup on readonly filesystem.
2097 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
2099 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2100 Pedro Alves <pedro@codesourcery.com>
2103 * breakpoint.c (handle_jit_event): New function.
2104 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
2105 jit, err, table and bs_class. New variables shlib_event, jit_event,
2106 this_action and bptype. Change bs_class assignments to this_action
2107 assignments. new unhandled bptype internal error. Move here
2108 shlib_event and jit_event handling from handle_inferior_event.
2109 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
2110 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
2111 BPSTAT_WHAT_CHECK_JIT.
2112 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
2113 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
2114 (handle_inferior_event): Reinitialize frame and gdbarch after
2115 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
2116 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
2117 gdbarch when frame gets reinitialized.
2119 2010-06-24 Hui Zhu <teawater@gmail.com>
2121 * printcmd.c (ui_printf): New function.
2122 (printf_command): Call ui_printf.
2123 (_initialize_printcmd): New command "eval".
2125 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2127 * infrun.c (handle_inferior_event): Handle presence of single-step
2128 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
2129 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
2130 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
2131 * breakpoint.c (detach_single_step_breakpoints): New function.
2132 (detach_breakpoints): Call it.
2133 (cancel_single_step_breakpoints): New function.
2134 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
2136 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
2137 (spu_gdbarch_init): Install it.
2139 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2141 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
2142 * configure: Regenerate.
2144 2010-06-22 Hui Zhu <teawater@gmail.com>
2146 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
2147 (i386_process_record): Ditto.
2148 * record.c (record_memory_query): New variable.
2149 (_initialize_record): New command "set record memory-query".
2150 * record.h (record_memory_query): New extern.
2152 2010-06-21 Doug Evans <dje@google.com>
2154 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
2155 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
2156 (i386_syscall_p): Change type of lengthp to int.
2157 (i386_displaced_step_fixup): Handle kernels that run one past a
2159 * i386-linux-tdep.c (i386_linux_init_abi): Use
2160 i386_displaced_step_copy_insn instead of
2161 simple_displaced_step_copy_insn.
2163 2010-06-21 Tom Tromey <tromey@redhat.com>
2165 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
2166 (dwarf_type_encoding_name): Likewise.
2168 2010-06-21 Tom Tromey <tromey@redhat.com>
2170 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
2171 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
2172 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
2173 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
2174 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
2175 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
2176 * dwarf2read.c (tag_type_to_type): Create a new error type on
2178 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
2179 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
2181 2010-06-21 Michael Snyder <msnyder@vmware.com>
2183 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
2184 not add_abbrev_prefix_cmd, for "enable breakpoints".
2186 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
2188 * dwarf2loc.c (find_location_expression): Add relocation offset
2189 to base-address-selection entry base addresses. Read addresses
2190 (and offsets) as signed/unsigned integers, depending on the
2191 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
2192 (loclist_describe_location): Likewise.
2193 (disassemble_dwarf_expression): Read DW_OP_addr operand as
2194 unsigned integer. Do not call dwarf2_read_address.
2195 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
2197 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2199 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
2200 value instead of hard-coded SPU_LS_SIZE.
2201 (spu_software_single_step): Likewise.
2202 * spu-tdep.h (SPU_LS_SIZE): Remove.
2204 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2206 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
2207 limit on local store memory accesses.
2208 * spu-linux-nat.c (spu_xfer_partial): Likewise.
2209 * spu-tdep.c (spu_lslr): Remove.
2210 (spu_pointer_to_address): Do not truncate addresses.
2211 (spu_integer_to_address): Likewise.
2212 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
2213 * spu-tdep.h: Add comments.
2214 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
2215 (SPU_OVERLAY_LMA): Define.
2217 2010-06-18 Stan Shebs <stan@codesourcery.com>
2219 * osdata.c (get_osdata): Warn separately if target does not report
2221 (info_osdata_command): Allow empty type, report error if target
2222 does not return available types of OS data.
2223 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
2224 types if no annex supplied.
2226 * thread.c (thread_id_make_value): Make a value representing the
2228 (_initialize_thread): Create $_thread.
2230 2010-06-17 Joel Brobecker <brobecker@adacore.com>
2232 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
2233 last local variable declaration. No real code change.
2235 2010-06-17 Tom Tromey <tromey@redhat.com>
2237 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
2238 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
2241 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
2242 Jan Kratochvil <jan.kratochvil@redhat.com>
2244 * breakpoint.c: Include parser-defs.h.
2245 (watchpoint_exp_is_const): New function.
2246 (watch_command_1): Call watchpoint_exp_is_const to check
2247 if the expression is constant.
2249 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
2251 * configure.ac: Check for RDYNAMIC also for cross builds.
2252 * configure: Regenerate.
2254 2010-06-15 Pedro Alves <pedro@codesourcery.com>
2256 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2257 (SFILES): Remove solib-null.c, add solib-target.c.
2258 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
2259 (ALLDEPFILES): Remove solib-target.c.
2260 * solib-target.c (_initialize_solib_target): Set
2261 current_target_so_ops to solib_target_so_ops if not already set.
2262 * solib-null.c: Delete.
2264 2010-06-14 Pedro Alves <pedro@codesourcery.com>
2266 * NEWS: Mention GDBserver's JIT compilation of tracepoint
2269 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2271 * cp-valprint.c (cp_print_static_field): Members of
2272 dont_print_stat_array_obstack are of type "struct type *".
2273 (_initialize_cp_valprint): Likewise.
2275 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2277 * frame.c (frame_register_unwind): Do not access contents
2278 of "optimized out" unwound register value.
2280 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2282 * ada-lang.h (ada_print_type): Make varstring const.
2283 * ada-typeprint.c (print_func_type): Make name const.
2284 (ada_print_type): Make varstring const.
2285 * c-lang.h (c_print_type): Make varstring const.
2286 * c-typeprint.c (c_print_type): Likewise.
2287 * f-lang.h (f_print_type): Likewise.
2288 * f-typeprint.c (f_print_type): Likewise.
2289 * jv-lang.h (java_print_type): Likewise.
2290 * jv-typeprint.c (java_print_type): Likewise.
2291 * language.c (unk_lang_print_type): Likewise.
2292 * language.h (struct language_defn) <la_print_type>: Likewise.
2293 * m2-lang.h (m2_print_type): Likewise.
2294 * m2-typeprint.c (m2_print_type): Likewise.
2295 * p-lang.h (pascal_print_type): Likewise.
2296 * p-typeprint.c (pascal_print_type): Likewise.
2298 2010-06-11 Stan Shebs <stan@codesourcery.com>
2300 Add per-operation permission flags.
2302 * target.h (struct target_ops): New method to_set_permissions.
2303 (target_set_permissions): New macro.
2304 (target_insert_breakpoint): Change macro to function.
2305 (target_remove_breakpoint): Ditto.
2306 (target_stop): Ditto.
2307 (may_write_registers): Declare.
2308 (may_write_memory): Declare.
2309 (may_insert_breakpoints): Declare.
2310 (may_insert_tracepoints): Declare.
2311 (may_insert_fast_tracepoints): Declare.
2312 (may_stop): Declare.
2313 * target.c (may_write_registers, may_write_registers_1): New globals.
2314 (may_write_memory, may_write_memory_1): New globals.
2315 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
2316 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
2317 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
2319 (may_stop, may_stop_1): New global.
2320 (target_xfer_partial): Test for write permission.
2321 (target_store_registers): Ditto.
2322 (target_insert_breakpoint): New function.
2323 (target_remove_breakpoint): New function.
2324 (target_stop): New function.
2325 (_initialize_targets): Add new set/show variables.
2326 (set_write_memory_permission): New function.
2327 (update_target_permissions): New function.
2328 (set_target_permissions): New function.
2329 (update_current_target): Default to_set_permissions.
2330 (_initialize_targets): Use new globals and setter function.
2331 * tracepoint.c (start_tracing): Test for permission.
2332 * inferior.h (update_observer_mode): Declare.
2333 * infrun.c (non_stop_1): Define earlier.
2334 (observer_mode, observer_mode_1): New globals.
2335 (set_observer_mode, show_observer_mode): New functions.
2336 (update_observer_mode): New function.
2337 (_initialize_infrun): Define "set observer" command.
2338 * remote.c (PACKET_QAllow): New optional packet.
2339 (remote_protocol_features): Add QAllow.
2340 (remote_set_permissions): New function.
2341 (remote_start_remote): Call it.
2342 (init_remote_ops): Add it to target vector.
2343 (_initialize_remote): Add config command for QAllow.
2345 2010-06-11 Tom Tromey <tromey@redhat.com>
2347 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
2348 DW_AT_vtable_elem_location even when GCC extension is seen.
2350 2010-06-11 Tom Tromey <tromey@redhat.com>
2352 PR gdb/9977, PR exp/11636:
2353 * value.h (value_offset): Update.
2354 (struct lval_funcs) <check_validity>: New field.
2355 <copy_closure>: Make argument const.
2356 (value_computed_closure): Update.
2357 (value_contents_for_printing): Declare.
2358 (value_bits_valid): Likewise.
2359 (val_print): Likewise.
2360 (set_value_component_location): Update.
2361 (value_entirely_optimized_out): Declare.
2362 * value.c (value_offset): Argument now const.
2363 (require_not_optimized_out): New function.
2364 (value_contents_for_printing): New function.
2365 (value_contents_all): Call require_not_optimized_out.
2366 (value_contents): Likewise.
2367 (value_bits_valid): New function.
2368 (value_computed_closure): Argument now const.
2369 (set_value_component_location): Make 'whole' argument const.
2370 (value_entirely_optimized_out): New function.
2371 (value_bitsize): Argument now 'const'.
2372 (value_bitpos): Likewise.
2373 (value_type): Likewise.
2374 * valprint.h (val_print_array_elements): Update.
2375 * valprint.c (val_print): Add 'val' argument. Use
2376 valprint_check_validity.
2377 (valprint_check_validity): New function.
2378 (value_check_printable): Use value_entirely_optimized_out.
2379 (common_val_print): Update.
2380 (value_print): Likewise.
2381 (val_print_array_elements): Add 'val' argument.
2382 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
2383 value_bits_valid. Reinit frame cache for lval_computed.
2384 * sh64-tdep.c (sh64_do_register): Update.
2385 * scm-valprint.c (scm_val_print): Add 'val' argument.
2386 * scm-lang.h (scm_val_print): Update.
2387 * python/python.h (apply_val_pretty_printer): Update.
2388 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
2389 argument. Call set_value_component_location.
2390 * printcmd.c (print_scalar_formatted): Update.
2391 * p-valprint.c (pascal_val_print): Add 'val' argument.
2392 (pascal_object_print_value_fields): Likewise.
2393 (pascal_object_print_value): Likewise.
2394 (pascal_object_print_static_field): Update.
2395 * p-lang.h (pascal_val_print): Update.
2396 (pascal_object_print_value_fields): Update.
2397 * mt-tdep.c (mt_registers_info): Update.
2398 * mi/mi-main.c (get_register): Update.
2399 (mi_cmd_data_evaluate_expression): Use common_val_print.
2400 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
2401 (m2_print_unbounded_array): Likewise.
2402 (m2_val_print): Likewise.
2403 * m2-lang.h (m2_val_print): Update.
2404 * language.h (struct language_defn) <la_val_print>: Add 'val'
2406 (LA_VAL_PRINT): Likewise.
2407 * language.c (unk_lang_val_print): Add 'val' argument.
2408 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
2409 (java_val_print): Likewise.
2410 * jv-lang.h (java_val_print): Add 'val' argument.
2411 * infcmd.c (default_print_registers_info): Update.
2412 * f-valprint.c (f77_print_array_1): Add 'val' argument.
2413 (f77_print_array): Likewise.
2414 (f_val_print): Likewise.
2415 * f-lang.h (f_val_print): Add 'val' argument.
2416 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
2418 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
2419 set_value_optimized_out.
2420 (write_pieced_value): Use value_bitsize and value_bitpos.
2421 <default>: Don't exit loop.
2422 (check_pieced_value_validity): New function.
2423 (pieced_value_funcs): Reference check_pieced_value_validity,
2424 check_pieced_value_invalid.
2425 (copy_pieced_value_closure): Update.
2426 (check_pieced_value_bits): New function.
2427 (check_pieced_value_invalid): New function.
2428 * d-valprint.c (dynamic_array_type): Add 'val' argument.
2429 (d_val_print): Likewise.
2430 * d-lang.h (d_val_print): Update.
2431 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
2432 (cp_print_value_fields_rtti): Likewise.
2433 (cp_print_value): Likewise.
2434 (cp_print_static_field): Update.
2435 * c-valprint.c (c_val_print): Add 'val' argument.
2436 (c_value_print): Update.
2437 * c-lang.h (c_val_print): Update.
2438 (cp_print_value_fields): Likewise.
2439 (cp_print_value_fields_rtti): Likewise.
2440 * ada-valprint.c (struct ada_val_print_args): Remove.
2441 (val_print_packed_array_elements): Add 'val' argument.
2442 (ada_val_print): Likewise. Rewrite.
2443 (ada_val_print_stub): Remove.
2444 (ada_val_print_array): Add 'val' argument.
2445 (ada_val_print_1): Likewise.
2446 (print_variant_part): Likewise.
2447 (ada_value_print): Update.
2448 (print_record): Add 'val' argument.
2449 (print_field_values): Likewise.
2450 * ada-lang.h (ada_val_print): Update.
2452 2010-06-11 Tom Tromey <tromey@redhat.com>
2454 * vec.h (VEC_cleanup): New macro.
2455 (DEF_VEC_ALLOC_FUNC_I): Update.
2456 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2457 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2458 * dwarf2loc.c (struct axs_var_loc): Remove.
2459 (unimplemented): New function.
2460 (translate_register): Likewise.
2461 (access_memory): Likewise.
2462 (compile_dwarf_to_ax): Likewise.
2463 (dwarf2_tracepoint_var_loc): Remove.
2464 (dwarf2_tracepoint_var_access): Likewise.
2465 (dwarf2_tracepoint_var_ref): Likewise.
2466 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
2467 (loclist_tracepoint_var_ref): Likewise.
2468 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
2469 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
2470 require_composition. No longer static.
2471 (execute_stack_op): Update.
2472 * ax-gdb.h (trace_kludge): Declare.
2474 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2476 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
2477 (should_be_inserted): Return zero also on NULL OWNER.
2478 (breakpoint_program_space_exit): New OWNER comment.
2479 (insert_breakpoint_locations): Extend comment for OWNER.
2480 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
2481 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
2483 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
2484 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
2485 (bpstat_check_location): New assert on OWNER.
2486 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
2487 and B initializations to the code block. New assert on them.
2488 (print_one_breakpoint_location): New OWNER comment.
2489 (watchpoint_locations_match): Assert on OWNER.
2490 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
2491 initializations to the code block. New assert on OWNER.
2492 (set_breakpoint_location_function): New assert on OWNER.
2493 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
2494 (bp_location_compare, update_global_location_list)
2495 (update_global_location_list): New OWNER comment.
2497 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2499 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
2501 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2503 * config/nm-linux.h (struct target_ops): Remove forward declaration.
2504 (lin_thread_get_thread_signals): Remove prototype.
2505 (GET_THREAD_SIGNALS): Remove.
2506 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
2507 * linux-thread-db.c (check_thread_signals): Directly call
2508 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
2510 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2512 * gregset.h (GDB_FPXREGSET_T): Remove.
2513 (gdb_fpxregset_t): Likewise.
2514 (supply_fpxregset): Remove prototype.
2515 (fill_fpxregset): Likewise.
2516 * i386-linux-nat.c (supply_fpxregset): Remove.
2517 (fill_fpxregset): Likewise.
2518 (fetch_fpxregs): Inline supply_fpxregset call.
2519 (store_fpxregs): Inline fill_fpxregset call.
2521 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
2522 * config/i386/nm-linux.h: Remove file.
2524 2010-06-09 Michael Snyder <msnyder@vmware.com>
2526 * target.c (update_current_target): Fix spelling error in comment.
2527 (target_mourn_inferior): Fix spelling error in error message.
2529 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
2531 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
2532 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
2534 2010-06-08 Michael Snyder <msnyder@vmware.com>
2536 * remote.c (remote_close): Set inferior_ptid to null_ptid.
2538 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2540 * configure.ac <"${have_libpython}" != no>: New workaround of
2542 * configure: Regenerate.
2544 2010-06-08 Hui Zhu <teawater@gmail.com>
2546 * record.c (record_wait): Move signal out of replay code.
2548 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2551 * dwarf2-frame.c (no_dwarf_call): New function.
2552 (execute_stack_op): Set CTX->DWARF_CALL.
2553 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
2554 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
2555 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
2556 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
2557 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
2558 (needs_frame_dwarf_call): New function.
2559 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
2560 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
2561 Update the comment. Move variables die, offset and error call to ...
2562 (follow_die_ref): ... a new function.
2563 (dwarf2_fetch_die_location_block): New function.
2564 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
2566 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2568 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
2569 (dwarf_expr_tls_address): Use per_cu instead of objfile.
2570 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
2571 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
2573 (struct needs_frame_baton): New field per_cu.
2574 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
2575 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
2577 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2579 * cp-support.c (make_symbol_overload_list_namespace): Only search
2580 static and global blocks.
2581 (make_symbol_overload_list_block): New function.
2582 (make_symbol_overload_list): Separate namespace search from block
2584 (make_symbol_overload_list_qualified): Use
2585 make_symbol_overload_list_block.
2587 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2589 * value.h: Created oload_search_type enum.
2590 (find_overload_match): Use oload_search_type enum.
2591 * valops.c (find_overload_match): Support combined member and
2593 * eval.c (evaluate_subexp_standard): Calls to
2594 find_overload_match now use oload_search_type enum.
2595 (oload_method_static): Verify index is a proper value.
2596 * valarith.c (value_user_defined_cpp_op): Search for and handle
2597 both member and non-member operators.
2598 (value_user_defined_cpp_op): New function.
2599 (value_user_defined_op): New function.
2600 (value_x_unop): Use value_user_defined_op.
2601 (value_x_binop): Ditto.
2602 * cp-support.c (make_symbol_overload_list_using): Added block
2604 Add check for namespace aliases and imported declarations.
2606 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2608 * breakpoint.h (owner): Extend the comment.
2610 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2612 Clear stale specific bp_location from former whole breakpoint.
2613 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
2615 (free_bp_location): ... here. Rename there the called function to
2616 bpstat_remove_bp_location_callback.
2617 (bpstat_remove_breakpoint_callback): Rename to ...
2618 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
2619 to struct bp_location. Change the called function to
2620 bpstat_remove_bp_location. Create new declaration for the function.
2621 (bpstat_remove_breakpoint): Rename to ...
2622 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
2623 code for the new parameter type.
2625 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
2627 * README: Make version-agnostic.
2629 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2631 Fix duplicate types for single DIE.
2632 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
2634 (read_array_type): Remove type initialization. Recheck get_die_type
2635 after initial die_type. Move set_die_type before set_descriptive_type.
2636 (read_set_type): New variable domain_type. Recheck get_die_type after
2637 initial die_type. Move attr initialization later.
2638 (read_tag_pointer_type, read_tag_reference_type): New variable
2639 target_type. Recheck get_die_type after initial die_type.
2640 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
2641 die_type and die_containing_type.
2642 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
2643 Recheck get_die_type after initial die_type.
2644 (read_subrange_type): Recheck get_die_type after initial die_type.
2645 Move set_die_type before set_descriptive_type.
2646 (set_die_type): Extend the function comment. Call complaint if DIE has
2647 some type already set.
2649 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
2651 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
2652 for current naming of thread groups (iN, not N).
2654 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
2656 * ada-lang.c (ada_operator_length): Constify `struct expression'.
2657 * parse.c (operator_length): Likewise.
2658 (operator_length_standard): Likewise.
2659 * parser-defs.h (operator_length): Likewise.
2660 (operator_length_standard): Likewise.
2661 (struct exp_descriptor <operator_length>): Likewise.
2663 2010-06-04 Doug Evans <dje@google.com>
2665 Add support for enabling/disabling individual pretty-printers.
2666 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
2667 * python/python-internal.h (gdbpy_enabled_cst): Declare.
2668 * python/python.c (gdbpy_enabled_cst): Define.
2669 (_initialize_python): Initialize gdbpy_enabled_cst.
2672 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2674 * breakpoint.c (update_global_location_list): Fix comment typo.
2676 2010-06-04 Hui Zhu <teawater@gmail.com>
2678 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
2680 2010-06-03 Doug Evans <dje@google.com>
2682 * configure.ac: Don't fail if python is unusable when
2683 configured with --with-python=auto.
2684 * configure: Regenerate.
2686 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
2688 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
2690 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
2692 * valprint.h (get_array_bounds): Change low and high parameter types
2694 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
2696 (val_print_array_elements): Adapt to change above.
2697 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
2698 * p-valprint.c (pascal_val_print): Likewise.
2700 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2702 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
2703 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
2706 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2708 Support DW_TAG_module as separate namespaces.
2709 * dwarf2read.c (typename_concat): New parameter physname.
2710 (read_module_type): New function and declaration.
2711 (scan_partial_symbols): Scan also DW_TAG_module children.
2712 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
2713 to typename_concat backward compatible physname value 0.
2714 (partial_die_full_name, read_namespace_type): Pass to typename_concat
2715 backward compatible physname value 0.
2716 (add_partial_module, read_module): Remove FIXME comment.
2717 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
2718 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
2719 DIEs under DW_TAG_module.
2720 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
2721 DW_AT_MIPS_linkage_name first, extend it for language_fortran
2722 && physname and return there instead of just setting NAME. Extend
2723 the main block for language_fortran. Pass physname parameter to the
2724 typename_concat call.
2725 (read_import_statement, read_func_scope, get_scope_pc_bounds)
2726 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
2727 (new_symbol): Fill in cplus_specific.demangled_name if it is still
2728 missing from SYMBOL_SET_NAMES in the language_fortran case.
2729 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
2731 (read_type_die) <DW_TAG_module>: New.
2732 (MAX_SEP_LEN): Increase to 7.
2733 (typename_concat): New parameter physname. New variable lead. Support
2734 also language_fortran.
2735 * f-exp.y (yylex): Consider : also as a symbol name character class.
2736 * f-lang.c: Include cp-support.h.
2737 (f_word_break_characters, f_make_symbol_completion_list): New functions.
2738 (f_language_defn): Use cp_lookup_symbol_nonlocal,
2739 f_word_break_characters and f_make_symbol_completion_list.
2740 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
2741 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
2742 * symtab.c (symbol_init_language_specific): Support language_fortran.
2743 (symbol_find_demangled_name): New comment on language_fortran.
2744 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
2745 for language_fortran.
2746 (lookup_symbol_aux_local): Check imports also for language_fortran.
2747 (default_make_symbol_completion_list): Rename to ...
2748 (default_make_symbol_completion_list_break_on): ... this name. New
2749 parameter break_on, use it.
2750 (default_make_symbol_completion_list): New stub.
2751 * symtab.h (default_make_symbol_completion_list_break_on): New
2754 2010-06-02 Joel Brobecker <brobecker@adacore.com>
2756 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
2759 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2761 * dwarf2read.c (typename_concat): Add const to the variable sep.
2763 2010-06-02 Tom Tromey <tromey@redhat.com>
2765 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
2766 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
2767 type is const. Add 'def' argument. Add missing operators, remove
2769 (decode_locdesc): Update.
2770 (dwarf2_always_disassemble): New global.
2771 (show_dwarf2_always_disassemble): New function.
2772 (_initialize_dwarf2_read): Add always-disassemble.
2773 (dwarf2_per_cu_offset_size): New function.
2774 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
2775 (piece_end_p): New function.
2776 (locexpr_describe_location_piece): Replace 'size' argument with
2777 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
2778 some constants. Remove errors.
2779 (disassemble_dwarf_expression): New function.
2780 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
2781 Add 'offset_size' argument.
2782 (loclist_describe_location): Change output formatting.
2783 * dwarf2expr.h (dwarf_stack_op_name): Declare.
2785 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
2787 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
2788 anonymous type case.
2790 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
2792 * dwarf2read.c (read_subrange_type): Handle missing base type
2793 according to Dwarf-2 specifications.
2795 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
2797 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
2799 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
2800 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
2801 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
2802 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
2803 UNOP_CHMAX, UNOP_CHMIN.
2804 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
2805 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
2806 UNOP_CHMIN>: Remove opcodes.
2808 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
2810 * dwarf2read.c (read_func_scope): Do not complain for
2811 external function if bounds are not found.
2813 2010-06-01 Pedro Alves <pedro@codesourcery.com>
2815 * NEWS: Mention gdbserver fast tracepoints support.
2817 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
2819 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
2821 (windows_set_console_info): New function.
2822 (windows_create_inferior): Call windows_set_console_info
2823 if NEW_CONSOLE is true.
2824 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
2825 (_initialize_loadable): Initialize GetConsoleFontSize and
2826 GetCurrentConsoleFont.
2828 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2830 * Makefile.in (RDYNAMIC): New.
2831 (SFILES): Add proc-service.list.
2832 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
2833 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
2834 * config/arm/linux.mh: Likewise.
2835 * config/i386/linux.mh: Likewise.
2836 * config/i386/linux64.mh: Likewise.
2837 * config/ia64/linux.mh: Likewise.
2838 * config/m32r/linux.mh: Likewise.
2839 * config/m68k/linux.mh: Likewise.
2840 * config/mips/linux.mh: Likewise.
2841 * config/pa/linux.mh: Likewise.
2842 * config/powerpc/linux.mh: Likewise.
2843 * config/powerpc/ppc64-linux.mh: Likewise.
2844 * config/s390/s390.mh: Likewise.
2845 * config/sparc/linux.mh: Likewise.
2846 * config/sparc/linux64.mh: Likewise.
2847 * config/xtensa/linux.mh: Likewise.
2848 * configure.ac: New RDYNAMIC on native host and GCC.
2849 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
2850 * configure: Regenerate.
2851 * proc-service.list: New.
2853 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2855 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
2858 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2860 * linux-nat.c (linux_nat_wait_1): Do not call
2861 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
2862 TARGET_WAITKIND_SIGNALLED.
2864 2010-05-27 Joel Brobecker <brobecker@adacore.com>
2866 * ada-lang.c (ada_inferior_data): New struct.
2867 (ada_inferior_data): New static global.
2868 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
2869 (ada_get_tsd_type): New functions.
2870 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
2871 to look the tsd type up.
2872 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
2873 event. Set ada_inferior_data.
2875 2010-05-27 Pedro Alves <pedro@codesourcery.com>
2877 * remote.c (unpack_varlen_hex): Remove forward declaration.
2878 (remote_console_output): Make static, and add forward declaration.
2879 * remote.h: Drop FIXME comment.
2880 (unpack_varlen_hex): Declare.
2881 (remote_console_output, remote_cisco_objfile_relocate)
2882 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
2883 Delete declarations.
2884 * tracepoint.c: Include "remote.h".
2885 (unpack_varlen_hex): Delete declaration.
2887 2010-05-27 Tom Tromey <tromey@redhat.com>
2889 * dwarf2loc.c (struct piece_closure) <refc>: New field.
2890 (allocate_piece_closure): Initialize refc.
2891 (copy_pieced_value_closure): Use refc.
2892 (free_pieced_value_closure): Likewise.
2894 2010-05-27 Tom Tromey <tromey@redhat.com>
2896 * arm-tdep.c (push_stack_item): 'contents' now const.
2897 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
2898 value_contents_writeable. Introduce new temporary.
2900 2010-05-27 Tom Tromey <tromey@redhat.com>
2902 * findcmd.c (parse_find_args): Use value_contents, not
2905 2010-05-27 Tom Tromey <tromey@redhat.com>
2907 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
2908 const. Use value_contents, not value_contents_writeable.
2910 2010-05-27 Joel Brobecker <brobecker@adacore.com>
2912 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
2913 by call to value_contents.
2915 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
2917 * MAINTAINERS: Add myself for write after approval privileges.
2919 2010-05-26 Doug Evans <dje@google.com>
2921 Allow python to find its files if moved from original location.
2922 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
2923 (GDB_AC_WITH_DIR): Call it.
2924 * configure.ac: Define WITH_PYTHON_PATH if we can find the
2925 python installation directory.
2926 * config.in: Regenerate.
2927 * configure: Regenerate.
2928 * defs.h (python_libdir): Declare.
2929 * main.c (python_libdir): Define.
2930 (captured_main): Initialize python_libdir.
2931 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
2932 call Py_SetProgramName to make sure python can find its libraries
2935 * configure.ac: Try to use python's distutils to fetch compilation
2937 * configure: Regenerate.
2938 * python/python-config.py: New file.
2940 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
2942 * ser-tcp.c (net_open): Check error return from socket() call by its
2943 equality to -1 not by it being negative.
2944 (net_close): Likewise.
2946 2010-05-26 Pedro Alves <pedro@codesourcery.com>
2948 * NEWS: Mention the `qRelocInsn' feature.
2949 * gdbarch.sh (relocate_instruction): New.
2950 * amd64-tdep.c (rip_relative_offset): New.
2951 (append_insns): New.
2952 (amd64_relocate_instruction): New.
2953 (amd64_init_abi): Install it.
2954 * i386-tdep.c (append_insns): New.
2955 (i386_relocate_instruction): New.
2956 (i386_gdbarch_init): Install it.
2957 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
2958 * gdbarch.h, gdbarch.c: Regenerate.
2960 2010-05-26 Tom Tromey <tromey@redhat.com>
2962 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
2963 (struct dwarf2_loclist_baton) <data>: Likewise.
2964 * dwarf2loc.c (find_location_expression): Constify return type.
2965 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
2966 (dwarf2_loc_desc_needs_frame): Likewise.
2967 (loclist_read_variable): Constify.
2968 (loclist_describe_location): Likewise.
2969 (loclist_tracepoint_var_ref): Likewise.
2971 2010-05-25 Tom Tromey <tromey@redhat.com>
2973 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
2974 (dwarf_expr_frame_base_1): Likewise.
2975 (read_pieced_value): Update.
2976 (needs_frame_frame_base): Constify.
2977 (dwarf2_tracepoint_var_loc): Likewise.
2978 (dwarf2_tracepoint_var_access): Likewise.
2979 (locexpr_describe_location_piece): Likewise.
2980 (locexpr_describe_location_1): Likewise.
2981 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
2984 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
2985 (dwarf_expr_eval, read_uleb128, read_sleb128)
2986 (dwarf2_read_address): Update.
2987 * dwarf2expr.c (dwarf_expr_eval): Constify.
2988 (read_uleb128): Likewise.
2989 (read_sleb128): Likewise.
2990 (dwarf2_read_address): Likewise.
2991 (require_composition): Likewise.
2992 (execute_stack_op): Likewise.
2993 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
2995 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
2997 (no_get_frame_base): Constify.
2998 (execute_stack_op): Likewise.
2999 (execute_cfa_program): Likewise.
3000 (read_encoded_value): Likewise.
3002 2010-05-25 Doug Evans <dje@google.com>
3004 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
3006 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
3007 * event-loop.c: ... here.
3008 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
3009 `error' for clarity.
3010 (tui_getc): Pass correct value for `error' parameter to
3011 tui_readline_output.
3013 Add python gdb.GdbError and gdb.string_to_argv.
3014 * NEWS: Document them.
3015 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
3016 the exception is gdb.GdbError. Print a second traceback if there's
3017 an error computing the error message.
3018 (gdbpy_string_to_argv): New function.
3019 * python/py-utils.c (gdbpy_obj_to_string): New function.
3020 (gdbpy_exception_to_string): New function.
3021 * python/python-internal.h (gdbpy_string_to_argv): Declare.
3022 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
3023 (gdbpy_gdberror_exc): Declare.
3024 * python/python.c (gdbpy_gdberror_exc): New global.
3025 (_initialize_python): Initialize gdbpy_gdberror_exc and create
3027 (GdbMethods): Add string_to_argv.
3029 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3031 * windows-nat.c (display_selector): Call GetLastError to give better
3032 failure explanation.
3034 2010-05-24 Pedro Alves <pedro@codesourcery.com>
3036 * config.in: Regenerate.
3038 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3041 * target.c (push_target): Return only void. Remove the return value
3043 * target.h (push_target): Return only void.
3045 2010-05-23 Pedro Alves <pedro@codesourcery.com>
3047 Update gnulib from latest git.
3048 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3050 * gnulib/memcmp.c: Removed.
3051 * gnulib/memchr.valgrind: New.
3052 * gnulib/stddef.in.h: New.
3053 * gnulib/Makefile.am: Updated.
3054 * gnulib/memchr.c: Updated.
3055 * gnulib/memmem.c: Updated.
3056 * gnulib/stdint.in.h: Updated.
3057 * gnulib/str-two-way.h: Updated.
3058 * gnulib/string.in.h: Updated.
3059 * gnulib/wchar.in.h: Updated.
3061 * gnulib/extra/link-warning.h: Removed.
3062 * gnulib/extra/c++defs.h: New.
3063 * gnulib/extra/warn-on-use.h: New.
3064 * gnulib/extra/arg-nonnull.h: Updated.
3066 * gnulib/m4/extensions.m4: Updated.
3067 * gnulib/m4/gnulib-cache.m4: Updated.
3068 * gnulib/m4/gnulib-common.m4: Updated.
3069 * gnulib/m4/gnulib-comp.m4: Updated.
3070 * gnulib/m4/gnulib-tool.m4: Updated.
3071 * gnulib/m4/include_next.m4: Updated.
3072 * gnulib/m4/longlong.m4: Updated.
3073 * gnulib/m4/memchr.m4: Updated.
3074 * gnulib/m4/memmem.m4: Updated.
3075 * gnulib/m4/stdint.m4: Updated.
3076 * gnulib/m4/string_h.m4: Updated.
3077 * gnulib/m4/memcmp.m4: Removed.
3078 * gnulib/m4/onceonly_2_57.m4: Removed.
3079 * gnulib/m4/00gnulib.m4: New.
3080 * gnulib/m4/mmap-anon.m4: New.
3081 * gnulib/m4/multiarch.m4: New.
3082 * gnulib/m4/onceonly.m4: New.
3083 * gnulib/m4/stddef_h.m4: New.
3084 * gnulib/m4/warn-on-use.m4: New.
3085 * gnulib/m4/wchar.m4: Removed.
3086 * gnulib/m4/wchar_h.m4: New.
3087 * gnulib/m4/wchar_t.m4: New.
3088 * gnulib/m4/wint_t.m4: New.
3090 * aclocal.m4: Regenerate.
3091 * config.in: Likewise.
3092 * configure: Likewise.
3093 * gnulib/Makefile.in: Likewise.
3095 2010-05-21 Tom Tromey <tromey@redhat.com>
3097 * dwarf2loc.c (extract_bits_primitive): New function.
3098 (extract_bits): Likewise.
3099 (insert_bits): Likewise.
3100 (copy_bitwise): Likewise.
3101 (read_pieced_value): Do all operations in bits.
3102 (write_pieced_value): Likewise.
3103 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
3104 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
3105 Always use xrealloc to resize piece array.
3106 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
3107 <DW_OP_piece>: Update.
3108 <DW_OP_bit_piece>: New case.
3110 2010-05-21 Tom Tromey <tromey@redhat.com>
3112 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
3113 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
3114 * dwarf2expr.h (enum dwarf_value_location)
3115 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
3116 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
3117 (add_piece): Handle empty piece.
3118 (execute_stack_op) <DW_OP_piece>: Handle
3119 DWARF_VALUE_OPTIMIZED_OUT.
3121 2010-05-21 Tom Tromey <tromey@redhat.com>
3123 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
3124 evaluate_subexp, not evaluate_subexp_with_coercion.
3126 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3128 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3131 2010-05-21 Tom Tromey <tromey@redhat.com>
3133 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
3135 (write_pieced_value): Likewise.
3137 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3139 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3140 and DW_TAG_volatile_type.
3141 (new_symbol): Likewise.
3143 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
3145 * p-valprint.c (pascal_val_print): Call get_array_bounds
3146 to obtain the number of elements in an array.
3148 2010-05-19 Doug Evans <dje@google.com>
3150 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
3152 * python.c (source_python_script): Add comment.
3153 (source_python_script_for_objfile): Remove unnecessary call to
3156 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3157 Sergio Durigan Junior <sergiodj@redhat.com>
3160 * parse.c (exp_iterate): Use operator_length wrapper function.
3162 2010-05-18 Michael Snyder <msnyder@vmware.com>
3164 * ada-lang.c: White space.
3165 * ada-typeprint.c: White space.
3166 * ada-valprint.c: White space.
3167 * addrmap.c: White space.
3168 * auxv.c: White space.
3169 * ax-gdb.c: White space.
3171 2010-05-18 Hui Zhu <teawater@gmail.com>
3173 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
3175 (inferior_call_waitpid): Move make_cleanup out of check.
3176 Check the return of waitpid.
3177 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
3179 2010-05-17 Michael Snyder <msnyder@vmware.com>
3181 * tui/tui.c: White space.
3182 * tui/tui-data.c: White space.
3183 * tui/tui-disasm.c: White space.
3184 * tui/tui-file.c: White space.
3185 * tui/tui-interp.c: White space.
3186 * tui/tui-main.c: White space.
3187 * tui/tui-out.c: White space.
3188 * tui/tui-regs.c: White space.
3189 * tui/tui-source.c: White space.
3190 * tui/tui-stack.c: White space.
3191 * tui/tui-win.c: White space.
3192 * tui/tui-winsource.c: White space.
3194 * procfs.c: White space.
3196 * python/py-auto-load.c: White space.
3197 * python/py-block.c: White space.
3198 * python/py-breakpoint.c: White space.
3199 * python/py-cmd.c: White space.
3200 * python/py-function.c: White space.
3201 * python/py-lazy-string.c: White space.
3202 * python/py-objfile.c: White space.
3203 * python/py-param.c: White space.
3204 * python/py-prettyprint.c: White space.
3205 * python/py-progspace.c: White space.
3206 * python/py-symtab.c: White space.
3207 * python/python.c: White space.
3208 * python/py-type.c: White space.
3209 * python/py-utils.c: White space.
3210 * python/py-value.c: White space.
3212 * mi/mi-cmd-break.c: White space.
3213 * mi/mi-cmd-env.c: White space.
3214 * mi/mi-cmds.c: White space.
3215 * mi/mi-cmd-stack.c: White space.
3216 * mi/mi-cmd-var.c: White space.
3217 * mi/mi-console.c: White space.
3218 * mi/mi-getopt.c: White space.
3219 * mi/mi-interp.c: White space.
3220 * mi/mi-main.c: White space.
3221 * mi/mi-out.c: White space.
3222 * mi/mi-parse.c: White space.
3224 * cli/cli-cmds.c: White space.
3225 * cli/cli-decode.c: White space.
3226 * cli/cli-dump.c: White space.
3227 * cli/cli-interp.c: White space.
3228 * cli/cli-logging.c: White space.
3229 * cli/cli-script.c: White space.
3230 * cli/cli-setshow.c: White space.
3232 * valarith.c: White space.
3233 * valops.c: White space.
3234 * valprint.c: White space.
3235 * value.c: White space.
3236 * varobj.c: White space.
3237 * xcoffread.c: White space.
3238 * xml-support.c: White space.
3239 * xml-tdesc.c: White space.
3241 2010-05-17 Andreas Schwab <schwab@redhat.com>
3244 * c-lang.c (c_printstr): Compute real length of NUL terminated
3247 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3249 * parse.c (parse_exp_in_context): When block is not NULL, use
3250 its associated language to parse the expression instead of
3251 the current_language.
3253 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3255 * jv-lang.c (java_lookup_class): Remove commented out code.
3256 (type_from_class): Likewise.
3257 (java_op_print_tab): Remove commented-out elements.
3259 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3261 * ada-lang.c (to_fixed_range_type): The the raw index type as
3262 argument instead of the raw type name. Remove orig_type parameter.
3263 Update calls throughout.
3264 (ada_fixup_array_indexes_type): New function.
3265 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
3266 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
3267 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
3268 Remove name parameter.
3269 (print_array_type): Add call to ada_fixup_array_indexes_type.
3270 Update calls to print_range_type.
3271 (ada_print_type): Update calls to print_range_type.
3273 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3275 * dwarf2read.c (read_set_type): Set type length if
3276 DW_AT_byte_size attribute is present.
3278 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3280 * p-valprint.c (pascal_val_print): Handle set type if range limits
3281 are undefined but size is known.
3283 2010-05-17 Pedro Alves <pedro@codesourcery.com>
3285 * procfs.c: Reformat.
3287 2010-05-16 Michael Snyder <msnyder@vmware.com>
3289 * target.c: White space.
3290 * target-descriptions.c: White space.
3291 * target-memory.c: White space.
3292 * thread.c: White space.
3293 * top.c: White space.
3294 * tracepoint.c: White space.
3295 * trad-frame.c: White space.
3296 * tramp-frame.c: White space.
3297 * ui-file.c: White space.
3298 * ui-out.c: White space.
3299 * user-regs.c: White space.
3300 * utils.c: White space.
3302 * scm-exp.c: White space.
3303 * scm-lang.c: White space.
3304 * scm-valprint.c: White space.
3305 * sentinel-frame.c: White space.
3306 * ser-base.c: White space.
3307 * ser-go32.c: White space.
3308 * serial.c: White space.
3309 * ser-mingw.c: White space.
3310 * ser-pipe.c: White space.
3311 * ser-tcp.c: White space.
3312 * ser-unix.c: White space.
3313 * solib.c: White space.
3314 * solib-darwin.c: White space.
3315 * solib-frv.c: White space.
3316 * solib-irix.c: White space.
3317 * solib-osf.c: White space.
3318 * solib-pa64.c: White space.
3319 * solib-som.c: White space.
3320 * solib-spu.c: White space.
3321 * solib-svr4.c: White space.
3322 * solib-target.c: White space.
3323 * source.c: White space.
3324 * stabsread.c: White space.
3325 * stack.c: White space.
3326 * std-regs.c: White space.
3327 * symfile.c: White space.
3328 * symmisc.c: White space.
3329 * symtab.c: White space.
3331 2010-05-16 Michael Snyder <msnyder@vmware.com>
3333 * source.c (_initialize_source): Add "rev" as an abbreviation
3334 for the "reverse-search" command.
3336 2010-05-16 Michael Snyder <msnyder@vmware.com>
3338 * record.c: White space.
3339 * regcache.c: White space.
3340 * reggroups.c: White space.
3341 * remote-fileio.c: White space.
3342 * remote-m32r-sdi.c: White space.
3343 * remote-mips.c: White space.
3344 * remote-sim.c: White space.
3345 * remote.c: White space.
3346 (process_g_packet): Remove orphan braces.
3348 2010-05-15 Michael Snyder <msnyder@vmware.com>
3350 * parse.c: White space.
3351 * p-lang.c: White space.
3352 * posix-hdep.c: White space.
3353 * printcmd.c: White space.
3354 * progspace.c: White space.
3355 * prologue-value.c: White space.
3356 * psymtab.c: White space.
3357 * p-typeprint.c: White space.
3358 * p-valprint.c: White space.
3360 * objc-lang.c: White space.
3361 * objfiles.c: White space.
3362 * observer.c: White space.
3363 * osabi.c: White space.
3364 * osdata.c: White space.
3366 * m2-lang.c: White space.
3367 * m2-valprint.c: White space.
3368 * macrocmd.c: White space.
3369 * macroexp.c: White space.
3370 * macroscope.c: White space.
3371 * macrotab.c: White space.
3372 * main.c: White space.
3373 * maint.c: White space.
3374 * mdebugread.c: White space.
3375 * memattr.c: White space.
3376 * minsyms.c: White space.
3377 * monitor.c: White space.
3379 2010-05-14 Michael Snyder <msnyder@vmware.com>
3381 * jv-lang.c: White space.
3382 * jv-typeprint.c: White space.
3383 * jv-valprint.c: White space.
3384 * language.c: White space.
3385 * libunwind-frame.c: White space.
3386 * linespec.c: White space.
3387 * linux-nat.c: White space.
3388 * linux-record.c: White space.
3389 * linux-thread-db.c: White space.
3391 * infcall.c: White space.
3392 * inf-child.c: White space.
3393 * infcmd.c: White space.
3394 * inferior.c: White space.
3395 * inf-loop.c: White space.
3396 * inflow.c: White space.
3397 * inline-frame.c: White space.
3398 * interps.c: White space.
3400 * gcore.c: White space.
3401 * gdb.c: White space.
3402 * gdbtypes.c: White space.
3403 * gnu-nat.c: White space.
3404 * gnu-v2-abi.c: White space.
3405 * gnu-v3-abi.c: White space.
3407 * findcmd.c: White space.
3408 * findvar.c: White space.
3409 * fork-child.c: White space.
3410 * frame-base.c: White space.
3411 * frame.c: White space.
3412 * frame-unwind.c: White space.
3413 * f-valprint.c: White space.
3415 * elfread.c: White space.
3416 * environ.c: White space.
3417 * eval.c: White space.
3418 * event-loop.c: White space.
3419 * event-top.c: White space.
3420 * exceptions.c: White space.
3421 * exec.c: White space.
3422 * expprint.c: White space.
3424 * dbxread.c: White space.
3425 * dcache.c: White space.
3426 * disasm.c: White space.
3427 * doublest.c: White space.
3428 * dsrec.c: White space.
3429 * dummy-frame.c: White space.
3430 * dwarf2expr.c: White space.
3431 * dwarf2-frame.c: White space.
3432 * dwarf2loc.c: White space.
3433 * dwarf2read.c: White space.
3435 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
3439 * python/py-value.c (valpy_hash): New function.
3440 (value_object_type): Register valpy_hash.
3442 2010-05-14 Hui Zhu <teawater@gmail.com>
3443 Michael Snyder <msnyder@vmware.com>
3445 * linux-fork.c (gdbthread.h): New include.
3446 (fork_info): Add parent_ptid.
3447 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
3449 (delete_checkpoint_command): Call inferior_call_waitpid.
3450 (checkpoint_command): Set parent_ptid.
3452 2010-05-13 Michael Snyder <msnyder@vmware.com>
3454 * dictionary.c: Re-indent to GNU coding standard.
3456 * charset.c: White space.
3457 * c-lang.c: White space.
3458 * cli-out.c: White space.
3459 * coffread.c: White space.
3460 * complaints.c: White space.
3461 * completer.c: White space.
3462 * corefile.c: White space.
3463 * corelow.c: White space.
3464 * cp-abi.c: White space.
3465 * cp-namespace.c: White space.
3466 * cp-support.c: White space.
3467 * cp-valprint.c: White space.
3468 * c-typeprint.c: White space.
3469 * c-valprint.c: White space.
3470 * blockframe.c: White space.
3471 * breakpoint.c: White space.
3472 * buildsym.c: White space.
3473 * blockframe.c: White space.
3474 * bcache.c: White space.
3475 * gdbarch.sh: White space, add blank lines.
3476 * arch-utils.c: Ditto.
3477 * gdbarch.c: Regenerate.
3478 * frame.c: White space, add blank lines.
3479 * stack.c: White space, add blank lines.
3480 (initialize_stack): Remove long-dead code.
3482 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3485 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
3486 (locexpr_read_variable, loclist_read_variable): Update the callers.
3488 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3491 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
3492 Remove check of NULL returned by tag_type_to_type.
3493 (die_containing_type): Remove variable type. Remove type_die variable
3494 initialization. Remove check of NULL returned by tag_type_to_type.
3496 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3499 * gdbtypes.c (lookup_struct_elt_type): Also lookup
3500 names of unnamed structures or unions.
3502 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3504 * procfs.c (proc_watchpoint_address): New function.
3505 (procfs_stopped_by_watchpoint): Remove useless check after
3506 find_procinfo_or_die call.
3507 (procfs_stopped_data_address): New function.
3508 (procfs_use_watchpoints): Register new watchpoint related function.
3510 2010-05-11 Tom Tromey <tromey@redhat.com>
3512 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
3514 2010-05-10 Michael Snyder <msnyder@vmware.com>
3516 * utils.c: White space cleanup.
3518 2010-05-10 Tom Tromey <tromey@redhat.com>
3520 * eval.c (ptrmath_type_p): Add 'lang' argument.
3521 (evaluate_subexp_standard): Update.
3522 (evaluate_subexp_with_coercion): Update.
3523 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
3525 2010-05-10 Michael Snyder <msnyder@vmware.com>
3527 * utils.c (do_fclose_cleanup) Restore local variable.
3529 2010-05-09 Doug Evans <dje@google.com>
3531 * record.c (init_record_core_ops): Rename record_core to record-core.
3533 2010-05-08 Joel Brobecker <brobecker@adacore.com>
3535 Implement task switching on pa-hpux.
3536 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
3537 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
3539 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3541 * valops.c (find_overload_match): Add missing i18n markup.
3543 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3545 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
3547 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3549 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
3550 list for the obconcat call.
3551 * mdebugread.c (parse_symbol): Likewise.
3552 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
3554 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
3555 New variable ap. Remove variables len and val.
3556 * symfile.h (obconcat): Likewise for the prototype.
3558 2010-05-07 Michael Snyder <msnyder@vmware.com>
3560 * python/python.c (execute_gdb_command): Remove unused variables.
3561 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
3562 * python/py-breakpoint.c (gdbpy_breakpoint_created):
3563 Remove unused variable.
3564 * python/py-cmd.c (cmdpy_function): Remove unused variable.
3565 (cmdpy_completer): Remove unused variable.
3566 * python/py-frame.c (frapy_find_sal): Remove unused variable.
3567 * python/py-function.c (fnpy_call): Remove unused variable.
3568 * python/py-objfile.c (objfile_to_objfile_object):
3569 Remove unused variable.
3570 * python/py-param.c (parmpy_init): Remove unused variable.
3571 * python/py-prettyprint.c (apply_varobj_pretty_printer):
3572 Remove unused variable.
3573 (gdbpy_default_visualizer): Remove unused variable.
3574 * python/py-progspace.c (pspace_to_pspace_object):
3575 Remove unused variable.
3576 * python/py-symtab.c (symtab_and_line_to_sal_object):
3577 Remove unused variable.
3578 * python/py-type.c (typy_template_argument):
3579 Remove unused variable.
3580 * python/py-value.c (valpy_string): Remove unused variable.
3581 (convert_value_from_python): Remove unused variables.
3583 2010-05-07 Michael Snyder <msnyder@vmware.com>
3585 * valops.c (value_cast_pointers): Restore unused variable 'type1',
3586 and use it to compute variable 't1'.
3588 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3590 * ada-lang.c (assign_aggregate): Remove unused variable.
3592 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
3595 * valops.c (find_overload_match): Handle fsym == NULL case.
3596 Add int no_adl argument.
3597 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
3599 Add int no_adl argument.
3600 (find_oload_champ_namespace): Add int no_adl argument.
3601 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
3603 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
3604 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
3605 Evaluate arguments and use them to perform ADL lookup.
3606 Pass no_adl argument to find_overload_match.
3607 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
3608 * cp-support.h: Added prototype for
3609 make_symbol_overload_list_namespace.
3610 * cp-support.c (make_symbol_overload_list_namespace): New function.
3611 (make_symbol_overload_list_adl_namespace): New function.
3612 (make_symbol_overload_list_adl): New function.
3613 (make_symbol_overload_list_using): Moved code to add function to
3614 overload set to make_symbol_overload_list_namespace.
3615 * c-exp.y: create UNKNOWN_CPP_NAME token.
3616 Add parse rule for ADL functions.
3617 (classify_name): Recognize an UNKNOWN_CPP_NAME.
3619 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3621 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
3624 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3626 Implement task switching on solaris targets.
3627 * sol-thread.c (thread_db_find_thread_from_tid)
3628 (sol_get_ada_task_ptid): New functions.
3629 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
3631 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3633 * remote.c (remote_query_supported_append): Use reconcat.
3634 (remote_query_supported): Install a cleanup. Use reconcat.
3636 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3638 * gdbarch.sh (qsupported): Delete.
3639 * gdbarch.h, gdbarch.c: Regenerate.
3640 * remote.c (remote_query_supported): Remove use of
3643 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3645 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
3648 2010-05-06 Michael Snyder <msnyder@vmware.com>
3650 * xml-support.c (xinclude_start_include): Delete unused variable.
3651 (xml_process_xincludes): Delete unused variable.
3652 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
3653 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
3654 (tdesc_find_arch_register): Delete unused variable.
3655 (tdesc_use_registers): Delete unused variable.
3656 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
3657 * inferior.c (print_inferior): Delete unused variable.
3658 * record.c (record_open_1): Delete unused variable.
3659 (record_restore): Delete unused variable.
3660 (cmd_record_save): Delete unused variable.
3661 * gcore.c (derive_heap_segment): Delete unused variable.
3662 (objfile_find_memory_regions): Use unused variable.
3663 * jit.c (jit_inferior_init): Delete unused variable.
3664 * progspace.c (clone_program_space): Delete unused variable.
3665 (pspace_empty_p): Delete unused variable.
3667 * frame-unwind.c (frame_unwind_find_by_frame):
3668 Delete unused variable.
3669 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
3670 * cp-support.c (mangled_name_to_comp): Delete unused variable.
3671 (method_name_from_physname): Delete unused variable.
3672 (cp_func_name): Delete unused variable.
3673 (cp_validate_operator): Delete unused variable.
3674 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
3675 Delete unused variable.
3676 * trad-frame.c (trad_frame_get_prev_register):
3677 Delete unused variable.
3678 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
3680 * serial.c (serial_for_fd): Delete unused variable.
3681 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
3682 * top.c (execute_command): Delete unused variable.
3683 (init_main): Delete unused variable.
3684 * utils.c (do_fclose_cleanup): Delete unused variable.
3685 (do_all_inferior_continuations): Delete unused variable.
3686 (initialize_utils): Delete unused variable.
3687 (internal_problem_mode): Delete unused global.
3688 * frame.c (get_prev_frame): Delete unused global.
3689 (get_frame_locals_address): Delete unused global.
3690 (get_frame_args_address): Delete unused global.
3692 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
3693 (pascal_type_print_varspec_prefix): Delete unused variable.
3694 * f-typeprint.c (f_type_print_base): Delete unused variable.
3695 (f_type_print_varspec_suffix): Delete unused variable.
3696 * m2-typeprint.c (m2_print_type): Delete unused variable.
3697 (m2_long_set): Delete unused variable.
3698 * ada-valprint.c (ada_val_print_1): Delete unused variable.
3699 * d-valprint.c (dynamic_array_type): Delete unused variable.
3700 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
3701 Delete unused variable.
3702 (f77_create_arrayprint_offset_tbl): Delete unused variable.
3703 * m2-valprint.c (m2_val_print): Delete unused variable.
3705 * ui-out.c (ui_out_field_int): Delete unused variable.
3706 (ui_out_field_fmt_int): Delete unused variable.
3707 * varobj.c (varobj_list_children): Delete unused variable.
3708 (varobj_set_value): Delete unused variable.
3709 (install_new_value_visualizer): Delete unused variable.
3710 (varobj_set_visualizer): Delete unused variable.
3711 (varobj_update): Delete unused variable.
3712 (varobj_editable_p): Delete unused variable.
3713 (c_value_of_root): Delete unused variable.
3714 (cplus_describe_child): Delete unused variable.
3716 * ada-lang.c (add_defn_to_vec): Delete unused variable.
3717 (decode_constrained_packed_array_type): Delete unused variable.
3718 (add_defn_to_vec): Delete unused variable.
3719 (symbol_completion_match): Delete unused variable.
3720 (value_tag_from_contents_and_address): Delete unused variable.
3721 (ada_evaluate_subexp): Delete unused variable.
3722 * c-lang.c (classify_type): Delete unused variable.
3723 * f-lang.c (f_printstr): Delete unused variable.
3724 * objc-lang.c (objc_printstr): Delete unused variable.
3725 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
3726 * jv-lang.c (type_from_class): ifdef unused variable.
3727 (java_class_name_from_physname): Delete unused variable.
3728 * m2-lang.c (m2_printstr): Delete unused variable.
3730 * objfiles.c (objfile_relocate): Delete unused variable.
3731 * maint.c (_initialize_maint_cmds): Delete unused variable.
3732 * demangle.c (_initialize_demangler): Delete unused variable.
3733 * corefile.c (reopen_exec_file): Delete unused variable.
3734 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
3735 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
3737 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
3738 * memattr.c (mem_delete): Delete unused variable.
3739 (invalidate_target_mem_regions): Delete unused variable.
3740 * mem-break.c (default_memory_insert_breakpoint):
3741 Delete unused variable.
3742 * target.c (target_get_osdata): Delete unused variable.
3743 * parse.c (length_of_subexp): Delete unused variable.
3744 (prefixify_subexp): Delete unused variable.
3745 (exp_iterate): Delete unused variable.
3746 * reverse.c (delete_bookmark_command): Delete unused variable.
3748 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
3749 * macroexp.c (gather_arguments): Delete unused variable.
3750 (substitute_args): Delete unused variable.
3751 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
3752 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
3753 (_initialize_gdbarch): Delete unused variable.
3754 * gdbarch.c, gdbarch.h: Regenerate.
3755 * arch-utils.c (initialize_current_architecture):
3756 Delete unused variable.
3757 (_initialize_gdbarch_utils): Delete unused variable.
3758 * gdbtypes.c (make_cv_type): Delete unused variable.
3759 (make_type_with_address_space): Delete unused variable.
3761 * linespec.c (decode_compound): Delete unused variable.
3762 * dictionary.c (iterator_next_hashed): Delete unused variable.
3763 * infcall.c (call_function_by_hand): Delete unused variable.
3764 * infcmd.c (step_1): Delete unused variable.
3765 (registers_info): Delete unused variable.
3766 (attach_command): Delete unused variable.
3767 * infrun.c (follow_exec): Delete unused variable.
3768 (handle_step_into_function_backwards): Delete unused variable.
3769 (_initialize_infrun): Delete unused variable.
3770 * stack.c (parse_frame_specification_1): Delete unused variable.
3771 (frame_info): Delete unused variable.
3772 (backtrace_command_1): Delete unused variable.
3773 (catch_info): Delete unused variable.
3775 * eval.c (evaluate_subexp_standard): Delete unused variable.
3776 * valops.c (value_cast_pointers): Delete unused variable.
3777 (value_dynamic_cast): Delete unused variable.
3778 (value_array): Delete unused variable.
3779 (find_overload_match): Delete unused variable.
3780 * valarith.c (value_subscript): Delete unused variable.
3781 (value_binop): Delete unused variable.
3782 * valprint.c (_initialize_valprint): Delete unused variable.
3783 * printcmd.c (print_command_1): Delete unused variable.
3784 (address_info): Delete unused variable.
3785 (printf_command): Delete unused variable.
3787 * auxv.c (target_auxv_search): Delete unused variable.
3788 * blockframe.c (get_frame_block): Delete unused variable.
3789 * regcache.c (regcache_cpy): Delete unused variable.
3790 (regcache_cpy_no_passthrough): Delete unused variable.
3791 * charset.c (wchar_iterate): Delete unused variable.
3792 (find_charset_names): Delete unused variable.
3793 (_initialize_charset): Delete unused variable.
3794 * disasm.c (do_mixed_source_and_assembly):
3795 Delete unused variable.
3796 * source.c (set_default_source_symtab_and_line):
3797 Delete unused variable.
3798 (set_substitute_path_command): Delete unused variable.
3799 * value.c (preserve_values): Delete unused variable.
3800 (value_from_double): Delete unused variable.
3802 2010-05-05 Michael Snyder <msnyder@vmware.com>
3804 * psymtab.c (lookup_partial_symbol): Delete unused variable.
3805 (find_last_source_symtab_from_partial): Delete unused variable.
3806 * symfile.c (place_section): Delete unused variable.
3807 (default_symfile_offsets): Delete unused variable.
3808 (get_debug_link_info): Delete unused variable.
3809 (find_separate_debug_file_by_debuglink): Delete unused variable.
3810 (add_symbol_file_command): Delete unused variable.
3811 (symfile_find_segment_sections): Delete unused variable.
3812 * symmisc.c (free_symtab): Delete unused variable.
3813 (dump_symtab_1): Delete unused variable.
3814 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
3815 (find_pc_sect_symtab): Delete unused variable.
3816 (skip_prologue_using_lineinfo): Delete unused variable.
3817 (sources_info): Delete unused variable.
3818 (completion_list_add_name): Delete unused variable.
3819 (expand_line_sal): Delete unused variable.
3821 * breakpoint.c (validate_commands_for_breakpoint):
3822 Delete unused variables.
3823 (insert_catchpoint): Delete unused variable.
3824 (update_watchpoint): Delete unused variable.
3825 (insert_bp_location): Delete unused variable.
3826 (insert_breakpoint_locations): Delete unused variable.
3827 (remove_breakpoint_1): Delete unused variable.
3828 (software_breakpoint_inserted_here_p): Delete unused variable.
3829 (watchpoints_triggered): Delete unused variable.
3830 (bpstat_check_watchpoint): Delete unused variable.
3831 (bpstat_stop_status): Delete unused variable.
3832 (print_one_breakpoint_location): Delete unused variable.
3833 (allocate_bp_location): Delete unused variable.
3834 (create_breakpoint): Delete unused variable.
3835 (watch_command_1): Delete unused variable.
3836 (catch_exception_command_1): Delete unused variable.
3837 (catch_ada_exception_command): Delete unused variable.
3838 (delete_breakpoint): Delete unused variable.
3839 (breakpoint_re_set_one): Delete unused variable.
3840 (do_enable_breakpoint): Delete unused variable.
3842 2010-05-06 Pedro Alves <pedro@codesourcery.com>
3844 * amd64-tdep.c: Include disasm.h.
3845 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
3846 (amd64_insn_length): Moved to disasm.c and renamed.
3847 (fixup_riprel): Adjust.
3848 * disasm.c (do_ui_file_delete): New.
3849 (gdb_insn_length): New.
3850 (gdb_buffered_insn_length_fprintf)
3851 (gdb_buffered_insn_length_init_dis)
3852 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
3854 * disasm.h (gdb_insn_length): Declare.
3855 (gdb_buffered_insn_length): Declare.
3857 2010-05-06 Pedro Alves <pedro@codesourcery.com>
3859 * remote.c (clear_threads_parsing_context): New.
3860 (remote_threads_info): Delete unused null_cleanup. Install a
3861 cleanup to clear the threads_parsing_context in case parsing
3864 2010-05-05 Michael Snyder <msnyder@vmware.com>
3866 * c-exp.y (parse_string_or_char): Delete unused variable.
3867 (c_lex): Delete unused variable.
3868 * cp-name-parser.y (cpname_lex): Delete unused variable.
3869 * ada-exp.y (find_primitive_type): Delete unused variable.
3870 (write_var_or_type): Delete unused variable.
3871 * jv-exp.y (java_parse): Delete unused variable.
3872 (push_expression_name): Delete unused variable.
3873 * p-exp.y (pascal_lex): Delete unused variable.
3875 2010-05-05 Pedro Alves <pedro@codesourcery.com>
3877 * remote.c (remote_threads_info): Really revert previous previous
3880 2010-05-05 Michael Snyder <msnyder@vmware.com>
3882 * elfread.c (elf_symtab_read): Delete unused variable.
3883 (find_separate_debug_file_by_buildid): Delete unused variables.
3884 (elf_symfile_read): Delete unused variable.
3886 * coffread.c (coff_symfile_read): Delete unused variables.
3888 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
3889 (read_pe_exported_syms): Delete unused variable.
3891 * stabsread.c (define_symbol): Delete unused variable.
3893 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
3894 (process_psymtab_comp_unit): Delete unused variable.
3895 (dwarf2_build_psymtabs_hard): Delete unused variable.
3896 (load_partial_comp_unit): Delete unused variable.
3897 (create_all_comp_units): Delete unused variable.
3898 (scan_partial_symbols): Delete unused variable.
3899 (add_partial_symbol): Delete unused variable.
3900 (add_partial_namespace): Delete unused variable.
3901 (add_partial_enumeration): Delete unused variable.
3902 (load_full_comp_unit): Delete unused variable.
3903 (process_full_comp_unit): Delete unused variable.
3904 (read_file_scope): Delete unused variable.
3905 (read_type_unit_scope): Delete unused variable.
3906 (process_structure_scope): Delete unused variable.
3907 (process_enumeration_scope): Delete unused variable.
3908 (read_tag_ptr_to_member_type): Delete unused variable.
3909 (read_typedef): Delete unused variable.
3910 (read_partial_die): Delete unused variable.
3911 (decode_locdesc): Delete unused variable.
3912 (zeroed_partial_die): Delete unused global variable.
3914 * tui/tui-interp.c (_initialize_tui_interp):
3915 Delete unused variable.
3916 * tui/tui-regs.c tui_display_registers_from):
3917 Delete unused variable.
3918 (tui_check_register_values): Delete unused variable.
3919 (tui_register_format): Delete unused variable.
3920 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
3921 * tui/tui-windata.c (tui_display_data_from_line):
3922 Delete unused variables.
3923 (tui_vertical_data_scroll): Delete unused variables.
3925 2010-05-05 Michael Snyder <msnyder@vmware.com>
3927 * remote.c (remote_threads_info): Revert questionable part of
3928 the previous change.
3930 2010-05-05 Michael Snyder <msnyder@vmware.com>
3932 * mi/mi-out.c (mi_table_begin): Delete unused variable.
3933 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
3934 (mi_cmd_var_list_children): Delete unused variable.
3935 (varobj_update_one): Delete unused variable.
3936 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
3937 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
3938 Delete unused variable.
3939 (mi_cmd_stack_list_variables): Delete unused variable.
3940 (list_args_or_locals): Delete unused variable.
3941 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
3942 Delete unused variables.
3943 (mi_cmd_file_list_exec_source_files): Delete unused variable.
3944 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
3945 Delete unused variable.
3946 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
3947 (mi_cmd_interpreter_exec): Delete unused variable.
3948 (mi_on_normal_stop): Delete unused variable.
3949 * mi/mi-main.c (run_one_inferior): Delete unused variable.
3950 (print_one_inferior): Delete unused variables.
3951 (mi_execute_command): Delete unused variable.
3952 (mi_cmd_execute): Delete unused variable.
3953 (timestamp): Delete unused variable.
3955 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
3956 (restore_binary_file): Delete unused variable.
3957 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
3958 * cli/cli-script.c (define_command): Delete unused variables.
3959 (recurse_read_control_structure): Delete unused variable.
3960 (script_from_file): Delete unused variable.
3961 * cli/cli-cmds.c (complete_command): Delete unused variable.
3962 (disassemble_command): Delete unused variable.
3964 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
3965 * tracepoint.c (delete_trace_variable_command):
3966 Delete unused variables.
3967 (encode_actions_1): Delete unused variables.
3968 (start_tracing): Delete unused variable.
3969 (trace_status_mi): Delete unused variable.
3970 (tfind_1): Delete unused variable.
3971 (trace_find_pc_command): Delete unused variable.
3972 (trace_find_line_command): Delete unused variables.
3973 (trace_find_range_command): Delete unused variables.
3974 (trace_find_outside_command): Delete unused variables.
3975 (parse_tracepoint_definition): Delete unused variables.
3976 (tfile_fetch_registers): Delete unused variable.
3978 * dcache.c (dcache_init): Delete unused variable.
3979 (dcache_info): Delete unused variable.
3981 * remote.c (remote_threads_info): Delete unused variable.
3982 (process_stop_reply) :Delete unused variable.
3983 (remote_get_trace_status): Delete unused variables.
3985 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
3986 (thread_from_lwp): Delete unused variable.
3987 (enable_thread_event_reporting): Delete unused variable.
3988 (check_for_thread_db): Delete unused variables.
3989 (thread_db_find_new_threads_2): Delete unused variable.
3991 * linux-fork.c (info_checkpoints_command): Delete unused variables.
3992 (checkpoint_command): Delete unused variable.
3993 (linux_fork_context): Delete unused variables.
3995 * linux-nat.c (linux_parent_pid): Delete unused global variable.
3996 (linux_tracefork_child): Delete unused variable.
3997 (linux_child_follow_fork): Delete unused variable.
3998 (linux_nat_detach): Delete unused variable.
3999 (linux_handle_extended_wait): Delete unused variable.
4000 (linux_nat_has_pending_sigint): Delete unused variable.
4001 (linux_nat_find_memory_regions): Delete unused variable.
4002 (linux_nat_make_corefile_notes): Delete unused variables.
4003 (linux_nat_info_proc_cmd): Delete unused variable.
4004 (linux_proc_pending_signals): Delete unused variable.
4005 (linux_nat_stop_lwp): Delete unused variables.
4006 (_initialize_linux_nat): Delete unused variable.
4008 * ser-pipe.c (pipe_ops): Delete unused global variable.
4010 * linux-record.c (record_linux_system_call):
4011 Delete unused variables.
4013 * corelow.c (core_xfer_partial): Delete unused variables.
4015 * solib-svr4.c (find_program_interpreter): Delete unused variable.
4016 (svr4_solib_create_inferior_hook): Add ifdef around
4017 conditionally-used variable declarations.
4019 * solib.c (solib_find): Delete unused variable.
4020 (free_so_symbols): Delete unused variable.
4021 (info_sharedlibrary_command): Delete unused variable.
4022 (reload_shared_libraries_1): Delete unused variable.
4023 (_initialize_solib): Delete unused variable.
4025 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
4026 (i386_collect_xstateregset): Delete unused variable.
4027 * i387-tdep.c (i387_print_float_info): Delete unused variable.
4029 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
4030 Delete unused variable 'type'.
4032 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4034 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
4035 ada-lang.c: Remove comment mentioning these macros.
4036 * m2-exp.y: Delete commented out code.
4038 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4040 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
4042 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
4044 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4046 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
4047 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
4049 (cleanup_kernel_helper_return): Likewise.
4050 * arm-tdep.c (copy_unmodified): Likewise.
4051 (copy_preload): Likewise.
4052 (copy_copro_load_store): Likewise.
4053 (cleanup_branch): Likewise.
4054 (copy_b_bl_blx): Likewise.
4055 (copy_bx_blx_reg): Likewise.
4056 (copy_alu_imm): Likewise.
4057 (copy_alu_reg): Likewise.
4058 (copy_alu_shifted_reg): Likewise.
4059 (cleanup_load): Likewise.
4060 (cleanup_store): Likewise.
4061 (cleanup_block_load_pc): Likewise.
4062 (cleanup_svc): Likewise.
4063 (copy_undef): Likewise.
4064 (copy_unpred): Likewise.
4065 * remote.c (register_remote_support_xml): Likewise.
4067 2010-05-05 Hui Zhu <teawater@gmail.com>
4069 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
4071 2010-05-04 Mark Kettenis <kettenis@gnu.org>
4073 * remote.c (register_remote_support_xml)
4074 (remote_query_supported_append, remote_query_supported): Add cast
4075 to NULL used as sentinel.
4076 * tracepoint.c (tvariables_info_1): Likewise.
4077 * utils.c (add_internal_problem_command): Likewise.
4079 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4081 * dwarf2loc.c (read_pieced_value, write_pieced_value,
4082 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
4083 registers gracefully.
4085 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4087 * exec.c (print_section_info): Display entry point without arch
4090 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4093 * printcmd.c (x_command): Only dereference once implicitly for
4096 2010-05-03 Doug Evans <dje@google.com>
4098 * event-loop.c (gdb_timer): Delete unused global.
4099 (create_timer): Update.
4101 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4103 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
4104 CURRENT->DECLARATION case.
4105 * cp-support.h (struct using_direct): Provide extended comment.
4107 2010-05-03 Mark Kettenis <kettenis@gnu.org>
4109 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
4110 HPPABSD_SIZEOF_GREGS.
4111 (HPPAOBSD_SIZEOF_FPREGS): New define.
4112 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
4113 (hppaobsd_supply_fpregset): New function.
4114 (hppaobsd_gregset): Renamed from hppabsd_gregset.
4115 (hppaobsd_fpregset): New variable.
4116 (hppaobsd_regset_from_core_section): Handle floating-point registers.
4117 (_initialize_hppabsd_tdep): Remove spurious blank line.
4119 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4122 * p-valprint.c (pascal_value_print): Always dereference a value with
4123 type code TYPE_CODE_REF.
4125 2010-05-03 Pedro Alves <pedro@codesourcery.com>
4127 * remote.c (remote_notice_signals): New.
4128 (remote_start_remote): In non-stop mode, update the remote end on
4129 which signals it can silently pass.
4130 (init_remote_ops): Install remote_notice_signals.
4132 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4134 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
4135 * command.h (error_no_arg): ... here. Remove NORETURN, change
4136 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4137 * defs.h (NORETURN, ATTR_NORETURN): Remove.
4138 (perror_with_name, verror, error, error_stream, vfatal, fatal)
4139 (internal_verror, internal_error, nomem): Remove NORETURN, change
4140 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4141 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
4142 (throw_vfatal, throw_error): Remove NORETURN.
4143 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
4144 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
4145 (throw_error, deprecated_throw_reason): Remove NORETURN, change
4146 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4147 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
4148 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
4150 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
4151 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
4153 * target.c (tcomplain): Likewise.
4154 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
4156 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
4157 (internal_error, perror_with_name, nomem): Remove NORETURN.
4158 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
4161 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4163 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4164 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
4165 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
4166 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4167 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
4168 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4169 * complaints.h (complaint, internal_complaint): Likewise.
4170 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
4171 (ATTR_FORMAT): Remove.
4172 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
4173 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
4174 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
4175 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
4176 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
4177 (internal_error, internal_vwarning, internal_warning, warning)
4178 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4179 * disasm.c (fprintf_disasm): Likewise.
4180 * exceptions.c (throw_it): Likewise.
4181 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
4182 (throw_error): Likewise.
4183 * language.h (type_error, range_error): Likewise.
4184 * linespec.c (cplusplus_error): Likewise.
4185 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
4186 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
4187 * monitor.c (monitor_debug): Likewise.
4188 * parser-defs.h (parser_fprintf): Likewise.
4189 * serial.h (serial_printf): Likewise.
4190 * tui/tui-hooks.c (tui_query_hook): Likewise.
4191 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
4192 (uo_message): Likewise.
4193 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
4194 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
4196 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
4198 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4200 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
4201 (cli_table_header, cli_begin, cli_end, cli_field_int)
4202 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
4203 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
4204 Delete forward declarations.
4205 (cli_ui_out_impl): Move below the callbacks.
4206 (_initialize_cli_out): Delete.
4208 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4210 * README: Use consistent `GDB' and `GDBserver' spellings.
4212 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4214 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
4216 2010-05-01 Pedro Alves <pedro@codesourcery.com>
4218 * infrun.c (prepare_for_detach): In non-stop, context switch to
4219 the thread that got the event before handling the event.
4221 2010-04-30 Tom Tromey <tromey@redhat.com>
4223 * symtab.c (symbol_set_names): Fix typo.
4225 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4227 * python/py-param.c (parm_constants): Avoid ARI warning
4228 by adding ARI comment.
4229 (parmpy_init): Likewise.
4231 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4233 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
4234 and created type for re-use.
4236 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4238 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
4240 2010-04-29 Doug Evans <dje@google.com>
4242 * ser-base.h (reschedule): Delete prototype.
4243 * ser-base.c (reschedule): Make static.
4245 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4247 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
4248 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
4249 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
4251 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
4254 2010-04-29 Pedro Alves <pedro@codesourcery.com>
4258 * regcache.c (registers_changed): Rename to ...
4259 (registers_changed_ptid): ... this, and only delete register cache
4260 entries matching the ptid filter argument.
4261 (registers_changed): Reimplement on top of registers_changed_ptid.
4262 * regcache.h (registers_changed_ptid): Declare.
4263 * target.c (target_resume): Flush register caches.
4265 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
4266 Tom Tromey <tromey@redhat.com>
4267 Thiago Jung Bauermann <bauerman@br.ibm.com>
4269 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
4270 (SUBDIR_PYTHON_SRCS): Likewise.
4271 (py-parameter.o): New rule.
4272 * python/py-parameter.c: New file.
4273 * python/python-internal.h (gdbpy_initialize_parameter)
4274 (gdbpy_parameter, gdbpy_parameter_value)
4275 (gdbpy_parse_command_name): Declare.
4276 * python/py-cmd.c (parse_command_name): Rename to
4277 gdbpy_parse_command_name.
4278 (gdbpy_parse_command_name): Accept a starting list parameter and
4280 (cmdpy_init): Use gdbpy_parse_command_name.
4281 * python/python.c (parameter_to_python): Rename to
4282 gdbpy_parameter_to_python. Accept enum var_types and value.
4283 (gdbpy_parameter): Use gdbpy_parameter_value.
4284 (_initialize_python): Call gdbpy_initialize_parameters.
4286 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4288 * MAINTAINERS: Add myself for write after approval privileges.
4290 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
4293 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
4294 (COMMON_OBS): Add d-lang.o d-valprint.o.
4295 (HFILES_NO_SRCDIR): Add d-lang.h.
4296 * NEWS: Mention D language support.
4297 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
4298 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
4299 * d-lang.c: New file.
4300 * d-lang.h: New file.
4301 * d-valprint.c: New file.
4302 * defs.h (enum language): Add language_d.
4303 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
4304 * language.c (binop_result_type, integral_type, character_type)
4305 (string_type, boolean_type, structured_type): Add language_d.
4306 * symfile.c (init_filename_language_table): Add language_d.
4307 * symtab.c: Include d-lang.h.
4308 (symbol_init_language_specific, symbol_find_demangled_name)
4309 (symbol_natural_name, lookup_symbol_in_language)
4310 (symbol_demangled_name, symbol_matches_domain): Add language_d.
4312 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4314 * solib-svr4.c (solib_svr4_r_map): Expand function description.
4316 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4318 * symfile.c (init_filename_language_table): Register .dg files
4321 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4323 * gdbtypes.h (struct main_type): Expand comment about target_type
4326 2010-04-27 Pedro Alves <pedro@codesourcery.com>
4327 Tristan Gingold <gingold@adacore.com>
4329 * symfile.c (reread_symbols): Also search for file in libraries.
4332 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4334 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
4335 in terms of configuration.
4337 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4339 * objfiles.c: Include solist.h.
4340 (free_all_objfiles): New variable so. Check stale solist objfiles.
4341 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
4342 and no_shared_libraries.
4344 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4347 * python/py-auto-load.c (source_section_scripts): Remove trailing
4348 new-line in i18n string.
4350 2010-04-26 Doug Evans <dje@google.com>
4352 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
4354 2010-04-26 Tom Tromey <tromey@redhat.com>
4356 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
4359 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4361 Removal of config/i386/nm-i386sol2.h native configuration file.
4362 * config/i386/nm-i386sol2.h: Remove file.
4363 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
4364 * config/i386/sol2-64.mh: Idem.
4365 * config/djgpp/fnchange.lst: Remove reference to that file.
4366 * Makefile.in (HFILES_NO_SRCDIR): Idem.
4368 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4370 PR breakpoints/11531.
4371 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
4372 macro definition and related comment.
4373 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
4374 (resume): Remove code and comment related to this macro.
4376 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4378 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
4381 2010-04-24 Pedro Alves <pedro@codesourcery.com>
4383 * defs.h: Adjust comment.
4384 * filesystem.h, filesystem.c: New files.
4385 * Makefile.in (SFILES): Add filesystem.c.
4386 (COMMON_OBS): Add filesystem.o.
4387 * solib.c (solib_find): Handle DOS-based filesystems. Handle
4388 different target and host path flavours.
4389 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4390 has_dos_based_file_system on the gdbarch.
4391 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
4392 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
4393 * i386-tdep.c (i386_go32_init_abi): Ditto.
4394 * gdbarch.sh (has_dos_based_file_system): New.
4395 * gdbarch.h, gdbarch.c: Regenerate.
4396 * NEWS: Mention improved support for remote targets with DOS-based
4397 filesystems. Mention new `set/show target-file-system-kind'
4400 2010-04-23 Stan Shebs <stan@codesourcery.com>
4402 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
4404 (struct agent_reqs): Remove.
4405 (ax_reg_mask): Declare.
4406 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
4407 (free_agent_expr): Free reg_mask.
4408 (ax_print): Add scope and register mask info.
4409 (ax_reqs): Remove agent_reqs argument, use agent expression
4410 fields, and move part of register mask computation to...
4411 (ax_reg_mask): New function.
4412 * ax-gdb.c (gen_trace_static_fields): Call it.
4413 (gen_traced_pop): Ditto.
4414 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
4415 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
4416 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
4417 (gen_eval_for_expr): Ditto, and require an rvalue.
4418 (agent_command): Call ax_reqs.
4419 (agent_eval_command): Ditto.
4420 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
4421 (validate_action_line): Ditto.
4422 (collect_symbol): Ditto.
4423 (encode_actions_1): Ditto.
4425 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
4426 Paul Pluzhnikov <ppluzhnikov@google.com>
4427 Jan Kratochvil <jan.kratochvil@redhat.com>
4429 Fix deadlock on looped list of loaded shared objects.
4430 * solib-svr4.c (LM_PREV): New function.
4431 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
4432 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
4433 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
4434 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
4436 2010-04-23 Doug Evans <dje@google.com>
4438 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
4440 * configure: Regenerate.
4441 * main.c: #include "python/python.h".
4442 (captured_main): Defer loading auto-loaded scripts until after
4443 local_gdbinit has been sourced.
4444 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
4445 (load_auto_scripts_for_objfile): New function.
4446 (auto_load_new_objfile): Call it.
4447 * python/python.h (gdbpy_global_auto_load): Declare.
4448 (load_auto_scripts_for_objfile): Declare.
4450 Add support for auto-loading scripts from .debug_gdb_scripts section.
4451 * NEWS: Add entry for .debug_gdb_scripts.
4452 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
4453 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
4454 (py-auto-load.o): New rule.
4455 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
4456 * cli/cli-cmds.h (find_and_open_script): Update prototype.
4457 * python/py-auto-load.c: New file.
4458 * python/python-internal.h: #include <stdio.h>.
4459 (set_python_list, show_python_list): Declare.
4460 (gdbpy_initialize_auto_load): Declare.
4461 (source_python_script_for_objfile): Declare.
4462 * python/python.c: Remove #include of observer.h.
4463 (gdbpy_auto_load): Moved to py-auto-load.c.
4464 (GDBPY_AUTO_FILENAME): Ditto.
4465 (gdbpy_new_objfile): Delete.
4466 (source_python_script_for_objfile): New function.
4467 (set_python_list, show_python_list): Make externally visible.
4468 (_initialize_python): Move "auto-load" command to py-auto-load.c
4469 and observer_attach_new_objfile to py-auto-load.c.
4471 2010-04-23 Jerome Guitton <guitton@adacore.com>
4473 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
4474 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
4475 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
4477 (alpha_heuristic_analyze_probing_loop): New function.
4478 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
4479 and handle cases when a stack probe loop is generated.
4480 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
4481 (alpha_mdebug_max_frame_size_exceeded): New function.
4482 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
4483 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
4484 Return 0 when the maximum debuggable frame size has been exceeded.
4486 2010-04-23 Joel Brobecker <brobecker@adacore.com>
4489 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
4491 2010-04-20 Chris Moller <cmoller@redhat.com>
4495 * symtab.c (rbreak_command): Added code to include a filename
4496 specification in the rbreak argument.
4497 * NEWS: Added a brief description of filename-qualified rbreak.
4499 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4501 Fix crashes on dangling display expressions.
4502 * ada-lang.c (ada_operator_check): New function.
4503 (ada_exp_descriptor): Fill-in the field operator_check.
4504 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
4505 * jv-lang.c (exp_descriptor_java): Likewise.
4506 * m2-lang.c (exp_descriptor_modula2): Likewise.
4507 * scm-lang.c (exp_descriptor_scm): Likewise.
4508 * parse.c (exp_descriptor_standard): Likewise.
4509 (operator_check_standard): New function.
4510 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
4511 * parser-defs.h (struct exp_descriptor): New field operator_check.
4512 (operator_check_standard, exp_uses_objfile): New declarations.
4513 * printcmd.c: Remove the inclusion of solib.h.
4514 (display_uses_solib_p): Remove the function.
4515 (clear_dangling_display_expressions): Call lookup_objfile_from_block
4516 and exp_uses_objfile instead of display_uses_solib_p.
4517 * solist.h (struct so_list) <objfile>: New comment.
4518 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
4519 * symtab.h (lookup_objfile_from_block): New declaration.
4520 (struct general_symbol_info) <obj_section>: Extend the comment.
4522 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4523 Thiago Jung Bauermann <bauerman@br.ibm.com>
4525 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
4526 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
4527 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
4528 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
4529 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
4530 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
4531 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
4532 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
4533 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
4534 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
4535 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
4536 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
4537 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
4538 Define, in case <ptrace.h> doesn't provide it.
4539 (booke_debug_info): New variable.
4540 (max_slots_number): Ditto.
4541 (hw_break_tuple): New struct.
4542 (thread_points): Ditto.
4543 (ppc_threads): New variable.
4544 (PPC_DEBUG_CURRENT_VERSION): New define.
4545 (have_ptrace_new_debug_booke): New function.
4546 (ppc_linux_check_watch_resources): Renamed to ...
4547 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
4548 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
4549 (booke_cmp_hw_point): New function.
4550 (booke_find_thread_points_by_tid): Ditto.
4551 (booke_insert_point): Ditto.
4552 (booke_remove_point): Ditto.
4553 (ppc_linux_insert_hw_breakpoint): Ditto.
4554 (ppc_linux_remove_hw_breakpoint): Ditto.
4555 (get_trigger_type): Ditto.
4556 (ppc_linux_insert_watchpoint): Handle BookE processors.
4557 (ppc_linux_remove_watchpoint): Ditto.
4558 (ppc_linux_new_thread): Ditto.
4559 (ppc_linux_thread_exit): New function..
4560 (ppc_linux_stopped_data_address): Handle BookE processors.
4561 (ppc_linux_watchpoint_addr_within_range): Ditto.
4562 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
4563 to_remove_hw_breakpoint fields of the target operations struct.
4564 Add observe for the thread_exit event.
4566 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4568 * i386-linux-nat.c (regmap): Removed.
4569 (fetch_register): Replace regmap with
4570 i386_linux_gregset_reg_offset.
4571 (store_register): Likewise.
4572 (supply_gregset): Likewise.
4573 (fill_gregset): Likewise.
4575 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
4578 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
4580 2010-04-22 Chris Moller <cmoller@redhat.com>
4582 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4583 method of popping recursion-detection stack with a method based on
4584 obstack_object_size(). (Similar to the PR9167 patch below, but for
4585 the static array obstack rather than the static member obstack.)
4587 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4589 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
4590 (_initialize_amd64_linux_nat): Replace
4591 amd64_linux_gregset64_reg_offset with
4592 amd64_linux_gregset_reg_offset.
4594 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
4597 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
4599 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4602 * stabsread.c (set_length_in_type_chain): New function.
4603 (read_struct_type): Call set_length_in_type_chain function.
4604 (read_enum_type): Idem.
4606 2010-04-21 Stan Shebs <stan@codesourcery.com>
4607 Nathan Sidwell <nathan@codesourcery.com>
4609 * tracepoint.c (trace_save): Open in binary mode.
4611 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4613 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
4615 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
4616 builtin_char32 fields.
4617 * printcmd.c (decode_format): Set char size to '\0'
4618 for strings unless explicit size is given.
4619 (print_formatted): Correct calculation of NEXT_ADDRESS
4620 for 16 or 32 bit strings.
4621 (do_examine): Do not force byte size for strings.
4622 Use builtin_char16 and builtin_char32 types to display
4623 16 or 32 bit-wide strings.
4624 (x_command): Set LAST_SIZE to 'b' for string type.
4626 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
4629 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4632 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
4633 there is no .reg-xstate section.
4634 (i386_linux_core_read_description): Check XCR0 first.
4636 2010-04-21 Mike Frysinger <vapier@gentoo.org>
4638 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
4641 2010-04-21 Chris Moller <cmoller@redhat.com>
4644 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4645 method of popping recursion-detection stack with a method based on
4646 obstack_object_size().
4648 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4651 * p-valprint.c (pascal_val_print): Fix default printing of integer
4654 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4656 Fix compilation warning on gcc-4.1.2.
4657 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
4658 local variable`pc' to zero.
4660 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4662 Implement thread support with core files on alpha-tru64.
4663 * dec-thread.c (dec_thread_find_new_threads): New function,
4664 extracted from resync_thread_list.
4665 (resync_thread_list): Add OPS parameter. Replace extracted-out
4666 code by call to dec_thread_find_new_threads.
4667 (dec_thread_wait): Update call to resync_thread_list.
4668 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
4670 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4672 * ada-lang.c (value_pointer): New function.
4673 (make_array_descriptor): Call value_pointer to convert addresses to
4676 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4678 * rs6000-aix-tdep.c: #include exceptions.h.
4679 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
4680 while reading the memory at ADDR, then ADDR cannot be a function
4683 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4685 * ada-typeprint.c (ada_print_typedef): New function.
4686 * ada-lang.h (ada_print_typedef): Add declaration.
4687 * ada-lang.c (ada_language_defn): set la_print_typdef field
4688 to ada_print_typedef.
4690 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4692 * procfs.c (procfs_address_to_host_pointer): Only define when used.
4694 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4696 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
4697 (iterate_over_mappings): Adjust function profile. Add declaration.
4698 (insert_dbx_link_bpt_in_region, info_mappings_callback):
4701 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4703 * procfs.c (solib_mappings_callback): Move function up to avoid
4706 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4708 * procfs.c (find_signalled_thread, find_stop_signal): Move
4709 these functions down to define them only when used.
4711 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4713 * valprint.c (common_val_print): Fix the value before extracting
4715 * ada-lang.c (ada_to_fixed_value): Make this function extern.
4716 * ada-lang.h (ada_to_fixed_value): New function declaration.
4717 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
4718 to avoid code duplication and fix a bug in the handling of
4719 fixed types contents.
4721 2010-04-20 Tom Tromey <tromey@redhat.com>
4723 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
4724 (read_partial_die): Likewise.
4725 (dwarf_attr_name): Likewise.
4727 2010-04-20 Chris Moller <cmoller@redhat.com>
4731 * cp-valprint.c (global): Adding new static array recursion
4733 (cp_print_value_fields, cp_print_static_field): Added new static
4734 array recursion detection code.
4736 2010-04-20 Mark Kettenis <kettenis@gnu.org>
4738 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
4739 general-purpose register set should be 68 instead of 144.
4740 (i386_linux_sse_regset_sections): Likewise.
4741 (i386_linux_avx_regset_sections): Likewise.
4743 2010-04-20 Stan Shebs <stan@codesourcery.com>
4744 Nathan Sidwell <nathan@codesourcery.com>
4746 * dwarf2loc.c (struct axs_var_loc): New struct.
4747 (dwarf2_tracepoint_var_loc): New function.
4748 (dwarf2_tracepoint_var_access): New function.
4749 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
4751 (locexpr_describe_location_piece): New function.
4752 (locexpr_describe_location_1): New function.
4753 (locexpr_describe_location): Call it, update signature.
4754 (loclist_describe_location): Rewrite to loop over locations,
4756 * symtab.h (struct symbol_computed_ops): Add address to
4757 describe_location arguments, return void.
4758 * printcmd.c (address_info): Get context PC, pass to computed
4759 location description.
4760 * tracepoint.c (scope_info): Ditto.
4761 * ax-gdb.c (trace_kludge): Export.
4763 2010-04-20 Tom Tromey <tromey@redhat.com>
4765 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
4766 (struct dwarf2_cie) <segment_size>: New field.
4767 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
4768 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
4770 (read_attribute_value): Handle DW_FORM_flag_present,
4771 DW_FORM_sec_offset, DW_FORM_exprloc.
4772 (dump_die_shallow): Likewise.
4773 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
4774 (dwarf2_const_value): Handle DW_FORM_exprloc.
4775 (attr_form_is_block): Likewise.
4776 (struct line_header) <maximum_ops_per_instruction>: New field.
4777 (dwarf_decode_line_header): Set new field.
4778 (dwarf_decode_lines): Handle new field.
4780 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4782 * f-exp.y: Add new production to recognize the `logical*8' type.
4783 (LOGICAL_S8_KEYWORD): New token.
4784 * f-lang.c (enum f_primitive_types)
4785 <f_primitive_type_logical_s8>: New field.
4786 (f_language_arch_info): Handling `logical*8' type.
4787 (build_fortran_types): Building `logical*8' type.
4788 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
4790 2010-04-19 Doug Evans <dje@google.com>
4792 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
4793 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
4794 (pipe_close): Ditto.
4796 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4798 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
4800 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4802 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
4803 type to void function.
4805 2010-04-19 Stan Shebs <stan@codesourcery.com>
4806 Vladimir Prus <vladimir@codesourcery.com>
4808 * tracepoint.c (tfind_1): Add missing newline, report exit from
4810 * target.c (update_current_target): Make default
4811 to_trace_find return -1.
4813 2010-04-19 Mike Frysinger <vapier@gentoo.org>
4815 * objc-lang.c (find_methods): Move symname check up.
4817 2010-04-19 Pedro Alves <pedro@codesourcery.com>
4819 * ada-lang.c (print_recreate_exception)
4820 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
4821 not "catch unhandled".
4823 2010-04-19 Pedro Alves <pedro@codesourcery.com>
4825 PR breakpoints/8554.
4827 Implement `save-breakpoints'.
4829 * breakpoint.c (save_cmdlist): New.
4830 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
4832 (print_recreate_catch_fork): New.
4833 (catch_fork_breakpoint_ops): Install it.
4834 (print_recreate_catch_vfork): New.
4835 (catch_vfork_breakpoint_ops): Install it.
4836 (print_recreate_catch_syscall): New.
4837 (catch_syscall_breakpoint_ops): Install it.
4838 (print_recreate_catch_exec): New.
4839 (catch_exec_breakpoint_ops): Install it.
4840 (print_recreate_exception_catchpoint): New.
4841 (gnu_v3_exception_catchpoint_ops): Install it.
4842 (save_breakpoints): New, based on tracepoint_save_command, but
4843 handle all breakpoint types.
4844 (save_breakpoints_command): New.
4845 (tracepoint_save_command): Rename to...
4846 (save_tracepoints_command): ... this, and reimplement using
4848 (save_command): New.
4849 (_initialize_breakpoints): Install the "save" command prefix.
4850 Install the "save breakpoints" command. Make "save-tracepoints" a
4851 deprecated alias for "save tracepoints".
4852 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
4853 * ada-lang.c (print_recreate_exception): New.
4854 (print_recreate_catch_exception): New.
4855 (catch_exception_breakpoint_ops): Install it.
4856 (print_recreate_catch_exception_unhandled): New.
4857 (catch_exception_unhandled_breakpoint_ops): Install it.
4858 (print_recreate_catch_assert): New.
4859 (catch_assert_breakpoint_ops): Install it.
4861 * NEWS: Mention the new `save breakpoints' command. Mention the
4862 new `save tracepoints' alias and that `save-tracepoints' is now
4865 2010-04-18 Pedro Alves <pedro@codesourcery.com>
4869 * tui/tui-out.c: Include cli-out.h.
4870 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4871 (tui_begin, tui_end, tui_field_int, tui_field_skip)
4872 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
4873 (tui_message, tui_wrap_hint, tui_flush): Delete forward
4875 (struct ui_out_data): Rename to...
4876 (struct tui_ui_out_data): ... this. Remove `stream' and
4877 `suppress_output' fields, and inherit cli_ui_out_data.
4878 (tui_out_data): New typedef.
4879 (tui_ui_out_impl): Don't initialize fields staticaly.
4880 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4881 (tui_begin, tui_end): Delete.
4882 (tui_field_int): Adjust to delegate most work to the base type.
4883 (tui_field_skip): Delete.
4884 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
4885 delegate most work to the base type.
4886 (tui_spaces): Delete.
4887 (tui_text): Adjust to delegate most work to the base type.
4888 (tui_message): Delete.
4889 (tui_wrap_hint): Delete.
4890 (tui_flush): Delete.
4891 (out_field_fmt): Delete.
4892 (field_separator): Delete.
4893 (tui_out_new): Adjust to initialize the base type.
4894 (_initialize_tui_out): Initialize tui_ui_out_impl.
4895 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
4897 (cli_out_data): Adjust.
4898 (cli_ui_out_impl): Make extern.
4899 (cli_table_header, cli_field_int, cli_field_skip): Use
4900 uo_field_string instead of cli_field_string.
4901 (cli_redirect): Adjust to use cli_out_data.
4902 (cli_out_data_ctor): New.
4903 (cli_out_new): Use it.
4904 * cli-out.h (struct ui_file): Remove forward declaration.
4905 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
4906 (cli_ui_out_impl): Declare.
4907 (cli_out_data_ctor): Declare.
4908 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
4909 (uo_field_string): No longer static.
4910 (ui_out_data): Change return type to void pointer.
4911 (ui_out_new): Change `data' parameter type to void pointer.
4912 * ui-out.h (struct ui_out_data): Don't forward declare.
4913 (ui_out_data): Change return type to void pointer.
4914 (ui_out_new): Change `data' parameter type to void pointer.
4915 (uo_field_string): Declare.
4917 2010-04-17 Pedro Alves <pedro@codesourcery.com>
4919 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
4920 instead of always false.
4922 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
4925 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
4928 2010-04-17 Pedro Alves <pedro@codesourcery.com>
4930 * breakpoint.c (watchpoints_triggered): Use
4931 is_hardware_watchpoint.
4932 (watchpoints_triggered): Ditto.
4933 (bpstat_check_location): Use is_watchpoint and
4934 is_hardware_watchpoint.
4935 (bpstat_check_watchpoint): Use is_watchpoint and
4936 is_hardware_watchpoint.
4937 (bpstat_stop_status): Fix comment.
4938 (user_settable_breakpoint): Use is_watchpoint.
4939 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
4940 (disable_watchpoints_before_interactive_call_start): Use
4942 (enable_watchpoints_after_interactive_call_stop): Use
4944 (clear_command): Use is_watchpoint.
4945 (do_enable_breakpoint): Use is_watchpoint.
4947 2010-04-16 Mike Frysinger <vapier@gentoo.org>
4949 * solib-frv.c (enable_break1_done): Delete.
4950 (enable_break2): Do not check enable_break1_done. Move the
4951 enable_break2_done setting and call to
4952 remove_solib_event_breakpoints() to the end. Return without
4953 warning when the contents of _dl_debug_addr are 0.
4954 (enable_break): Do not set enable_break1_done.
4955 (frv_clear_solib): Likewise.
4957 2010-04-16 Kevin Buettner <kevinb@redhat.com>
4959 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
4960 instead of an error if no PLT entry is found. Return a
4961 potentially useful result.
4962 (m32c_m16c_pointer_to_address): Add code to search for function
4963 address when no .plt entry is found.
4965 2010-04-16 Stan Shebs <stan@codesourcery.com>
4967 * tracepoint.c (trace_variable_command): Run a cleanup.
4969 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
4971 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
4973 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
4975 Support for Windows OS Thread Information Block.
4976 * NEWS: Document new feature.
4977 * remote.c (PACKET_qGetTIBAddr): New enum element.
4978 (remote_get_tib_address): New function.
4979 (init_remote_ops): Set to_get_tib_address field
4980 to remote_get_tib_address.
4981 (_initialize_remote): Add add_packet_config_cmd
4982 for PACKET_qGetTIBAddr.
4983 * target.c (update_current_target): Set default value for
4984 new to_get_tib_address field.
4985 * target.h (target_ops): New field to_get_tib_address.
4986 (target_get_tib_address): New macro.
4987 * windows-nat.c (thread_info): Add thread_local_base field.
4988 (windows_add_thread): Add tlb argument of type 'void *'.
4989 (fake_create_process): Adapt windows_add_thread call.
4990 (get_windows_debug_event): Idem.
4991 (windows_get_tib_address): New function.
4992 (init_windows_ops): Set to_get_tib_address field
4993 to remote_get_tib_address.
4994 (_initialize_windows_nat): Replace info_w32_cmdlist
4995 initialization by a call to init_w32_command_list.
4996 (info_w32_command, info_w32_cmdlist): Removed from here...
4997 to windows-tdep.c file.
4998 * windows-tdep.h (info_w32_cmdlist): Declare.
4999 (init_w32_command_list): New external function
5001 * windows-tdep.c: Add several headers.
5002 (info_w32_cmdlist): to here, made global.
5003 (thread_information_32): New struct.
5004 (thread_information_64): New struct.
5005 (TIB_NAME): New char array.
5006 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
5007 (maint_display_all_tib): New static variable.
5008 (windows_get_tlb_type): New function.
5009 (tlb_value_read, tlb_value_write): New functions.
5010 (tlb_value_funcs): New static struct.
5011 (tlb_make_value): New function.
5012 (display_one_tib): New function.
5013 (display_tib): New function.
5014 (show_maint_show_all_tib):New function.
5015 (info_w32_command): Moved from windows-nat.c.
5016 (init_w32_command_list): New function.
5017 (_initialize_windows_tdep): New function.
5018 New "maint set/show show-all-tib" command
5019 New "$_tlb" internal variable.
5021 2010-04-16 Joel Brobecker <brobecker@adacore.com>
5023 * tui/tui-regs.c (tui_display_register): Add comment about
5025 * tui/tui-stack.c (tui_show_locator_content): Ditto.
5027 2010-04-15 Stan Shebs <stan@codesourcery.com>
5029 * frame.c: Include tracepoint.h.
5030 (get_current_frame): Allow a trace frame to be an alternate source
5031 of stack frame data.
5032 * tracepoint.c (tfind_1): Don't try to get current stack frame if
5035 2010-04-15 Pedro Alves <pedro@codesourcery.com>
5037 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
5039 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
5041 2010-04-15 Doug Evans <dje@google.com>
5043 * NEWS: Add entry for python program space support.
5044 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
5045 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
5046 (py-progspace.o): New rule.
5047 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
5049 (find_pretty_printer_from_progspace): New function.
5050 (find_pretty_printer_from_gdb): New function.
5051 (find_pretty_printer): Rewrite.
5052 * python/py-progspace.c: New file.
5053 * python/python-internal.h (program_space): Add forward decl.
5054 (pspace_to_pspace_object, pspy_get_printers): Declare.
5055 (gdbpy_initialize_pspace): Declare.
5056 * python/python.c: #include "progspace.h".
5057 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
5058 (_initialize_python): Call gdbpy_initialize_pspace.
5059 (GdbMethods): Add current_progspace, progspaces.
5061 Add -s option to source command.
5062 * NEWS: Document new option.
5063 * cli/cli-cmds.c (find_and_open_script): Add function comment.
5064 Delete from_tty and cleanupp args. Split filep arg into file and
5065 full_pathp. New arg search_path.
5066 (source_script_from_stream): New function.
5067 (source_script_with_search): New function.
5068 (source_script): Rewrite.
5069 (source_command): Parse "-s" option.
5070 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
5071 * python/python.c (source_python_script): Make file arg a const char *.
5072 Don't call fclose, leave for caller.
5073 * python/python.h (source_python_script): Update.
5075 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5076 Pedro Alves <pedro@codesourcery.com>
5078 Avoid rereading shared libraries that haven't changed.
5080 * solib.c (free_so_symbols): New function, from ...
5081 (free_so): ... here. Call it.
5082 (solib_read_symbols): Don't warn here if symbols have already been
5084 (solib_add): Warn here instead, if a pattern was specified.
5085 (reload_shared_libraries_1): New.
5086 (reload_shared_libraries): Rewrite to not fetch the library list.
5088 2010-04-14 Doug Evans <dje@google.com>
5090 * source.c (openp): Strip DOS drive letter if present before
5091 concatenating string to search path.
5093 2010-04-14 Pedro Alves <pedro@codesourcery.com>
5095 * objfiles.h (gdb_bfd_close_or_warn): Declare.
5096 * objfiles.c (gdb_bfd_close_or_warn): New.
5097 * corelow.c: Include objfiles.h
5098 (core_close): Use gdb_bfd_close_or_warn.
5099 * elfread.c (build_id_verify): Ditto.
5100 * exec.c (exec_close, exec_close_1): Ditto.
5102 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5103 Pedro Alves <pedro@codesourcery.com>
5105 Group errors for many missing shared libraries.
5107 * solist.h (struct so_list): Remove from_tty.
5108 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
5109 (solib_map_sections): Take so_list argument. Return 0 if we
5110 failed to open a BFD. Add target sections here.
5111 (symbol_add_stub): Delete.
5112 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
5113 not from_tty copied from the so_list. Don't warn a second time
5114 for a missing library.
5115 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
5116 add to the section table here. Print out a single warning for all
5118 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
5121 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5123 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
5124 error/warning messages. Capitalize and use complete sentences.
5125 (blpy_block_syms_iternext): Likewise.
5126 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
5127 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
5128 (frame_info_to_frame_object, frapy_read_var)
5129 (gdbpy_frame_stop_reason_string): Likewise.
5130 * python/py-lazy-string.c (stpy_convert_to_value)
5131 (gdbpy_create_lazy_string_object): Likewise.
5132 * python/py-objfile.c (objfpy_set_printers): Likewise.
5133 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
5134 * python/python.c (parameter_to_python): Likewise.
5135 * python/py-type.c (typy_range, typy_target): Likewise.
5136 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
5137 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
5140 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5144 * python/py-prettyprint.c (pretty_print_one_value): Test for
5146 (print_string_repr): Test for Py_None. Set flags accordingly.
5147 Return value depending on return type.
5148 (print_children): Take a value indicating whether data was printed
5149 before this function was called. Alter output accordingly.
5150 (apply_val_pretty_printer): Capture return value from
5151 print_string_repr and pass to print_children.
5153 2010-04-13 Mark Kettenis <kettenis@gnu.org>
5156 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
5157 register note sections.
5158 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
5160 (i386_linux_init_abi): Install list of supported register note
5161 sections that matches the target description.
5163 2010-04-13 Pedro Alves <pedro@codesourcery.com>
5165 * remote.c (remote_get_noisy_reply): Don't error out on empty
5167 (remote_start_remote): Update and merge tracepoints and trace
5168 state variables as long as the target supports tracepoints.
5169 (remote_trace_init): Fix prototype.
5170 (remote_download_trace_state_variable): Validate reply.
5171 (remote_trace_set_readonly_regions): Fix prototype.
5172 (remote_trace_start): Fix prototype. Check for empty reply.
5173 (remote_get_trace_status): Small cleanup.
5174 (remote_trace_stop): Fix prototype. Check for empty reply.
5175 (remote_trace_find): Check for empty reply.
5176 (remote_save_trace_data): Validate reply.
5177 (remote_set_disconnected_tracing): Check for empty reply, and
5179 (remote_set_circular_trace_buffer): Ditto.
5181 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
5183 Suppress unused value warning during compilation.
5184 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
5186 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5188 2010-04-12 Stan Shebs <stan@codesourcery.com>
5190 * tracepoint.c (tfile_xfer_partial): Check read result.
5192 2010-04-12 Mike Frysinger <vapier@gentoo.org>
5194 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
5195 * remote-sim.c (gdbsim_files_info): Likewise.
5197 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5199 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
5200 * arm-linux-nat.c (arm_linux_vfp_register_count): New
5202 (fetch_vfp_registers): New function to fetch VFP registers.
5203 (store_vfp_registers): New function to store VFP registers.
5204 (arm_linux_fetch_inferior_registers): Add support for VFP
5206 (arm_linux_store_inferior_registers): Likewise.
5207 (arm_linux_read_description): Likewise.
5208 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
5211 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
5213 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
5215 (amd64_collect_xstateregset): Likewise.
5217 2010-04-09 Stan Shebs <stan@codesourcery.com>
5219 * tracepoint.c (trace_status_mi): Report frames created.
5221 * tracepoint.c (trace_dump_command): Include default-collect
5224 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
5226 * symtab.c (find_function_start_sal): Never return SAL pointing
5227 before function start address, even if line info is missing.
5229 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5231 * NEWS: Mention tracepoints support.
5233 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5235 * tracepoint.c (trace_status_mi): Report disconnected tracing and
5236 circular trace buffer statuses.
5238 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5240 * config/djgpp/fnchange.lst: Fix typo in translations for
5241 symbol-without-target_section.exp and symbol-without-target_section.c.
5243 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5245 * breakpoint.c (condition_command): Pass condition expression to
5246 set_breakpoint_condition stripped from breakpoint number.
5248 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
5249 Thiago Jung Bauermann <bauerman@br.ibm.com>
5250 Tom Tromey <tromey@redhat.com>
5252 * breakpoint.c (condition_command): Simplify. Move condition
5254 (set_breakpoint_condition): ... here. New function.
5255 * breakpoint.h (set_breakpoint_condition): Declare.
5256 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
5257 (SUBDIR_PYTHON_SRCS): Likewise.
5258 (py-breakpoint.o): New rule.
5259 * python/py-breakpoint.c: New file.
5260 * python/python-internal.h (gdbpy_breakpoints)
5261 (gdbpy_initialize_breakpoints): Declare.
5262 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
5264 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5266 * regformats/regdat.sh: Include server.h. Don't include
5269 2010-04-08 Stan Shebs <stan@codesourcery.com>
5270 Pedro Alves <pedro@codesourcery.com>
5272 * tracepoint.h (struct trace_status): New fields disconnected_tracing
5273 and circular_buffer.
5274 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
5275 * tracepoint.c (trace_status_command): Display target's status for
5276 disconnected tracing and circular buffer.
5277 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
5278 query for non-disconnected-tracing case, remove the stop_tracing
5280 (tfile_open): Clear disconnected and circular buffer status.
5281 (trace_save): Save disconnected and circular buffer status.
5282 (parse_trace_status): Parse disconnected and circular buffer status,
5283 also recognize disconnected as a stop reason.
5284 * remote.c (remote_set_disconnected_tracing): Only set
5285 QTDisconnected if the remote end supports disconnected tracing.
5286 Warn otherwise, if trying to enable disconnected tracing.
5287 * infcmd.c (detach_command): Update disconnect_tracing call.
5288 * cli/cli-cmds.c (quit_command): Ditto.
5290 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5292 * i387-tdep.c (i387_collect_xsave): Replace abort with
5295 2010-04-08 Stan Shebs <stan@codesourcery.com>
5297 * breakpoint.c (default_collect_info): New function.
5298 (breakpoints_info): Call it.
5299 (maintenance_info_breakpoints): Ditto.
5300 (tracepoints_info): Ditto.
5302 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5304 * i387-tdep.c (i387_collect_xsave): Re-indent.
5306 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5308 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
5309 if HAVE_PTRACE_GETFPXREGS is defined.
5310 (i386_linux_read_description): Set have_ptrace_getfpxregs and
5311 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
5313 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
5314 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
5315 if .reg-xfp section doesn't exist.
5316 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
5318 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
5320 * i386-tdep.c: Include "features/i386/i386-mmx.c".
5321 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
5322 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
5323 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
5324 (i386_gdbarch_init): Update comments.
5325 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
5327 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
5329 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
5331 * features/Makefile (i386/i386-mmx-expedite): New.
5332 (i386/i386-mmx-linux-expedite): Likewise.
5333 ($(outdir)/i386/i386-mmx.dat): Likewise.
5334 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
5336 * features/i386/i386-mmx-linux.c: New.
5337 * features/i386/i386-mmx-linux.xml: Likewise.
5338 * features/i386/i386-mmx.c: Likewise.
5339 * features/i386/i386-mmx.xml: Likewise.
5340 * regformats/i386/i386-mmx-linux.dat: Likewise.
5341 * regformats/i386/i386-mmx.dat: Likewise.
5343 * features/Makefile (WHICH): Add i386/i386-mmx and
5344 i386/i386-mmx-linux.
5346 2010-04-08 Doug Evans <dje@google.com>
5348 * source.c (openp): Skip $cdir in PATH.
5350 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
5353 * python/py-lazy-string.c (stpy_convert_to_value): Check for
5355 (gdbpy_create_lazy_string_object): Allow strings with a NULL
5356 address and a zero length.
5358 2010-04-08 Hui Zhu <teawater@gmail.com>
5360 * i386-tdep.c (i386_process_record): Add support for insn
5363 2010-04-07 Doug Evans <dje@google.com>
5365 * python/python.c (source_python_script): Use ensure_python_env
5366 to prepare environment for script.
5368 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5370 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
5371 <sys/uio.h> and "i386-xstate.h".
5372 (PTRACE_GETREGSET): New.
5373 (PTRACE_SETREGSET): Likewise.
5374 (have_ptrace_getregset): Likewise.
5375 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
5377 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
5379 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
5380 (amd64_linux_store_inferior_registers): Likewise.
5381 (amd64_linux_read_description): Check and enable AVX target
5384 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
5385 and "features/i386/amd64-avx-linux.c".
5386 (amd64_linux_regset_sections): New.
5387 (amd64_linux_core_read_description): Check and enable AVX
5389 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
5390 set_gdbarch_core_regset_sections.
5391 (_initialize_amd64_linux_tdep): Call
5392 initialize_tdesc_amd64_avx_linux.
5394 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
5395 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
5396 (tdesc_amd64_avx_linux): New.
5397 (amd64_linux_update_xstateregset): Likewise.
5399 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
5400 (amd64_ymm_names): New.
5401 (amd64_ymmh_names): Likewise.
5402 (amd64_register_name): Likewise.
5403 (amd64_supply_xstateregset): Likewise.
5404 (amd64_collect_xstateregset): Likewise.
5405 (amd64_supply_xsave): Likewise.
5406 (amd64_collect_xsave): Likewise.
5407 (AMD64_NUM_REGS): Removed.
5408 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
5409 %xmmN if AVX is available.
5410 (amd64_pseudo_register_name): Support pseudo YMM registers.
5411 (amd64_regset_from_core_section): Support .reg-xstate section.
5412 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
5413 and ymm0h_regnum. Call set_gdbarch_register_name.
5414 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
5416 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
5417 AMD64_YMM15H_REGNUM.
5418 (AMD64_NUM_REGS): New.
5419 (amd64_supply_xsave): Likewise.
5420 (amd64_collect_xsave): Likewise.
5421 (amd64_register_name): Removed.
5422 (amd64_register_type): Likewise.
5424 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5426 * i387-tdep.c: Include "i386-xstate.h".
5427 (XSAVE_XSTATE_BV_ADDR): New.
5428 (xsave_avxh_offset): Likewise.
5429 (XSAVE_AVXH_ADDR): Likewise.
5430 (i387_supply_xsave): Likewise.
5431 (i387_collect_xsave): Likewise.
5433 * i387-tdep.h (I387_NUM_YMM_REGS): New.
5434 (I387_YMM0H_REGNUM): Likewise.
5435 (I387_YMMENDH_REGNUM): Likewise.
5436 (i387_supply_xsave): Likewise.
5437 (i387_collect_xsave): Likewise.
5439 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5441 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
5442 <sys/uio.h> and "i386-xstate.h".
5443 (PTRACE_GETREGSET): New.
5444 (PTRACE_SETREGSET): Likewise.
5445 (fetch_xstateregs): Likewise.
5446 (store_xstateregs): Likewise.
5447 (GETXSTATEREGS_SUPPLIES): Likewise.
5448 (regmap): Include 8 upper YMM registers.
5449 (i386_linux_fetch_inferior_registers): Support XSAVE extended
5451 (i386_linux_store_inferior_registers): Likewise.
5452 (i386_linux_read_description): Check and enable AVX target
5455 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
5456 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
5457 (i386_linux_regset_sections): Add ".reg-xstate".
5458 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
5459 (i386_linux_core_read_xcr0): New.
5460 (i386_linux_core_read_description): Check and enable AVX target
5462 (i386_linux_init_abi): Set xsave_xcr0_offset.
5463 (_initialize_i386_linux_tdep): Call
5464 initialize_tdesc_i386_avx_linux.
5466 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
5467 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
5468 (i386_linux_core_read_xcr0): New.
5469 (tdesc_i386_avx_linux): Likewise.
5470 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
5472 * i386-tdep.c: Include "i386-xstate.h" and
5473 "features/i386/i386-avx.c".
5474 (i386_ymm_names): New.
5475 (i386_ymmh_names): Likewise.
5476 (i386_ymmh_regnum_p): Likewise.
5477 (i386_ymm_regnum_p): Likewise.
5478 (i386_xmm_regnum_p): Likewise.
5479 (i386_register_name): Likewise.
5480 (i386_ymm_type): Likewise.
5481 (i386_supply_xstateregset): Likewise.
5482 (i386_collect_xstateregset): Likewise.
5483 (i386_sse_regnum_p): Removed.
5484 (i386_pseudo_register_name): Support pseudo YMM registers.
5485 (i386_pseudo_register_type): Likewise.
5486 (i386_pseudo_register_read): Likewise.
5487 (i386_pseudo_register_write): Likewise.
5488 (i386_dbx_reg_to_regnum): Return %ymmN register number for
5489 %xmmN if AVX is available.
5490 (i386_regset_from_core_section): Support .reg-xstate section.
5491 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
5492 (i386_process_record): Replace i386_sse_regnum_p with
5494 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
5495 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
5496 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
5497 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
5498 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
5499 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
5501 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
5503 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
5504 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
5506 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
5507 (I386_AVX_NUM_REGS): New.
5508 (i386_xmm_regnum_p): Likewise.
5509 (i386_ymm_regnum_p): Likewise.
5510 (i386_ymmh_regnum_p): Likewise.
5512 * common/i386-xstate.h: New.
5514 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5516 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
5518 * features/Makefile (WHICH): Add i386/i386-avx,
5519 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
5520 (i386/i386-avx-expedite): New.
5521 (i386/i386-avx-linux-expedite): Likewise.
5522 (i386/x86-64-avx-expedite):Likewise.
5523 (i386/x86-64-avx-linux-expedite): Likewise.
5524 ($(outdir)/i386/i386-avx.dat): New dependency.
5525 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
5526 ($(outdir)/i386/x86-avx-64.dat): Likewise.
5527 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
5529 * features/i386/32bit-avx.xml: New.
5530 * features/i386/64bit-avx.xml: Likewise.
5531 * features/i386/i386-avx-linux.c: Likewise.
5532 * features/i386/i386-avx-linux.xml: Likewise.
5533 * features/i386/i386-avx.c: Likewise.
5534 * features/i386/i386-avx.xml: Likewise.
5535 * features/i386/x86-64-avx-linux.c: Likewise.
5536 * features/i386/x86-64-avx-linux.xml: Likewise.
5537 * features/i386/x86-64-avx.c: Likewise.
5538 * features/i386/x86-64-avx.xml: Likewise.
5539 * regformats/i386/i386-avx-linux.dat: Likewise.
5540 * regformats/i386/i386-avx.dat: Likewise.
5541 * regformats/i386/x86-64-avx-linux.dat: Likewise.
5542 * regformats/i386/x86-64-avx.dat: Likewise.
5544 2010-04-07 Doug Evans <dje@google.com>
5546 * top.c (source_file_name): Make const char *.
5547 * top.h (source_file_name): Update.
5548 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
5550 (script_from_file): Change `file' arg to const char *.
5551 * cli/cli-script.h (script_from_file): Update.
5553 2010-04-06 Doug Evans <dje@google.com>
5555 * cli/cli-cmds.c (source_command): Run cleanups.
5557 2010-04-06 Stan Shebs <stan@codesourcery.com>
5559 * defs.h (char_ptr): Move typedef here from...
5560 * ada-lang.c (char_ptr): Remove.
5561 * charset.c (char_ptr): Remove.
5562 * tracepoint.h (struct uploaded_string): Remove.
5563 (struct uploaded_tp): Use vectors for string arrays.
5564 * tracepoint.c (trace_save): Use vectors of actions.
5565 (parse_tracepoint_definition): Ditto.
5566 (get_uploaded_tp): Clear vectors.
5567 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
5568 (next_cmd): Change to an int.
5569 (read_next_cmd): Use vector of command strings.
5571 2010-04-06 Doug Evans <dje@google.com>
5573 * top.h (source_script, cd_command): Delete.
5574 * main.c: #include "cli/cli-cmds.h"
5576 2010-04-06 Kevin Buettner <kevinb@redhat.com>
5578 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
5579 type in bytes, not bits.
5581 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5583 * stabsread.c (define_symbol): Add support for char
5584 and string constants.
5586 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5588 Remove remaining "%ll" uses.
5589 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
5591 * rs6000-nat.c (rs6000_ptrace64): Idem.
5592 * solib-pa64.c (pa64_current_sos): Idem.
5593 * solib-spu.c (spu_current_sos): Idem.
5594 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
5596 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
5598 * sh64-tdep.c (sh64_show_media_regs): Idem.
5600 2010-04-05 Stan Shebs <stan@codesourcery.com>
5602 * tracepoint.c: Include gdbcore.h.
5603 (tfile_xfer_partial): Return partial results, also try reading
5605 (tfile_has_all_memory): New function.
5606 (init_tfile_ops): Use it.
5608 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
5611 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
5612 the changes in data-directory.
5613 (init_sysinfo): Reload the syscall XML file if the data-directory
5616 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5619 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
5621 2010-04-04 Stan Shebs <stan@codesourcery.com>
5622 Nathan Sidwell <nathan@codesourcery.com>
5624 * breakpoint.c (breakpoint_1): Add filter argument, return number of
5625 breakpoints printed.
5626 (is_hardware_watchpoint): Make argument const.
5627 (is_watchpoint): Ditto.
5628 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
5630 (breakpoints_info): Pass NULL to breakpoint_1.
5631 (maintenance_info_breakpoints): Ditto.
5632 (watchpoints_info): New function.
5633 (tracepoints_info): Use breakpoint_1 filter.
5634 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
5635 (_initialize_breakpoint): Make "info watchpoints" its own command.
5636 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
5637 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
5639 2010-04-04 Stan Shebs <stan@codesourcery.com>
5641 * tracepoint.c (tfile_fetch_registers): Add fallback case.
5643 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5645 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
5646 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
5648 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5650 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
5651 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
5653 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5655 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
5658 2010-04-02 Hui Zhu <teawater@gmail.com>
5660 * i386-tdep.c (OT_DQUAD): New enum.
5661 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
5662 SSE3, SSSE3 and SSE4.
5664 2010-04-02 Hui Zhu <teawater@gmail.com>
5666 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
5669 2010-04-02 Pedro Alves <pedro@codesourcery.com>
5671 * tracepoint.c (trace_dump_actions): New, factored out from
5672 trace_dump_command, and adjusted to recurse into while-stepping's
5674 (trace_dump_command): Use it.
5676 2010-04-02 Pedro Alves <pedro@codesourcery.com>
5678 * breakpoint.h (struct counted_command_line): Moved definition to
5679 breakpoint.c, and forward declare.
5680 (breakpoint_commands): Declare.
5681 * breakpoint.c (struct counted_command_line): Moved here.
5682 (breakpoint_commands): New.
5683 * tracepoint.c (encode_actions): Use breakpoint_commands.
5684 * remote.c (remote_download_tracepoint): Ditto.
5686 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5688 * remote.c (remote_parse_stop_reply): Use hex_string instead
5689 of phex_nz for error.
5691 2010-04-01 Stan Shebs <stan@codesourcery.com>
5692 Nathan Sidwell <nathan@codesourcery.com>
5694 * tracepoint.h (enum actionline_type): Remove.
5695 (validate_actionline): Change return to void.
5696 * tracepoint.c (report_agent_reqs_errors): New function.
5697 (validate_actionline): Call it, change return to void, report errors
5699 (collect_symbol): Call report_agent_reqs_errors.
5700 (encode_actions_1): Ditto.
5701 (encode_actions): Don't expect a result from validate_actionline.
5703 2010-04-01 Stan Shebs <stan@codesourcery.com>
5705 * tracepoint.c (trace_start_command): Confirm if trace is running.
5706 (trace_stop_command): Error if trace not running.
5708 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5710 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
5711 (AMD64_NUM_LOWER_BYTE_REGS): New.
5712 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
5713 (amd64_pseudo_register_write): Likewise.
5714 (amd64_init_abi): Set num_byte_regs to 20.
5716 2010-04-01 Pedro Alves <pedro@codesourcery.com>
5718 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
5719 (prev_breakpoint_count): New.
5720 (set_breakpoint_count): Adjust.
5721 (rbreak_start_breakpoint_count): New.
5722 (start_rbreak_breakpoints): Adjust.
5723 (end_rbreak_breakpoints): Adjust.
5724 (struct commands_info) <arg>: New field.
5725 (do_map_commands_command): Tweak output to include breakpoint spec
5727 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
5728 ARG was empty on entry. Set INFO's arg.
5729 (create_breakpoint): Adjust.
5731 * NEWS: Clarify `commands' changes.
5733 2010-04-01 Pedro Alves <pedro@codesourcery.com>
5735 * tracepoint.c: Include stack.h.
5736 (struct add_local_symbols_data): New.
5737 (do_collect_symbol): New.
5738 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
5739 iterate_over_block_local_vars.
5740 * stack.c (print_block_frame_locals): Rewrite as ...
5741 (iterate_over_block_locals): ... this. Take a callback function
5742 pointer and generic data pointer, and call that instead of
5743 print_variable_and_value.
5744 (struct print_variable_and_value_data): New.
5745 (do_print_variable_and_value): New.
5746 (iterate_over_block_local_vars): New, abstracted out from
5747 print_frame_local_vars.
5748 (print_frame_local_vars): Rewrite using
5749 iterate_over_block_local_vars.
5750 (iterate_over_block_arg_vars): New, abstracted out from
5751 print_frame_arg_vars.
5752 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
5753 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
5754 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
5756 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
5758 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
5759 instructions. Use the PC+4 if the base of the TBB or TBH is the
5762 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5764 Fix crash on reading wrong function declaration DWARF.
5765 * dwarf2read.c (read_subroutine_type): New variable void_type.
5766 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
5767 more close to their use.
5769 2010-03-31 Stan Shebs <stan@codesourcery.com>
5771 * breakpoint.c (tracepoint_save_command): Include variables,
5772 conditionals, tracepoint types, and default-collect.
5773 * tracepoint.c (save_trace_state_variables): New function.
5774 * tracepoint.h (save_trace_state_variables): Declare it.
5776 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
5778 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
5780 2010-03-30 Keith Seitz <keiths@redhat.com>
5782 * c-typeprint.c (c_type_print_args): Don't print "void"
5783 for java, regardless of whether it is TYPE_PROTOTYPED.
5784 Use the passed-in language instead of current_language.
5785 (c_type_print_varspec_suffix): Use current_language instead
5786 of assuming language_c.
5787 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
5788 any return type specifier from the physname.
5790 2010-03-30 Pedro Alves <pedro@codesourcery.com>
5792 * tui/tui-interp.c (tui_is_toplevel): New.
5794 (tui_allowed_p): New.
5795 * tui/tui.c (tui_enable): Check if the TUI is allowed before
5797 * tui/tui.h (tui_allowed_p): Declare.
5799 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
5801 * serial.h: Include winsock2.h before windows.h.
5803 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
5805 * NEWS: Mention xmlRegisters= in qSupported packet.
5807 * i386-tdep.c: Include "remote.h".
5808 (_initialize_i386_tdep): Call register_remote_support_xml.
5810 * remote.c (remote_support_xml): New.
5811 (register_remote_support_xml): Likewise.
5812 (remote_query_supported_append): Likewise.
5813 (remote_query_supported): Support remote_support_xml.
5815 * remote.h (register_remote_support_xml): New.
5817 2010-03-29 Stan Shebs <stan@codesourcery.com>
5819 * tracepoint.c (trace_find_line_command): Remove dead code.
5821 * tracepoint.h (struct uploaded_string): New struct.
5822 (struct uploaded_tp): New fields for source strings.
5823 * breakpoint.c (this_utp, next_cmd): New globals.
5824 (read_uploaded_action): New function.
5825 (create_tracepoint_from_upload): Fill in more parts
5827 * tracepoint.c (encode_source_string): New function.
5828 (trace_save): Write out source strings, fix error checks.
5829 (parse_tracepoint_definition): Add source string parsing.
5830 * remote.c (PACKET_TracepointSource): New packet type.
5831 (remote_download_command_source): New function.
5832 (remote_download_tracepoint): Download source pieces also.
5833 (_initialize_remote): Add packet config command.
5835 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
5838 * tracepoint.c (start_tracing): Check tracepoints before sending
5839 commands to target, don't start if all tracepoints disabled.
5841 2010-03-28 Pedro Alves <pedro@codesourcery.com>
5843 * cli/cli-script.c (process_next_line): Handle 'stepping'.
5845 2010-03-26 Stan Shebs <stan@codesourcery.com>
5847 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
5849 2010-03-26 Tom Tromey <tromey@redhat.com>
5851 * breakpoint.c (commands_command_1): Duplicate 'arg'.
5853 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5855 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
5856 (skip_prologue_sal): Remove local definition.
5857 (resolve_sal_pc): Remove now unnecessary code.
5858 * linespec.c (minsym_found): Call skip_prologue_sal.
5859 * symtab.c (find_function_start_pc): Remove.
5860 (find_function_start_sal): Extract prologue skipping into ...
5861 (skip_prologue_sal): ... this new function. Handle code both
5862 with and without debug info. Respect SAL's explicit_pc and
5863 explicit_line flags. Inline old find_function_start_pc.
5864 * symtab.h (find_function_start_pc): Remove.
5865 (skip_prologue_sal): Add prototype.
5867 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5869 * dwarf2read.c (read_func_scope): Also scan specification DIEs
5870 for DW_TAG_imported_module children.
5872 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5874 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
5875 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
5876 * completer.c (add_struct_fields): Fix inverted logic.
5878 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5880 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
5882 2010-03-26 Pedro Alves <pedro@codesourcery.com>
5884 * tracepoint.c (current_trace_status): Don't make sure error_desc
5886 (parse_trace_status): Release a previous error_desc string, and
5887 set it to NULL by default. If stop reason is tracepoint_error,
5888 make sure error_desc is not left NULL.
5890 2010-03-26 Pedro Alves <pedro@codesourcery.com>
5892 * tracepoint.c (trace_save): Remove X from tracepoint error
5895 2010-03-26 Pedro Alves <pedro@codesourcery.com>
5897 * tracepoint.c (parse_trace_status): Don't allow plain strings in
5898 the terror description. Don't expect an X prefix.
5900 2010-03-25 Stan Shebs <stan@codesourcery.com>
5902 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
5903 (struct trace_status): New field error_desc.
5904 * tracepoint.c (stop_reason_names): Add terror.
5905 (current_trace_status): Ensure non-NULL error description.
5906 (trace_status_command): Add error report.
5907 (trace_status_mi): Ditto.
5908 (trace_save): Add special case for error description.
5909 (parse_trace_status): Add case for errors.
5911 2010-03-25 Keith Seitz <keiths@redhat.com>
5913 * dwarf2read.c (read_subroutine_type): If the compilation unit
5914 language is Java, mark any formal parameter named "this" as
5915 artificial (GCC/43521).
5916 (dwarf2_name): Add special handling for Java constructors.
5918 2010-03-25 Tom Tromey <tromey@redhat.com>
5920 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
5921 * infrun.c (handle_inferior_event): Change initialization of
5923 (handle_inferior_event): Change assignment to stop_stack_dummy.
5924 (normal_stop): Update use of stop_stack_dummy.
5925 (struct inferior_status) <stop_stack_dummy>: Change type.
5926 * inferior.h (stop_stack_dummy): Update.
5927 * infcmd.c (stop_stack_dummy): Change type.
5928 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
5930 (call_function_by_hand): Call set_std_terminate_breakpoint.
5931 Rewrite std::terminate handling.
5932 * breakpoint.h (enum bptype) <bp_std_terminate,
5933 bp_std_terminate_master>: New.
5934 (enum stop_stack_kind): New.
5935 (struct bpstat_what) <call_dummy>: Change type.
5936 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
5938 * breakpoint.c (create_std_terminate_master_breakpoint): New
5940 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
5941 Call create_std_terminate_master_breakpoint.
5942 (print_it_typical): Handle new breakpoint kinds.
5943 (bpstat_stop_status): Handle bp_std_terminate_master.
5944 (bpstat_what): Correctly set call_dummy field. Handle
5945 bp_std_terminate_master and bp_std_terminate.
5946 (print_one_breakpoint_location): Update.
5947 (allocate_bp_location): Update.
5948 (set_std_terminate_breakpoint): New function.
5949 (delete_std_terminate_breakpoint): Likewise.
5950 (create_thread_event_breakpoint): Update.
5951 (delete_command): Update.
5952 (breakpoint_re_set_one): Update.
5953 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
5955 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5957 * symfile.c (build_section_addr_info_from_bfd): New.
5958 (build_section_addr_info_from_objfile): Base it on
5959 build_section_addr_info_from_bfd.
5960 (addrs_section_compar, addrs_section_sort): New.
5961 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
5962 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
5963 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
5965 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
5967 * elfread.c (find_separate_debug_file_by_buildid):
5968 Remove unused local variable.
5970 2010-03-24 Tom Tromey <tromey@redhat.com>
5972 PR breakpoints/9352:
5973 * NEWS: Mention changes to `commands' and `rbreak'.
5974 * symtab.c (do_end_rbreak_breakpoints): New function.
5975 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
5976 end_rbreak_breakpoints.
5977 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
5978 (set_breakpoint_count): Likewise. Clear last_was_multi.
5979 (multi_start, multi_end, last_was_multi): New globals.
5980 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
5982 (struct commands_info): New
5983 (do_map_commands_command): New function.
5984 (commands_command_1): New function.
5985 (commands_command): Use it.
5986 (commands_from_control_command): Likewise.
5987 (do_delete_breakpoint): New function.
5988 (delete_command): Use it.
5989 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
5990 (do_map_disable_breakpoint): New function.
5991 (disable_command): Use it.
5992 (do_map_enable_breakpoint): New function.
5993 (enable_command): Use it.
5994 (enable_once_breakpoint): Add argument.
5995 (enable_once_command): Update.
5996 (enable_delete_breakpoint): Add argument.
5997 (enable_delete_command): Update.
5998 (break_command_really): Set last_was_multi when needed.
5999 (check_tracepoint_command): Fix formatting.
6000 (validate_commands_for_breakpoint): New function.
6001 (breakpoint_set_commands): Use it.
6002 (tracepoint_save_command): Update.
6003 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
6006 2010-03-24 Tom Tromey <tromey@redhat.com>
6008 * breakpoint.h (struct counted_command_line): New struct.
6009 (struct breakpoint) <commands>: Change type.
6010 (struct bpstats) <commands>: Change type.
6011 <commands_left>: New field.
6012 * breakpoint.c (alloc_counted_command_line): New function.
6013 (incref_counted_command_line): Likewise.
6014 (decref_counted_command_line): Likewise.
6015 (do_cleanup_counted_command_line): Likewise.
6016 (make_cleanup_decref_counted_command_line): Likewise.
6017 (breakpoint_set_commands): Use decref_counted_command_line and
6018 alloc_counted_command_line.
6019 (commands_command): Don't error if breakpoint commands are
6021 (commands_from_control_command): Likewise.
6022 (bpstat_free): Update.
6023 (bpstat_copy): Likewise.
6024 (bpstat_clear_actions): Likewise.
6025 (bpstat_do_actions_1): Likewise.
6026 (bpstat_stop_status): Likewise.
6027 (print_one_breakpoint_location): Likewise.
6028 (delete_breakpoint): Likewise.
6029 (bpstat_alloc): Initialize new field.
6030 (tracepoint_save_command): Update.
6031 * tracepoint.c (encode_actions): Update.
6032 (trace_dump_command): Update.
6034 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6036 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
6037 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
6038 (read_structure_type): For RealView, set TYPE_STUB on structures with
6039 no byte size and no children.
6040 (read_subroutine_type): Mark functions as prototyped by default.
6041 * symtab.c (producer_is_realview): New function.
6042 * symtab.h (expand_line_sal): Fix declaration formatting.
6043 (producer_is_realview): Declare.
6045 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6047 * arm-tdep.c (skip_prologue_function): New function.
6048 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
6049 (thumb_analyze_prologue): Document return value. Recognize more
6050 Thumb instructions, skippable calls, and some Thumb-2 instructions.
6052 (arm_skip_prologue): Remove call dummy check. Check the prologue
6053 for non-GNU compilers.
6054 (arm_instruction_changes_pc): New function.
6055 (arm_analyze_prologue): New function, broken out from
6056 arm_scan_prologue. Recognize more ARM instructions and skippable
6057 calls. Update comments. Handle NULL cache. Return the address
6058 of the first unrecognized instruction. Do not skip past other
6059 instructions which change control flow. Add debug output.
6060 (arm_scan_prologue): Use arm_analyze_prologue.
6061 (ARM_PC_32): Delete.
6062 (shifted_reg_val): Simplify ARM_PC_32 check.
6064 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6066 * tracepoint.c (tvariables_info_1): Actually compute
6067 the number of rows in the result.
6069 2010-03-24 Pedro Alves <pedro@codesourcery.com>
6071 * remote.c (crc32): Constify `buf' parameter.
6072 (remote_verify_memory): New, abstracted out from...
6073 (compare_sections_command): ... this. Remove hardcoded target
6075 (init_remote_ops): Install remote_verify_memory.
6076 * target.c (target_verify_memory): New.
6077 * target.h (struct target_ops) <to_verify_memory>: New field.
6078 (target_verify_memory): Declare.
6080 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6082 Implement -trace-save.
6084 * mi-cmds.h (mi_cmds_trace_save): Declare.
6085 * mi-cmds.c (mi_cmds): Register -trace-save.
6086 * mi/mi-main.c (mi_cmd_trace_save): New.
6087 * remote.c (remote_save_trace_data): Take const parameter.
6088 * target.h (struct target_ops::to_save_trace_data): Take
6090 * target.c (update_current_target): Adjust to the above.
6091 * tracepoint.c (trave_save): New, extracted from
6092 (trace_save_command): ...this.
6093 (tfile_trace_find): Remove message that is unnecessary now
6094 that 'tfind' reports found frame.
6095 * tracepoint.h (trace_save): Declare.
6097 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6099 Implement -trace-find.
6101 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
6102 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
6103 * mi/mi-main.c (mi_cmd_trace_find): New.
6104 * target.h (struct target_ops): Document to_trace_find.
6105 * tracepoint.h (tfind_1): Declare.
6106 * tracepoint.c (finish_tfind_command): Rename to...
6108 * remote.c (remote_trace_find): Return -1 if target say
6109 there's no frame. Improve error diagnostics.
6111 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6113 -trace-define-variable and -trace-list-variables.
6115 * tracepoint.c (create_trace_state_variable): Make
6116 private copy of name, as opposed to assuming the
6117 pointer lives forever.
6118 (tvariables_info_1): New.
6119 (tvariables_info): Use the above.
6120 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
6122 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
6123 and -trace-list-variables.
6124 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
6125 (mi_cmd_trace_list_variables): New.
6126 * mi/mi-main.c (mi_cmd_trace_define_variable)
6127 (mi_cmd_trace_list_variables): New.
6129 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6131 Implement -break-passcount.
6133 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
6134 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
6135 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
6137 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6139 -trace-start/-trace-end/-trace-status.
6141 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
6143 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
6144 (mi_cmd_trace_stop): Declare.
6145 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
6146 (mi_cmd_trace_stop): New.
6147 * tracepoint.c (start_tracing): New, extracted from...
6148 (trace_start_command): ...this.
6149 (trace_status_mi): New.
6150 * tracepoint.h (struct trace_status): Document
6151 stopping_tracepoint.
6152 (start_tracing, stop_tracing, trace_status_mi): Declare.
6154 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6156 Implement creating tracepoints with -break-insert.
6158 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
6159 to mean that tracepoint should be created.
6161 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6163 * breakpoint.c (check_no_tracepoint_commands): Use
6164 current spelling of 'teval'.
6166 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6168 Unify actions and commands
6170 * defs.h (read_command_lines, read_command_lines_1): New
6171 parameters validator and closure.
6172 * tracepoint.h (struct action_line): Remove.
6173 * breakpoint.h (struct breakpoint): Remove the 'actions'
6175 * defs.h (enum command_control_type): New value
6176 while_stepping_control.
6177 (struct command_line): Add comments.
6178 * breakpoint.c (breakoint_is_tracepoint): New.
6179 (breakpoint_set_commands): For tracepoints,
6180 verify the commands are permissible.
6181 (check_tracepoint_commands): New.
6182 (commands_command): Require that each new line is validated using
6183 check_tracepoint_command, if we set commands for a tracepoint.
6184 (create_tracepoint_from_upload): Likewise.
6185 (print_one_breakpoint_location): Remove the code to print
6186 actions specifically.
6187 (tracepoint_save_command): Relay to print_command_lines.
6188 * cli/cli-script.c (process_next_line): New parameters validator
6189 and closure. Handle 'while-stepping'. Call validator if not null.
6190 (read_command_lines, read_command_lines1): Likewise.
6191 (recurse_read_control_structure): New parameters validator and
6192 closure. Handle while_stepping_control.
6193 (print_command_lines): Handle while-stepping.
6194 (get_command_line, define_command, document_command): Adjust.
6195 * remote.c (remote_download_tracepoint): Adjust.
6196 * tracepoint.c (make_cleanup_free_actions, read_actions)
6197 (free_actions, do_free_actions_cleanup): Remove.
6198 (trace_actions_command): Use read_command_lines.
6199 (validate_actionline): Use error in one place.
6200 (encode_actions_1): New, extracted from...
6201 (encode_actions): ...this. Also use cleanups for exception
6203 (trace_dump_command): Adjust.
6204 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
6207 2010-03-23 Mike Frysinger <vapier@gentoo.org>
6209 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
6211 2010-03-22 Stan Shebs <stan@codesourcery.com>
6213 * value.c (value_static_field): Be lazy about the field's value.
6215 2010-03-22 Reid Kleckner <reid@kleckner.net>
6218 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
6220 (disable_breakpoints_in_shlibs): Likewise.
6222 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
6224 * dwarf2read.c (partial_die_parent_scope): Work around buggy
6225 GCC 4.1 debug info generation (GCC PR c++/28460).
6226 (determine_prefix): Likewise.
6228 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
6230 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
6232 * tui/tui-layout.c (extract_display_start_addr): Likewise.
6234 2010-03-19 Stan Shebs <stan@codesourcery.com>
6236 * ax-gdb.c (gen_fetch): Handle bool.
6237 (gen_usual_unary): Ditto.
6239 (gen_equal): New function.
6240 (gen_less): New function.
6241 (gen_expr_binop_rest): Call them, also return integer type from
6245 2010-03-19 Tom Tromey <tromey@redhat.com>
6247 * jv-lang.c (jv_dynamics_objfile_data_key)
6248 (jv_type_objfile_data_key): New globals.
6249 (class_symtab): Move earlier.
6250 (jv_per_objfile_free): New function.
6251 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
6253 Remove ancient #if 1.
6254 (add_class_symbol): Remove redundant declaration.
6255 (java_lookup_class): Use alloc_type, not alloc_type_arch.
6256 (java_link_class_type): Mark as static. Update.
6257 (jv_clear_object_type): New function.
6258 (set_java_object_type): Likewise.
6259 (get_java_object_type): Use set_java_object_type.
6260 (is_object_type): Likewise.
6261 (_initialize_java_language): Register new objfile keys.
6262 (get_java_class_symtab): Add 'gdbarch' parameter.
6263 (add_class_symtab_symbol): Update.
6264 (type_from_class): Update.
6266 2010-03-19 Stan Shebs <stan@codesourcery.com>
6268 * ax-general.c (ax_const_l): Fix a sizing bug.
6270 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6274 2010-03-18 Stan Shebs <stan@codesourcery.com>
6275 Pedro Alves <pedro@codesourcery.com>
6277 * target.h (struct target_ops): New method
6278 to_set_circular_trace_buffer.
6279 (target_set_circular_trace_buffer): New macro.
6280 * target.c (update_current_target): Add
6281 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
6283 * remote.c (remote_set_circular_trace_buffer): New function.
6284 (init_remote_ops): Add it to vector.
6285 * tracepoint.h (struct trace_status): New field traceframes_created,
6286 change buffer_size and buffer_free to int.
6287 * tracepoint.c (circular_trace_buffer): New global.
6288 (start_tracing): Send values of disconnected tracing and circular
6289 trace buffer settings.
6290 (set_circular_trace_buffer): New function.
6291 (parse_trace_state): Handle total space and frames created.
6292 (trace_status_command): Display total space and total frames
6294 (trace_save): Write out new status values.
6295 (parse_trace_status): Set traceframe_count, traceframes_created,
6296 buffer_free and buffer_size to -1 by default.
6297 (_initialize_tracepoint): New setshow for circular-trace-buffer.
6298 * NEWS: Mention the circular trace buffer option.
6300 2010-03-18 Tom Tromey <tromey@redhat.com>
6302 * infcmd.c (finish_command_continuation): Wrap print_return_value
6305 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6307 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
6308 DIE has a name before creating the associated partial symbol.
6309 (read_func_scope): Emit a complaint if the subprogram does not
6310 have a name or when we can't extract the subprogram PC bounds.
6312 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6314 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
6315 instead of selected frame architecture.
6317 2010-03-18 Pedro Alves <pedro@codesourcery.com>
6319 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
6320 a valid selected thread, and that it is not running.
6321 (advance_command): Ditto.
6322 (finish_command): Ditto.
6324 2010-03-17 Stan Shebs <stan@codesourcery.com>
6326 * ax-gdb.c (require_rvalue): Disallow non-scalars.
6328 * infcall.c: Include tracepoint.h.
6329 (call_function_by_hand): Disallow calls in tfind mode.
6330 * infcmd.c: Include tracepoint.h.
6331 (ensure_not_tfind_mode): New function.
6332 (continue_1): Call it.
6334 (jump_command): Ditto.
6335 (signal_command): Ditto.
6336 (advance_command): Ditto.
6337 (until_command): Ditto.
6338 (finish_command): Ditto.
6339 * tracepoint.h (disconnect_or_stop_tracing): Declare.
6341 * ax-gdb.h (struct axs_value): New field optimized_out.
6342 (gen_trace_for_var): Add gdbarch argument.
6343 * ax-gdb.c (gen_trace_static_fields): New function.
6344 (gen_traced_pop): Call it, add gdbarch argument.
6345 (gen_trace_for_expr): Update call to it.
6346 (gen_trace_for_var): Ditto, and report optimized-out variables.
6347 (gen_struct_ref_recursive): Check for optimized-out value.
6348 (gen_struct_elt_for_reference): Ditto.
6349 (gen_static_field): Pass gdbarch instead of expression, assume
6350 optimization if field not found.
6351 (gen_var_ref): Set the optimized_out flag.
6352 (gen_expr): Error on optimized-out variable.
6353 * tracepoint.c (collect_symbol): Handle struct-valued vars as
6354 expressions, skip optimized-out variables with computed locations.
6355 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
6356 erroring out if location expression missing.
6357 (loclist_tracepoint_var_ref): Don't error out here.
6359 2010-03-17 Tom Tromey <tromey@redhat.com>
6361 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
6362 DWARF data is available.
6364 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
6366 * symfile.c (generic_load): Reset breakpoints after loading.
6368 2010-03-17 Tom Tromey <tromey@redhat.com>
6370 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
6372 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6374 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
6375 create_breakpoint call, adjust the parameters.
6377 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6378 Chandru <chandru@in.ibm.com>
6380 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
6381 * valarith.c (value_subscripted_rvalue): Suppress error if
6382 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
6384 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
6386 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
6388 2010-03-16 Joel Brobecker <brobecker@adacore.com>
6390 * ada-tasks.c (task_command_1): Check that the task ptid is valid
6391 before doing the associated thread switch.
6393 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
6395 * MAINTAINERS: Update my email address.
6397 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
6399 Simplify MI breakpoint setting.
6401 * breakpoint.c (break_command_really): Make nonstatic and
6403 (create_breakpoint): ...this. Rename prior function by this name
6405 (create_breakpoint_sal): ...this.
6406 (create_breakpoints): Rename to...
6407 (create_breakpoints_sal): ...this.
6408 (set_breakpoint): Remove.
6409 * breakpoint.h: Adjust to above changes.
6410 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
6412 2010-03-15 Stan Shebs <stan@codesourcery.com>
6414 * ax-gdb.c: Include cp-support.h.
6415 (find_field): Remove.
6416 (gen_primitive_field): New function.
6417 (gen_struct_ref_recursive): New function.
6418 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
6420 (gen_static_field): New function.
6421 (gen_struct_elt_for_reference): New.
6422 (gen_namespace_elt): New.
6423 (gen_maybe_namespace_elt): New.
6424 (gen_aggregate_elt_ref): New.
6425 (gen_expr): Add OP_SCOPE, display opcode name in error message.
6427 2010-03-15 Tom Tromey <tromey@redhat.com>
6429 * dwarf2read.c (die_needs_namespace): Also return 0 for
6432 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
6435 * cp-support.h: Added char *declaration element to using_direct
6437 (cp_add_using): Added char *declaration argument.
6438 (cp_add_using_directive): Ditto.
6439 (cp_lookup_symbol_imports): made extern.
6440 * cp-namespace.c: Updated with the above changes.
6441 * dwarf2read.c (read_import_statement): Ditto.
6442 (read_namespace): Ditto.
6443 (read_import_statement): Support import declarations.
6444 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
6446 Added support for 'declaration_only' search.
6447 (cp_lookup_symbol_namespace): Attempt to search for the name as
6448 is before consideration of imports.
6449 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
6450 search at every block level search.
6451 Now takes language argument.
6452 (lookup_symbol_aux): Updated.
6454 2010-03-15 Tom Tromey <tromey@redhat.com>
6456 * c-exp.y (name_not_typename): Add 'operator' clause.
6458 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
6460 * configure.ac: Exit if ${gdb_target_obs}" is not set.
6461 * configure: Regenerate.
6463 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6465 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
6466 and ".sdynbss". Update the comment.
6468 2010-03-15 Jie Zhang <jie@codesourcery.com>
6470 * MAINTAINERS: Update my email address.
6472 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6474 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
6476 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6478 * charset.c [USE_WIN32API]: Include <windows.h>.
6479 (_initialize_charset): Correct type of w32_host_default_charset.
6481 2010-03-14 Pedro Alves <pedro@codesourcery.com>
6483 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
6485 2010-03-12 Tom Tromey <tromey@redhat.com>
6488 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
6489 in a lexical block does not need a namespace.
6490 (new_symbol) <DW_TAG_variable>: Put extern variables on
6491 list_in_scope in all cases.
6493 2010-03-12 Stan Shebs <stan@codesourcery.com>
6495 * ax-gdb.c (gen_expr): Add shift expressions.
6496 (gen_expr_binop_rest): Ditto.
6498 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
6500 * buildsym.c (finish_block): Reset using_directives pointer
6501 after block initialization.
6503 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
6505 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
6506 * i386-tdep.c (i386_word_names): Likewise.
6508 2010-03-12 Pedro Alves <pedro@codesourcery.com>
6510 * target.c (memory_xfer_partial): Don't use the stack cache if
6511 inspecting trace frames.
6512 * tracepoint.c (finish_tfind_command): Invalidate the target
6515 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6517 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
6518 for the PIC displacement, print also the displacement value.
6519 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
6521 2010-03-10 Kevin Buettner <kevinb@redhat.com>
6523 * remote-mips.c (close_ports, mips_initialize_cleanups)
6524 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
6525 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
6526 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
6527 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
6528 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
6529 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
6530 comments describing each of these functions.
6531 (mips_enter_debug, mips_exit_debug, common_open)
6532 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
6533 blank line after the comment describing the function.
6535 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6537 * solib-svr4.c (svr4_exec_displacement): Return now success, new
6538 parameter displacementp. Update comment.
6539 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
6540 element exists. Return if svr4_exec_displacement was not successful.
6543 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6544 Daniel Jacobowitz <dan@codesourcery.com>
6546 * solib-svr4.c (read_program_header): Support type == -1 to read
6547 all program headers.
6548 (read_program_headers_from_bfd): New function.
6549 (svr4_static_exec_displacement): Remove and move the comment ...
6550 (svr4_exec_displacement): ... here. Remove variable found. New
6551 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
6552 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
6553 targets using read_program_headers_from_bfd. Remove the call of
6554 svr4_static_exec_displacement.
6556 2010-03-10 Tom Tromey <tromey@redhat.com>
6558 * dwarf2read.c (struct pubnames_header): Remove.
6559 (_PUBNAMES_HEADER): Remove.
6560 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
6561 (struct aranges_header): Remove.
6562 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
6563 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
6564 (PUBNAMES_SECTION): Remove.
6565 (ARANGES_SECTION): Remove.
6566 (dwarf2_locate_sections): Don't handle pubnames or aranges.
6567 (dwarf2_build_psymtabs): Remove dead code.
6568 (dwarf2_build_psymtabs_easy): Remove.
6570 2010-03-10 Tom Tromey <tromey@redhat.com>
6572 * elfread.c (elf_symfile_read): Don't call
6573 dwarf2_build_frame_info.
6574 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
6575 (struct dwarf2_per_objfile) <objfile>: New field.
6576 (dwarf2_has_info): Now idempotent. Set objfile field.
6577 (dwarf2_read_section): Check and set readin field. Call
6579 (dwarf2_build_psymtabs): Don't read all sections.
6580 (read_type_comp_unit_head): Read types section.
6581 (create_debug_types_hash_table): Likewise.
6582 (init_cu_die_reader): Add asserts.
6583 (process_type_comp_unit): Add assert.
6584 (dwarf2_build_psymtabs_hard): Read info section.
6585 (load_partial_comp_unit): Add assert.
6586 (create_all_comp_units): Read info section.
6587 (load_full_comp_unit): Likewise.
6588 (dwarf2_ranges_read): Read ranges section.
6589 (dwarf2_record_block_ranges): Add assert.
6590 (dwarf2_read_abbrevs): Read abbrev section.
6591 (read_indirect_string): Read str section.
6592 (dwarf_decode_line_header): Read line section.
6593 (read_signatured_type_at_offset): Read types section.
6594 (dwarf_decode_macros): Read macinfo section.
6595 (dwarf2_symbol_mark_computed): Read loc section.
6596 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
6597 dwarf2_build_frame_info.
6598 (dwarf2_build_frame_info): Unconditionally set
6599 dwarf2_frame_objfile_data on the objfile.
6600 * configure.ac: Check for posix_madvise.
6601 * config.in, configure: Rebuild.
6603 2010-03-10 Tom Tromey <tromey@redhat.com>
6605 * xcoffread.c (xcoff_start_psymtab): Update.
6606 (xcoff_end_psymtab): Update.
6607 * psymtab.c (allocate_psymtab): Remove dead code.
6608 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
6610 * mdebugread.c (parse_partial_symbols): Update.
6611 (new_psymtab): Likewise.
6612 * dwarf2read.c (process_psymtab_comp_unit): Update.
6613 (psymtab_to_symtab_1): Update.
6614 * dbxread.c (start_psymtab): Update.
6615 (end_psymtab): Likewise.
6617 2010-03-10 Tom Tromey <tromey@redhat.com>
6619 * xcoffread.c: Include psymtab.h.
6620 (xcoff_sym_fns): Update.
6621 * symtab.h (struct partial_symbol): Remove.
6622 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
6623 (struct partial_symtab): Remove.
6624 (PSYMTAB_TO_SYMTAB): Remove.
6625 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
6626 (find_pc_sect_psymtab): Remove.
6627 (find_pc_sect_symtab_via_partial): Declare.
6628 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
6629 (find_main_psymtab): Remove.
6630 (find_main_filename): Declare.
6631 (fixup_psymbol_section): Remove.
6632 (fixup_section): Declare.
6633 * symtab.c: Include psymtab.h.
6634 (lookup_symtab): Use lookup_symtab method.
6635 (lookup_partial_symtab): Remove.
6636 (find_pc_sect_psymtab_closer): Remove.
6637 (find_pc_sect_psymtab): Remove.
6638 (find_pc_sect_symtab_via_partial): New function.
6639 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
6640 (fixup_section): No longer static.
6641 (fixup_psymbol_section): Remove.
6642 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
6643 (lookup_global_symbol_from_objfile): Likewise.
6644 (lookup_symbol_aux_psymtabs): Remove.
6645 (lookup_symbol_aux_quick): New function.
6646 (lookup_symbol_global): Use lookup_symbol_aux_quick.
6647 (lookup_partial_symbol): Remove.
6648 (basic_lookup_transparent_type_quick): New function.
6649 (basic_lookup_transparent_type): Use it.
6650 (find_main_psymtab): Remove.
6651 (find_main_filename): New function.
6652 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
6653 (find_line_symtab): Use expand_symtabs_with_filename method.
6654 (output_partial_symbol_filename): New function.
6655 (sources_info): Use map_partial_symbol_filenames.
6656 (struct search_symbols_data): New type.
6657 (search_symbols_file_matches): New function.
6658 (search_symbols_name_matches): Likewise.
6659 (search_symbols): Use expand_symtabs_matching method.
6660 (struct add_name_data): Rename from add_macro_name_data.
6661 (add_macro_name): Update.
6662 (add_partial_symbol_name): New function.
6663 (default_make_symbol_completion_list): Use
6664 map_partial_symbol_names.
6665 (struct add_partial_symbol_name): New type.
6666 (maybe_add_partial_symtab_filename): New function.
6667 (make_source_files_completion_list): Use
6668 map_partial_symbol_filenames.
6669 (expand_line_sal): Use expand_symtabs_with_filename method.
6670 * symmisc.c: Include psymtab.h.
6671 (print_objfile_statistics): Use print_stats method.
6672 (dump_objfile): Use dump method.
6673 (dump_psymtab, maintenance_print_psymbols)
6674 (maintenance_info_psymtabs, maintenance_check_symtabs)
6675 (extend_psymbol_list): Remove.
6676 * symfile.h (struct quick_symbol_functions): New struct.
6677 (struct sym_fns) <qf>: New field.
6678 (sort_pst_symbols): Remove.
6679 (increment_reading_symtab): Declare.
6680 * symfile.c: Include psymtab.h.
6681 (compare_psymbols, sort_pst_symbols): Remove.
6682 (psymtab_to_symtab): Remove.
6683 (increment_reading_symtab): New function.
6684 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
6686 (set_initial_language): Use find_main_filename.
6687 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
6688 (free_named_symtabs): Remove unused code.
6689 (start_psymtab_common, add_psymbol_to_bcache)
6690 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
6692 * stack.c: Include psymtab.h, symfile.h.
6693 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
6694 * source.h (psymtab_to_fullname): Don't declare.
6695 * source.c: Include psymtab.h.
6696 (select_source_symtab): Use find_last_source_symtab method.
6697 (forget_cached_source_info): Use forget_cached_source_info
6699 (find_and_open_source): No longer static.
6700 (psymtab_to_fullname): Remove.
6701 * somread.c: Include psymtab.h.
6702 (som_sym_fns): Update.
6703 * psympriv.h: New file.
6704 * psymtab.h: New file.
6705 * psymtab.c: New file.
6706 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
6707 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
6708 * objfiles.c: Include psymtab.h.
6709 (objfile_relocate1): Use relocate method.
6710 (objfile_has_partial_symbols): Use has_symbols method.
6711 * mipsread.c: Include psymtab.h.
6712 (ecoff_sym_fns): Update.
6713 * mi/mi-cmd-file.c: Include psymtab.h.
6714 (print_partial_file_name): New function.
6715 (mi_cmd_file_list_exec_source_files): Use
6716 map_partial_symbol_filenames.
6717 * mdebugread.c: Include psympriv.h.
6718 * machoread.c: Include psympriv.h.
6719 (macho_sym_fns): Update.
6720 * m2-exp.y (yylex): Use lookup_symtab.
6721 * elfread.c: Include psympriv.h.
6722 (elf_sym_fns): Update.
6723 * dwarf2read.c: Include psympriv.h.
6724 * dbxread.c: Include psympriv.h.
6725 (aout_sym_fns): Update.
6726 * cp-support.c: Include psymtab.h.
6727 (read_in_psymtabs): Remove.
6728 (make_symbol_overload_list_qualified): Use
6729 expand_symtabs_for_function method.
6730 * coffread.c: Include psympriv.h.
6731 (coff_sym_fns): Update.
6732 * blockframe.c: Include psymtab.h.
6733 (find_pc_partial_function): Use find_pc_sect_symtab method.
6734 * ada-lang.h (ada_update_initial_language): Update.
6735 * ada-lang.c: Include psymtab.h.
6736 (ada_update_initial_language): Remove 'main_pst' argument.
6737 (ada_lookup_partial_symbol): Remove.
6738 (struct ada_psym_data): New type.
6739 (ada_add_psyms): New function.
6740 (ada_add_non_local_symbols): Use map_ada_symtabs method.
6741 (struct add_partial_datum): New type.
6742 (ada_add_partial_symbol_completions): New function.
6743 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
6744 (ada_exception_support_info_sniffer): Update.
6745 * Makefile.in (SFILES): Add psymtab.c.
6746 (COMMON_OBS): Add psymtab.o.
6747 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
6749 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6751 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
6753 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
6756 * cp-namespace.c (cp_add_using): Deleted.
6757 (cp_add_using_directive): Use obstack allocations.
6758 Merged the function cp_add_using into this one.
6759 Added 'struct obstack *' argument.
6760 (cp_scan_for_anonymous_namespaces): Updated.
6761 * cp-support.h: Updated.
6762 * dwarf2read.c (read_import_statement): Updated.
6763 (read_namespace): Updated.
6765 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6767 * windows-nat.c (cygwin_conv_path): Remove old macro.
6769 2010-03-10 Pedro Alves <pedro@codesourcery.com>
6771 * breakpoint.c (condition_command): Handle watchpoint conditions.
6772 (is_hardware_watchpoint): Add comment.
6773 (is_watchpoint): New.
6774 (update_watchpoint): Don't reparse the watchpoint's condition
6777 (watchpoint_check): Use it.
6778 (bpstat_check_watchpoint): Handle it.
6779 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
6780 conditions in a frame where it makes sense.
6781 (watch_command_1): Store the innermost block of the condition
6783 (delete_breakpoint): Delete the watchpoint condition expression.
6784 * breakpoint.h (struct bp_location) <cond>: Update comment.
6785 (struct breakpoint): New field `cond_exp_valid_block'.
6787 2010-03-09 Joel Brobecker <brobecker@adacore.com>
6789 Adjust handling of Ada DIEs after dwarf2_physname patch.
6790 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
6792 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
6793 Pierre Muller <muller@ics.u-strasbg.fr>
6795 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
6796 from/to posix/win32.
6797 (windows_make_so): Use non-Cygwin 1.7 specific function.
6798 (windows_create_inferior): Make sure that cygallargs points to
6799 original args in non Cygwin 1.7. case.
6801 2010-03-09 Michael Snyder <msnyder@vmware.com>
6803 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
6804 after target_read_memory to get host byte order.
6805 (i386_process_record): Ditto.
6807 2010-03-09 Keith Seitz <keiths@redhat.com>
6809 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
6810 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
6811 print out const or volatile qualifiers, too.
6812 (c_type_print_args): Add parameters show_artificial and language.
6813 Skip artificial parameters when requested.
6814 Use the appropriate language printer.
6815 (c_type_print_varspec): Tell c_type_print_args to skip artificial
6816 parameters and pass language_c.
6817 * dwarf2read.c (die_list): New file global.
6818 (struct partial_die_info): Update comments for name field.
6819 (pdi_needs_namespace): Renamed to ...
6820 (die_needs_namespace): ... this. Rewrite.
6821 (dwarf2_linkage_name): Remove.
6822 (add_partial_symbol): Do not predicate the call to
6823 partial_die_full_name based on pdi_needs_namespace.
6824 Remove call to cp_check_possible_namespace_symbols and associated
6826 (guess_structure_name): Do not inspect child subprogram DIEs.
6827 (dwarf2_fullname): Update comments.
6828 Use die_needs_namespace to assist in computing the name.
6829 (read_func_scope): Use dwarf2_name to get the DIE's name.
6830 Use dwarf2_physname to get the "linkage name" of the DIE.
6831 (dwarf2_add_member_field): Use dwarf2_physname instead of
6832 dwarf2_linkage_name.
6833 (read_structure_type): For structs and classes, set TYPE_NAME, too.
6834 (determine_class): Remove.
6835 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
6837 (new_symbol): Unconditionally call dwarf2_name.
6838 Compute the "linkage name" using dwarf2_physname.
6839 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
6840 When determining to scan for anonymous C++ namespaces, ignore
6842 (dwarf2_physname): New function.
6843 (dwarf2_full_name): Move content to new function and call
6845 (dwarf2_compute_name): "New" function.
6846 (_initialize_dwarf2_read): Initialize die_list.
6847 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
6849 (gnu_v3_print_method_ptr): Use the physname for virtual methods
6850 without a demangled name.
6851 Print out type information for non-virtual methods.
6852 * linespec.c (decode_line_1): Force ANY string using "::" (or
6853 "." for java) to use decode_compound, and clean up any stray quoting.
6854 If we found a file symtab, re-evaluate whether the remainder is_quoted.
6855 (decode_compound): Stop consuming at an open parenthesis.
6856 Keep template parameters.
6857 Keep any overload information.
6858 Keep keywords like "const".
6859 Remove paren_pointer.
6860 Move is_quoted check from set_flags to here.
6861 Remove #if 0 code from 2000. Ten years is long enough.
6862 (find_method): Before comparing symbol names, canonicalize the string
6864 If a specific overload is requested, find it. Otherwise throw an error.
6865 (find_method_overload_end): New function.
6866 (set_flags): Remove.
6867 (decode_compound): Assume that parentheses are matched.
6869 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
6871 * linespec.c (decode_line_1): Keep important keywords like
6872 "const" and "volatile".
6873 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
6874 * typeprint.h (c_type_print_args): Add declaration.
6875 * ui-file.c (do_ui_file_obsavestring): New function.
6876 (ui_file_obsavestring): New function.
6877 * ui-file.h (ui_file_obsavestring): Add declaration.
6878 * valops.c (find_overload_match): Resolve the object to
6880 If the object is a data member, search the object for the member
6881 and return with staticp set.
6882 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
6883 Do not attempt to extract a function name from non-function types.
6884 If the extracted function name and the original name are the same,
6885 we don't have a C++ method.
6887 From Jan Kratochvil <jan.kratochvil@redhat.com>:
6888 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
6890 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
6891 and arguments from symbol lookups.
6892 * ax-gdb.c (gen_expr): Likewise.
6893 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
6894 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
6895 lookup_possible_namespace_symbol): Likewise.
6896 * cp-support.c (read_in_psymtabs): Likewise.
6897 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
6898 * language.h (la_lookup_symbol_nonlocal): Likewise.
6899 * scm-valprint.c (scm_inferior_print): Likewise.
6900 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
6901 * solib-svr.c (elf_lookup_lib): Likewise.
6902 * solib.c (show_auto_solib_add): Likewise.
6903 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
6904 * symmisc.c (maintenance_check_symtabs): Likewise.
6905 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
6906 lookup_symbol_aux_local, lookup_symbol_aux_block,
6907 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
6908 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
6909 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
6910 basic_lookup_transparent_type, find_main_psymtab,
6911 lookup_block_symbol): Likewise.
6912 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
6913 lookup_symbol_global, lookup_symbol_aux_block,
6914 lookup_symbol_partial_symbol, lookup_block_symbol,
6915 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
6917 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
6919 * python/python-internal.h: Include symtab.h.
6921 2010-03-09 Joel Brobecker <brobecker@adacore.com>
6922 Pierre Muller <muller@ics.u-strasbg.fr>
6924 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
6925 * p-valprint.c (pascal_val_print): Remove undeed block and fix
6928 2010-03-08 Tom Tromey <tromey@redhat.com>
6930 * breakpoint.c (breakpoint_1): Add "QUIT".
6932 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
6933 Pedro Alves <pedro@codesourcery.com>
6935 * solib.c (solib_find): Replace extension if
6936 solib_symbols_extension is set in the target gdbarch.
6937 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6938 solib_symbols_extension to "sym".
6939 * gdbarch.sh (solib_symbols_extension): New variable.
6940 (pstring): New function.
6941 * gdbarch.h, gdbarch.c: Regenerate.
6943 2010-03-08 Tom Tromey <tromey@redhat.com>
6947 * utils.c: Include main.h.
6948 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
6949 (defaulted_query): Use default answer if `batch_flag'.
6950 * main.h (batch_flag): Declare.
6951 * main.c (batch_flag): New global.
6952 (captured_main): Remove 'batch'. Update.
6954 2010-03-08 Kevin Buettner <kevinb@redhat.com>
6956 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
6959 * remote-mips.c (rockhopper_ops): New target_ops struct.
6960 (MON_ROCKHOPPER): New mips_monitor_type.
6961 (read_hex_value): New function.
6962 (mips_request): Send 8-byte values with a 'T' packet. Read the
6963 packet argument as a string and use read_hex_value to parse it.
6964 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
6965 (rockhopper_open): New function.
6966 (mips_wait): Read the PC, FP and SP fields as strings. Use
6967 read_hex_value to parse them and mips_set_register to commit them.
6968 (mips_set_register): New function.
6969 (mips_fetch_registers): Do not cast register value to "unsigned"
6970 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
6971 (mips_store_registers): Use a 'T' packet to set registers when
6972 using MON_ROCKHOPPER.
6973 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
6974 and expect the total to be printed before the entry address.
6975 (_initialize_remote_mips): Initialize and add rockhopper_ops.
6977 2010-03-08 Kevin Buettner <kevinb@redhat.com>
6979 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
6980 Change return value to int. Store value fetched in location
6981 addressed by `val'. Use function's return value as success
6982 or failure indicator. Adjust all callers.
6984 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
6986 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
6988 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6989 Hui Zhu <teawater@gmail.com>
6991 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
6992 tmp_to_stopped_data_address.
6993 (record_open): Reset tmp_to_stopped_by_watchpoint and
6994 tmp_to_stopped_data_address.
6995 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
6996 to_stopped_data_address.
6998 2010-03-08 Hui Zhu <teawater@gmail.com>
7000 * i386-tdep.c (i386_process_record): Initialize regnum.
7002 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7004 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
7005 Do not warn on ".gnu.liblist" and ".gnu.conflict".
7007 2010-03-08 Joel Brobecker <brobecker@adacore.com>
7009 Memory error when reading wrong core file.
7010 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
7011 errors while reading the inferior memory, and return zero if
7012 an exception was raised.
7014 2010-03-07 Michael Snyder <msnyder@vmware.com>
7016 * record.c (record_restore): Rename tmpu8 to rectype.
7018 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
7019 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
7021 (i386_record_push): Rename local tmpulongest to addr.
7023 (i386_process_record): Rename local tmpulongest to addr.
7025 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
7028 Rename local variable tmpu8 to opcode8 and regnum.
7030 2010-03-07 Joel Brobecker <brobecker@adacore.com>
7032 * remote.c (remote_get_ada_task_ptid): New function.
7033 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
7035 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
7037 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
7038 block. Define helper macros to reduce ifdefs in code.
7039 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
7040 size. Call unadorned GetModuleFileNameEx rather than
7041 GetModuleFileNameEx*.
7042 (windows_make_so): Use __PMAX to denote maximum buffer size and
7043 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
7045 (get_image_name): Use __PMAX to denote maximum buffer size.
7046 (handle_load_dll): Likewise.
7047 (windows_pid_to_exec_file): Likewise.
7048 (windows_create_inferior): Add many accommodations for older Cygwin and
7050 (bad_GetModuleFileNameExW): Control inclusion of this function based on
7051 __USEWIDE conditional.
7052 (bad_GetModuleFileNameExA): Likewise.
7053 (_initialize_loadable): Just use real function names without the dyn_
7054 part since they are defined earlier.
7056 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
7057 Tom Tromey <tromey@redhat.com>
7059 * utils.c (host_char_to_target): Add 'gdbarch' argument.
7060 (parse_escape): Likewise.
7061 * python/py-utils.c (unicode_to_target_string): Update.
7062 (unicode_to_target_python_string): Update.
7063 (target_string_to_unicode): Update.
7064 * printcmd.c (printf_command): Update.
7065 * p-exp.y (yylex): Update.
7066 * objc-exp.y (yylex): Update.
7067 * mi/mi-parse.c: Include charset.h.
7068 (mi_parse_escape): New function.
7069 (mi_parse_argv): Use it.
7070 * jv-exp.y (yylex): Update.
7071 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
7073 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
7074 * gdbarch.sh (auto_charset, auto_wide_charset): New.
7075 * gdbarch.c: Rebuild.
7076 * gdbarch.h: Rebuild.
7077 * defs.h (parse_escape): Update.
7078 * cli/cli-setshow.c: Include arch-utils.h.
7079 (do_setshow_command): Update.
7080 * cli/cli-cmds.c (echo_command): Update.
7081 * charset.h (target_charset, target_wide_charset): Update.
7082 * charset.c: Include arch-utils.h.
7083 (target_charset_name): Default to "auto".
7084 (target_wide_charset_name): Likewise.
7085 (show_target_charset_name): Handle "auto".
7086 (show_target_wide_charset_name): Likewise.
7087 (be_le_arch): New global.
7088 (set_be_le_names): Add 'gdbarch' argument.
7089 (validate): Likewise. Don't call set_be_le_names.
7090 (set_charset_sfunc, set_host_charset_sfunc)
7091 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
7093 (target_charset): Add 'gdbarch' argument.
7094 (target_wide_charset): Likewise. Remove 'byte_order' argument.
7095 (auto_target_charset_name): New global.
7096 (default_auto_charset, default_auto_wide_charset): New functions.
7097 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
7098 for target charsets. Copy result of nl_langinfo. Use GetACP if
7100 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
7101 remove 'byte_order' argument. Update.
7102 (classify_type): Likewise.
7103 (c_emit_char): Update.
7104 (c_printchar): Update.
7105 (c_printstr): Update.
7106 (c_get_string): Update.
7107 (evaluate_subexp_c): Update.
7108 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
7110 * python/python.c (gdbpy_target_charset): New function.
7111 (gdbpy_target_wide_charset): Likewise.
7112 (GdbMethods): Update.
7115 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7117 * symfile.c (build_section_addr_info_from_objfile): Do not mask
7118 off high address bits.
7120 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7122 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
7123 address as UnsignedLongLong, not LongLong.
7125 2010-03-05 Kevin Buettner <kevinb@redhat.com>
7126 Pedro Alves <pedro@codesourcery.com>
7128 * remote-mips.c (gdbthread.h): Include.
7129 (remote_mips_ptid): Declare.
7130 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
7131 (common_open): Set inferior_ptid, add it as an inferior, and
7132 as a thread too. Delete FIXME comment regarding start_remote().
7133 (mips_close): Invoke generic_mourn_inferior().
7134 (mips_kill): Make sure that target_mourn_inferior is invoked.
7135 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
7136 it's now invoked from mips_close().
7137 (mips_load): Don't null out inferior_ptid. Don't call
7138 clear_symtab_users().
7139 (mips_thread_alive, mips_pid_to_str): New functions.
7140 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
7141 to_thread_alive and to_pid_to_str operations.
7143 2010-03-04 Tom Tromey <tromey@redhat.com>
7145 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
7146 in DWARF 3 and later.
7147 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
7149 2010-03-04 Keith Seitz <keiths@redhat.com>
7151 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
7152 If the filename portion of the linespec was quoted, recheck the
7153 remainder for additional quoting.
7154 (locate_first_half): Skip over completer chars, too.
7156 2010-03-04 Tom Tromey <tromey@redhat.com>
7158 * printcmd.c (printf_command): Pass dummy argument to
7161 2010-03-04 Doug Evans <dje@google.com>
7163 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
7166 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
7168 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7170 * breakpoint.c (update_watchpoint): Create a sentinel location if
7171 the software watchpoint isn't watching any memory.
7172 (breakpoint_address_bits): Skip dummy software watchpoint locations.
7174 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7176 * utils.c (fputs_maybe_filtered): Check if there's already a top
7177 level interpreter before dereferencing it. If there isn't one,
7178 don't paginate either.
7180 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7182 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
7183 the state right when single stepping.
7184 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
7185 Get the next PC along with the instruction state.
7186 (thumb_get_next_pc): Remove.
7187 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
7189 2010-03-04 Hui Zhu <teawater@gmail.com>
7191 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
7193 2010-03-03 Pedro Alves <pedro@codesourcery.com>
7195 * utils.c (fputs_maybe_filtered): Always disable pagination if the
7196 top level interpreter is MI.
7198 2010-03-03 Stan Shebs <stan@codesourcery.com>
7200 * remote.c (remote_download_tracepoint): Iterate over locations.
7201 * tracepoint.c (validate_actionline): Ditto.
7202 (encode_actions): Add location argument.
7203 (trace_dump_command): Check all locations to see if stepping
7206 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
7207 Eli Zaretskii <eliz@gnu.org>
7209 * NEWS: Add X86 general purpose registers section.
7211 2010-03-03 Tom Tromey <tromey@redhat.com>
7214 * varobj.c (install_new_value): Handle case where new print_value
7217 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
7220 * printcmd.c (printf_command): Print end of format string using
7223 2010-03-02 Tom Tromey <tromey@redhat.com>
7225 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
7226 * defs.h (read_command_lines_1): Add missing 'void'.
7227 * cli/cli-script.c (recurse_read_control_structure): Add missing
7229 (read_next_line): Likewise.
7230 (read_command_lines_1): Likewise.
7232 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7234 * spu-tdep.c (spu_analyze_prologue): Track instruction to
7235 store backchain as part of prologue.
7237 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
7239 * progspace.c (update_address_spaces): Update inferior address spaces
7242 2010-03-02 Doug Evans <dje@google.com>
7244 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
7245 lowpc,highpc args to addrmap_set_empty.
7247 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
7249 * amd64-tdep.c (amd64_byte_names): New.
7250 (amd64_word_names): Likewise.
7251 (amd64_dword_names): Likewise.
7252 (amd64_pseudo_register_name): Likewise.
7253 (amd64_pseudo_register_read): Likewise.
7254 (amd64_pseudo_register_write): Likewise.
7255 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
7256 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
7257 set_gdbarch_pseudo_register_write and
7258 set_tdesc_pseudo_register_name. Don't call
7259 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
7261 * i386-tdep.c (i386_num_mmx_regs): Removed.
7262 (i386_num_pseudo_regs): Likewise.
7263 (i386_byte_names): New.
7264 (i386_word_names): Likewise.
7265 (i386_byte_regnum_p): Likewise.
7266 (i386_word_regnum_p): Likewise.
7267 (i386_mmx_regnum_p): Updated.
7268 (i386_pseudo_register_name): Make it global. Handle byte and
7269 word pseudo-registers.
7270 (i386_pseudo_register_read): Likewise.
7271 (i386_pseudo_register_write): Likewise.
7272 (i386_pseudo_register_type): Handle byte, word and dword
7274 (i386_register_reggroup_p): Don't include pseudo
7275 registers, except for MXX, in any register groups. Don't
7276 include pseudo byte, word, dword registers in general_reggroup.
7277 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
7278 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
7279 pseudo-registers after word pseudo-registers. Call
7280 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
7282 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
7283 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
7285 (i386_byte_regnum_p): New.
7286 (i386_word_regnum_p): Likewise.
7287 (i386_dword_regnum_p): Likewise.
7288 (i386_pseudo_register_name): Likewise.
7289 (i386_pseudo_register_read): Likewise.
7290 (i386_pseudo_register_write): Likewise.
7292 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7294 * target-descriptions.c (tdesc_type): Remove
7295 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7296 (tdesc_predefined_types): Likewise.
7297 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
7298 if flag name is empty.
7299 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
7301 * features/i386/32bit-core.xml: Define i386_eflags.
7302 * features/i386/64bit-core.xml: Likewise.
7304 * features/i386/32bit-sse.xml: Define i386_mxcsr.
7305 * features/i386/64bit-sse.xml: Likewise.
7307 * features/i386/amd64-linux.c: Regenerated.
7308 * features/i386/amd64.c: Likewise.
7309 * features/i386/i386-linux.c: Likewise.
7310 * features/i386/i386.c: Likewise.
7312 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
7314 * gdbtypes.c (append_composite_type_field_raw): New.
7315 (append_composite_type_field_aligned): Use the new function.
7316 * gdbtypes.h (append_composite_type_field_raw): Declare.
7317 * target-descriptions.c (struct tdesc_type_field): Add start and end.
7318 (struct tdesc_type_flag): New type.
7319 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
7320 kind. Add size to u.u. Add u.f for flags.
7321 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
7322 (tdesc_free_type): Likewise.
7323 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
7324 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
7325 (tdesc_add_bitfield, tdesc_add_flag): New.
7326 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
7327 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
7328 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
7329 current_type. Add current_type_size and current_type_is_flags.
7330 (tdesc_start_union): Clear the new fields.
7331 (tdesc_start_struct, tdesc_start_flags): New.
7332 (tdesc_start_field): Handle struct fields, including bitfields.
7333 (field_attributes): Make type optional. Add start and end.
7334 (union_children): Rename to struct_union_children.
7335 (union_attributes): Rename to struct_union_attributes. Add optional
7337 (flags_attributes): New.
7338 (feature_children): Add struct and flags.
7339 * features/gdb-target.dtd: Add flags and struct to features.
7340 Make field type optional. Add field start and end.
7342 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7344 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
7345 (amd64_linux_read_description): Likewise.
7346 (_initialize_amd64_linux_nat): Set to_read_description to
7347 amd64_linux_read_description.
7349 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
7350 (amd64_linux_register_name): Removed.
7351 (amd64_linux_register_type): Likewise.
7352 (amd64_linux_core_read_description): New.
7353 (amd64_linux_init_abi): Set target description to
7354 tdesc_amd64_linux if needed. Support orig_rax in target
7355 description. Don't call set_gdbarch_register_name nor
7356 set_gdbarch_register_type. Call
7357 set_gdbarch_core_read_description.
7358 (_initialize_amd64_linux_tdep): Call
7359 initialize_tdesc_amd64_linux.
7361 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
7363 * amd64-tdep.c: Include "features/i386/amd64.c".
7364 (amd64_register_names): Removed.
7365 (amd64_register_name): Likewise.
7366 (amd64_register_type): Likewise.
7367 (amd64_init_abi): Set num_core_regs and register_names. Set
7368 target description to tdesc_amd64 if needed. Don't call
7369 set_gdbarch_register_name nor set_gdbarch_register_type.
7370 (_initialize_amd64_tdep): New.
7372 * i386-linux-nat.c (i386_linux_read_description): New.
7373 (_initialize_i386_linux_nat): Set to_read_description to
7374 i386_linux_read_description.
7376 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
7377 (i386_linux_register_name): Removed.
7378 (i386_linux_core_read_description): New.
7379 (i386_linux_read_description): Likewise.
7380 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
7381 Set target description to tdesc_i386_linux if needed. Support
7382 orig_eax. Set register_reggroup_p. Call
7383 set_gdbarch_core_read_description.
7384 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
7386 * i386-linux-tdep.h (tdesc_i386_linux): New.
7388 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
7391 * i386-tdep.c: Include "features/i386/i386.c".
7392 (i386_register_names): Make it const.
7393 (i386_mmx_names): Likewise.
7394 (i386_num_register_names): Removed.
7395 (i386_register_name): Likewise.
7396 (i386_eflags_type): Likewise.
7397 (i386_mxcsr_type): Likewise.
7398 (i386_sse_type): Likewise.
7399 (i386_register_type): Likewise.
7400 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
7401 (i386_pseudo_register_name): New.
7402 (i386_pseudo_register_type): Likewise.
7403 (i386_mmx_type): Make it static.
7404 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
7405 I387_NUM_REGS. Set num_core_regs and register_names. Don't
7406 call set_gdbarch_register_name nor set_gdbarch_register_type.
7407 Set register_reggroup_p. Set target description to tdesc_i386
7408 if needed. Call set_tdesc_pseudo_register_type,
7409 set_tdesc_pseudo_register_name and tdesc_use_registers.
7410 (_initialize_i386_tdep): Call initialize_tdesc_i386.
7411 initialize_tdesc_x86_64.
7413 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
7414 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
7415 register_names, tdesc and register_reggroup_p.
7416 (I386_NUM_FREGS): Removed.
7417 (i386_eflags_type): Likewise.
7418 (i386_mxcsr_type): Likewise.
7419 (i386_mmx_type): Likewise.
7420 (i386_sse_type): Likewise.
7421 (i386_register_name): Likewise.
7422 (i386_regnum): Add I386_MXCSR_REGNUM.
7423 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
7425 * i387-tdep.h (I387_NUM_REGS): New.
7427 * regformats/i386/i386-linux.dat: Generated.
7428 * regformats/i386/i386.dat: Likewise.
7429 * regformats/i386/amd64-linux.dat: Likewise.
7430 * regformats/i386/amd64.dat: Likewise.
7432 * regformats/reg-i386-linux.dat: Removed.
7433 * regformats/reg-i386.dat: Likewise.
7434 * regformats/reg-x86-64-linux.dat: Likewise.
7435 * regformats/reg-x86-64.dat: Likewise.
7437 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
7439 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
7440 cygwin_conv_path API rather than the deprecated
7441 cygwin_conv_to_full_posix_path.
7443 (GetModuleFileNameExA): Undefine for Cygwin.
7444 (GetModuleFileNameExW): Define for Cygwin.
7445 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
7446 Call GetModuleFileNameExW and convert path to POSIX using
7448 (windows_make_so): Always define p. Drop unused variable m.
7449 Don't use Win32 functions to check file existance, rather use
7450 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
7451 Use canonicalize_file_name to get full path.
7452 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
7453 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
7454 use correct target buffer size in call to WideCharToMultiByte.
7455 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
7456 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
7457 (windows_create_inferior): Convert all paths and arguments to wchar_t
7458 and use CreateProcessW on Cygwin.
7459 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
7460 (bad_GetModuleFileNameExA): Undefine for Cygwin.
7461 (bad_GetModuleFileNameExW): Define for Cygwin.
7462 (_initialize_loadable): Load GetModuleFileNameExW into
7463 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
7465 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
7468 * python/py-frame.c (frapy_read_var): Add block argument and logic
7469 to cope with user provided blocks.
7471 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7473 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
7476 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
7478 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
7479 (COMMON_OBS): ... to here since it's used unconditionally.
7480 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
7483 2010-02-26 David Daney <ddaney@caviumnetworks.com>
7485 * mips-linux-tdep.c: Update struct sigframe comments.
7486 (SIGFRAME_CODE_OFFSET): Delete macro.
7487 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
7489 (mips_linux_n32n64_sigframe_init): Same.
7491 2010-02-26 Kevin Buettner <kevinb@redhat.com>
7493 * remote-mips.c (mips_load): Don't use pseudo-register when
7494 invalidating regcache.
7496 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7498 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
7500 2010-02-26 Pedro Alves <pedro@codesourcery.com>
7502 * NEWS: Add "New targets" section, and mention ARM Symbian
7505 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
7507 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
7508 add ADDR_SIZE member.
7509 (allocate_piece_closure): Update.
7510 (copy_pieced_value_closure): Likewise.
7511 (dwarf2_evaluate_loc_desc): Likewise.
7512 (read_pieced_value): Use DWARF address size instead of
7513 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
7515 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
7516 Tom Tromey <tromey@redhat.com>
7518 * python/py-type.c (typy_lookup_typename): Add in block argument.
7519 If provided restrict lookup to specified blocks.
7520 (gdbpy_lookup_type): Likewise.
7521 (typy_lookup_type): Likewise.
7523 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7528 * arm-symbian-tdep.c: New.
7529 * configure.tgt (arm*-*-symbianelf*): New target.
7530 (*-*-symbianelf*): New OS.
7531 * osabi.c (gdb_osabi_names): Add Symbian.
7532 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
7533 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
7534 (ALLDEPFILES): Add arm-symbian-tdep.c.
7536 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7538 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
7540 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7542 * mi/mi-main.c (mi_cmd_execute): Fix typo.
7544 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
7545 Tom Tromey <tromey@redhat.com>
7546 Thiago Jung Bauermann <bauerman@br.ibm.com>
7548 * python/python.c (_initialize_python): Call
7549 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
7550 gdbpy_initialize_blocks.
7551 * python/python-internal.h: Declare struct symbol, block and
7552 symtab_and_line. Declare block_object_type and
7554 (gdbpy_lookup_symbol gdbpy_block_for_pc)
7555 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
7556 (symbol_to_symbol_object, block_to_block_object)
7557 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
7558 (gdbpy_initialize_blocks ): Declare.
7559 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
7560 (frapy_select): Add methods.
7561 (frapy_read_var): Add symbol branch.
7562 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
7564 (SUBDIR_PYTHON_SRCS): Likewise.
7565 (py-symbol.o): New rule.
7566 (py-symtab.o): Likewise.
7567 (py-block.o): Likewise.
7568 * python/py-symbol.c: New file.
7569 * python/py-symtab.c: Likewise.
7570 * python/py-block.c: Likewise.
7572 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7576 * inferior.h (prepare_for_detach): Declare.
7577 (struct inferior) <detaching>: New field.
7578 * infrun.c (prepare_for_detach): New.
7579 (handle_inferior_event) <random signal>: Don't stop if detaching.
7580 * target.c (target_detach): Call prepare_for_detach.
7582 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7584 Per-process displaced stepping queue.
7586 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
7587 (displaced_step_gdbarch, displaced_step_closure,
7588 (displaced_step_original, displaced_step_copy): Move globals to
7590 (struct displaced_step_inferior_state): ... new structure.
7591 (displaced_step_inferior_states): New global.
7592 (get_displaced_stepping_state, add_displaced_stepping_state)
7593 (remove_displaced_stepping_state, infrun_inferior_exit): New
7595 (displaced_step_clear): Add displaced_step_inferior_state
7596 parameter, and adjust to handle it.
7597 (displaced_step_clear_cleanup): Parameter is now a
7598 displaced_step_inferior_state. Adjust.
7599 (displaced_step_prepare): Adjust.
7600 (displaced_step_fixup, displaced_step_fixup)
7601 (infrun_thread_ptid_changed, resume): Adjust.
7602 (init_wait_for_inferior): Don't call displaced_step_clear.
7603 (infrun_thread_stop_requested): Rewrite.
7604 (_initialize_infrun): Install infrun_inferior_exit as
7605 inferior_exit observer.
7607 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7609 * inferior.h (ptid_match): Declare.
7610 * infrun.c (ptid_match): New.
7611 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
7612 (handle_notification): Add debug output.
7613 * linux-nat.c (ptid_match): Delete.
7615 2010-02-24 David S. Miller <davem@davemloft.net>
7617 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
7618 * syscalls/sparc-linux.xml: New.
7619 * syscalls/sparc64-linux.xml: New.
7620 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
7621 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
7622 (sparc32_linux_get_syscall_number): New function.
7623 (sparc32_linux_init_abi): Set syscall XML file name and hook up
7624 syscall number fetcher.
7625 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
7626 (sparc64_linux_get_syscall_number): New function.
7627 (sparc64_linux_init_abi): Set syscall XML file name and hook up
7628 syscall number fetcher.
7630 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7634 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
7635 * inferior.c (add_inferior_silent): Notify inferior_added
7637 (delete_inferior_1): Notify inferior_removed observer.
7638 (exit_inferior_1): Pass inferior, not pid, to observer.
7639 (inferior_appeared): Likewise.
7640 (add_inferior_with_spaces): New.
7641 (add_inferior_command): Use the above.
7642 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
7645 * inflow.c (inflow_inferior_exit): Likewise.
7646 * jit.c (jit_inferior_exit_hook): Likewise.
7648 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
7650 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7651 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
7652 (report_initial_inferior): New.
7653 (mi_inferior_removed): Register the above. Make sure
7654 inferior_added observer is called on the first inferior.
7655 (mi_new_thread, mi_thread_exit): Thread group is now identified by
7656 inferior number, not pid.
7657 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
7659 * mi/mi-main.c (current_context): New.
7660 (proceed_thread_callback): Use typed closure.
7661 Proceed everything if pid is 0. Most implementation split into
7662 (proceed_thread): ... this.
7663 (run_one_inferior): New.
7664 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
7665 Adjust for multiexec behaviour.
7666 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7667 (mi_cmd_execute): Handle the 'thread-group' option here.
7668 Do some extra checks.
7669 * mi-parse.c (mi_parse): Handle the --all and --thread-group
7671 * mi-parse.h (struct mi_parse): New fields all and thread_group.
7673 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7675 Make -exec-run a proper MI commands.
7677 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
7678 * mi/mi-cmds.c (mi_cmds): Adjust.
7679 * mi/mi-main.c (mi_cmd_exec_run): New.
7681 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7682 Stan Shebs <stan@codesourcery.com>
7684 * tracepoint.h (set_traceframe_number)
7685 (cleanup_restore_current_traceframe): Declare.
7686 * tracepoint.c (set_traceframe_number): New.
7687 (struct current_traceframe_cleanup): New.
7688 (do_restore_current_traceframe_cleanup)
7689 (restore_current_traceframe_cleanup_dtor)
7690 (make_cleanup_restore_current_traceframe): New.
7691 * infrun.c: Include tracepoint.h.
7692 (fetch_inferior_event): Switch out and in of tfind mode.
7694 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7696 * breakpoint.c (breakpoint_init_inferior): Also delete
7697 bp_shlib_event breakpoints.
7698 * solib-frv.c (enable_break): Remove call to
7699 remove_solib_event_breakpoints.
7700 * solib-svr4.c (enable_break): Ditto.
7701 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
7702 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
7703 * solib-som.c (som_solib_create_inferior_hook): Ditto.
7704 * solib-spu.c (spu_enable_break): Ditto.
7706 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7708 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
7710 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7712 * varobj.c (varobj_update): Avoid non-constants in initializers.
7714 2010-02-23 Tom Tromey <tromey@redhat.com>
7716 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
7717 handle big-endian values.
7718 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
7720 2010-02-22 Pedro Alves <pedro@codesourcery.com>
7725 * breakpoint.c (insert_bp_location): If inserting the read
7726 watchpoint failed, fallback to an access watchpoint.
7727 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
7728 if the value changed, if not watching the same memory for writes.
7729 (watchpoint_locations_match): Add comment.
7730 (update_global_location_list): Copy the location's watchpoint type.
7731 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
7732 handle read watchpoints here.
7733 (i386_insert_watchpoint): Read watchpoints aren't supported.
7734 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
7736 * target.h (target_insert_watchpoint): Update description.
7738 2010-02-19 Tom Tromey <tromey@redhat.com>
7740 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
7741 * m2-typeprint.c (m2_print_type): Update.
7742 * gdbtypes.c (recursive_dump_type): Update.
7743 (copy_type_recursive): Update.
7744 * c-typeprint.c (c_type_print_varspec_prefix): Update.
7745 (c_type_print_base): Update.
7746 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
7748 (struct cplus_struct_type) <ntemplate_args>: Remove.
7749 <struct template_arg>: Remove.
7750 <is_dynamic>: Move earlier.
7751 (TYPE_TEMPLATE_ARGS): Remove.
7752 (TYPE_NTEMPLATE_ARGS): Remove.
7753 (TYPE_TEMPLATE_ARG): Remove.
7755 2010-02-19 Tom Tromey <tromey@redhat.com>
7757 PR c++/8693, PR c++/9496:
7758 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
7759 * c-exp.y (lex_one_token): Rename from yylex. Don't call
7760 write_dollar_variable. Don't try to classify NAME tokens.
7761 (token_and_value): New type.
7762 (token_fifo, popping, name_obstack): New globals.
7763 (classify_name): New function.
7764 (classify_inner_name): Likewise.
7766 (VARIABLE): Now has type sval.
7767 (exp : VARIABLE): Call write_dollar_variable.
7768 (qualified_name): Use TYPENAME, not typebase. Add production for
7769 multiple "::" instances.
7770 (variable): Use name_not_typename.
7771 (qualified_type): Remove.
7774 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7776 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
7777 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
7778 found by bfd_get_section_by_name.
7779 * symfile.h (struct section_addr_info) <sectindex>: New comment.
7781 2010-02-19 Joel Brobecker <brobecker@adacore.com>
7783 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
7784 7.0 section" into "Changes in 7.1".
7786 2010-02-19 Joel Brobecker <brobecker@adacore.com>
7788 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
7789 * version.in: Bump version to 7.1.50.20100219-cvs.
7791 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
7793 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
7794 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
7796 2010-02-17 Tom Tromey <tromey@redhat.com>
7798 * NEWS: Add Python API Improvements section.
7800 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
7802 * NEWS: Correct typo.
7804 2010-02-17 Tom Tromey <tromey@redhat.com>
7806 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
7808 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7810 * symfile.c (build_section_addr_info_from_objfile): Include sections
7811 only if they are SEC_ALLOC or SEC_LOAD.
7813 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
7816 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
7817 of ULONGEST for address size.
7819 2010-02-17 Tom Tromey <tromey@redhat.com>
7821 * NEWS: Add C++ improvements section.
7823 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
7825 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
7826 PyThreadState_Swap): Avoid "statement with no effect" warning.
7828 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7830 * solib-svr4.c (enable_break <target_auxv_search>): New variable
7831 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
7833 2010-02-17 Tristan Gingold <gingold@adacore.com>
7834 Petr Hluzin <petr.hluzin@gmail.com>
7836 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
7837 gdb_assert. Fix info->size for SIG prologue.
7839 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7841 * infcmd.c (show_inferior_tty_command): Check for NULL.
7842 Correct output message.
7844 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7846 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
7847 FUNCTION contains parentheses. Improve removal of a trailing
7850 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7852 * gcore.c (do_bfd_delete_cleanup): New function.
7853 (gcore_command): Use it. Discard the cleanup after success.
7854 (gcore_copy_callback): Delete dead code.
7856 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7858 * symfile.c (addr_info_make_relative): Always use
7859 find_lowest_section.
7861 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
7863 * NEWS: Added entry for namespace fixes.
7865 2010-02-15 Tom Tromey <tromey@redhat.com>
7867 * dwarf2read.c (guess_structure_name): Allocate name on the
7870 2010-02-15 Tom Tromey <tromey@redhat.com>
7872 * c-typeprint.c (c_type_print_base): Reverse order of test.
7874 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7876 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
7877 initialize it from ELF BFD. Extend the prelink condition by it.
7879 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7881 * defs.h (parse_pid_to_attach): New.
7882 * utils.c (parse_pid_to_attach): New.
7883 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
7884 * gnu-nat.c (gnu_attach): Likewise.
7885 * nto-procfs.c (procfs_attach): Likewise.
7886 * procfs.c (procfs_attach): Likewise.
7887 * windows-nat.c (windows_attach): Likewise.
7888 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
7889 * inf-ttrace.c (inf_ttrace_attach): Likewise.
7890 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
7893 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
7895 * MAINTAINERS: Add myself for write after approval privileges.
7897 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7899 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
7902 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7904 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
7905 only if INFO_VERBOSE.
7907 2010-02-12 Tomas Holmberg <th@virtutech.com>
7909 * mi/mi-main.c: Added the --reverse flag to the following MI
7910 commands: exec-continue, exec-finish, exec-next, exec-step,
7911 exec-next-instruction, exec-step-instruction. This is to
7912 support reverse execution over the MI interface to gdb.
7914 2010-02-12 Pedro Alves <pedro@codesourcery.com>
7916 * tracepoint.c (_initialize_tracepoint): Specify that the address
7917 range of `tfind outsize' is exclusive, and that the address range
7918 of `tfind range' is inclusive, in the commands' help strings.
7920 2010-02-12 Joel Brobecker <brobecker@adacore.com>
7922 Spurious "dll not found" error messages on x64-windows.
7923 * windows-nat.c: Add include of complaints.h.
7924 (handle_unload_dll): Change dll-not-found error into a complaint.
7926 2010-02-12 Pedro Alves <pedro@codesourcery.com>
7928 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
7929 bp_tracepoint and bp_fast_tracepoint, not
7930 bp_loc_software_breakpoint.
7931 (update_global_location_list): Tracepoints are never duplicates of
7934 2010-02-12 Pedro Alves <pedro@codesourcery.com>
7936 * breakpoint.c (break_command_really): Change return type to int.
7937 Return false if no breakpoint was created, true otherwise.
7938 (trace_command): Don't set the tracepoint count if no tracepoint
7940 (ftrace_command): Ditto.
7941 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
7942 created in the breakpoints table.
7944 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7945 Ulrich Weigand <uweigand@de.ibm.com>
7947 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
7949 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7951 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
7952 the offset value isn't of integral type.
7954 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7956 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
7959 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7961 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
7962 non-subscriptable types.
7963 * valarith.c (binop_types_user_defined_p): New, abstracted out
7965 (binop_user_defined_p): ... this.
7966 * value.h (binop_types_user_defined_p): Declare.
7968 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7970 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
7971 Merge uploaded TSVs before merging uploaded tracepoints.
7973 2010-02-11 Pedro Alves <pedro@codesourcery.com>
7975 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
7977 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
7979 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
7980 whitespace character after a dot in comment.
7981 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
7983 (list_args_or_locals): For the 'all' (that is
7984 -stack-list-variables) case, always output list of tuples.
7985 Output 'arg' field if variable is argument.
7987 2010-02-10 Tom Tromey <tromey@redhat.com>
7989 * parser-defs.h (parser_debug): Declare.
7990 * parse.c (_initialize_parse): Install "debug parser" set/show
7992 (parser_debug): New global.
7993 (show_parserdebug): New function.
7994 * c-exp.y (c_parse): Set yydebug.
7996 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
7998 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
7999 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8000 (tdesc_predefined_types): Add i387_ext, i386_eflags and
8002 (tdesc_find_type): New.
8003 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
8004 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8006 * target-descriptions.h (tdesc_find_type): New.
8008 2010-02-10 Michael Snyder <msnyder@vmware.com>
8010 * gdb-gdb.py: Comment fix.
8012 2010-02-09 Tristan Gingold <gingold@adacore.com>
8014 * machoread.c (macho_symfile_relocate): New function.
8015 (macho_sym_fns): Use macho_symfile_relocate instead of
8016 default_symfile_relocate.
8017 (macho_oso_data): New type.
8018 (current_oso): New variable.
8019 (macho_add_oso_symfile): Do not compute section_addr_info, but
8020 instead set vma of sections.
8021 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
8022 Set and clear current_oso.
8024 2010-02-09 Joel Brobecker <brobecker@adacore.com>
8026 Wrong type description for tagged type parameter.
8027 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
8028 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
8029 reference to a tagged type.
8031 2010-02-09 Tristan Gingold <gingold@adacore.com>
8033 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
8034 brothers of the parent.
8036 2010-02-08 Tom Tromey <tromey@redhat.com>
8040 * valops.c (search_struct_field): Make 'name' const.
8041 (search_struct_method): Likewise.
8042 (find_method_list): Make 'method' const.
8043 (value_struct_elt): Make 'name' and 'err' const.
8044 (value_find_oload_method_list): Make 'method' const.
8045 (find_overload_match): Make 'name' const.
8046 * eval.c (evaluate_subexp_standard): New locals function,
8048 <OP_FUNCALL>: Handle OP_SCOPE specially.
8050 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8052 * infrun.c (handle_inferior_event): Do not look up regcache
8053 for exited processes.
8055 2010-02-08 Chris Moller <moller@mollerware.com>
8058 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8059 warn if found, and assume length = 1.
8061 2010-02-08 Chris Moller <cmoller@redhat.com>
8064 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
8065 (cp_print_static_field) Fix use of obstacks.
8067 2010-02-08 Pedro Alves <pedro@codesourcery.com>
8069 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
8070 resumed LWPs as resumed.
8071 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
8072 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
8073 of throwing an internal error. If an LWP of a process we're not
8074 waiting for reports a signal, don't force collecting a SIGSTOP,
8075 and if it was breakpoint hit in non-stop mode, cancel it. Don't
8076 go through all LWPs cancelling breakpoints in non-stop mode.
8077 (resume_stopped_resumed_lwps): New.
8078 (linux_nat_wait): Use it.
8080 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
8082 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
8083 i386/amd64 and i386/amd64-linux.
8084 (i386/i386-expedite): New.
8085 (i386/i386-linux-expedite): Likewise.
8086 (i386/amd64-expedite):Likewise.
8087 (i386/amd64-linux-expedite): Likewise.
8088 ($(outdir)/i386/i386-linux.dat): Likewise.
8089 ($(outdir)/i386/amd64.dat): Likewise.
8090 ($(outdir)/i386/amd64-linux.dat): Likewise.
8092 * features/i386/32bit-core.xml: New.
8093 * features/i386/32bit-linux.xml: Likewise.
8094 * features/i386/32bit-sse.xml: Likewise.
8095 * features/i386/64bit-core.xml: Likewise.
8096 * features/i386/64bit-linux.xml: Likewise.
8097 * features/i386/64bit-sse.xml: Likewise.
8098 * features/i386/i386-linux.xml: Likewise.
8099 * features/i386/i386.xml: Likewise.
8100 * features/i386/amd64-linux.xml: Likewise.
8101 * features/i386/amd64.xml: Likewise.
8102 * features/i386/i386-linux.c: Likewise.
8103 * features/i386/i386.c: Likewise.
8104 * features/i386/amd64-linux.c: Likewise.
8105 * features/i386/amd64.c: Likewise.
8107 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
8110 * cp-support.h: Added char* alias element to using_direct data
8112 (cp_add_using): Added char* alias argument.
8113 (cp_add_using_directive): Ditto.
8114 * cp-namespace.c: Updated with the above changes.
8115 (cp_lookup_symbol_imports): Check for aliases.
8116 * dwarf2read.c (read_import_statement): Figure out local alias
8117 for the import and pass it on to cp_add_using.
8118 (read_namespace): Pass alias argument to cp_add_using.
8120 2010-02-05 Hui Zhu <teawater@gmail.com>
8122 * defs.h (gdb_bfd_errmsg): New extern.
8123 * exec.c (exec_file_attach): Change bfd_errmsg to
8125 * utils.c (AMBIGUOUS_MESS1): New macro.
8126 (AMBIGUOUS_MESS2): New macro.
8127 (gdb_bfd_errmsg): New function.
8129 2010-02-04 Doug Evans <dje@google.com>
8131 * solib-svr4.c (enable_break): Add comment.
8133 2010-02-04 Anthony Green <green@moxielogic.com>
8135 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
8138 2010-02-04 Tom Tromey <tromey@redhat.com>
8140 * valops.c (search_struct_field): Account for
8141 value_embedded_offset. Fix check for virtual base past the end of
8142 the object. Use value_copy when making a slice of the value.
8144 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8147 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
8148 only if gdb_stdout is a tty.
8150 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8152 * target-descriptions.c: Include "osabi.h".
8153 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
8156 2010-02-04 Tristan Gingold <gingold@adacore.com>
8158 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
8159 (macho_symtab_read): Adjust calls to macho_add_oso.
8160 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
8161 (macho_symfile_read): Adjust call to macho_oso_symfile.
8162 (macho_new_init): Move this function after declarations.
8163 (macho_symfile_init): Ditto.
8164 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
8165 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
8167 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
8169 Include MI command in remotelog.
8171 * mi/mi-main.c (mi_execute_command): Call target_log_command.
8173 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8175 * remote.c (remote_state): Remove gdbarch.
8176 (init_remote_state): Don't set gdbarch.
8177 (remote_query_supported): Pass target_gdbarch instead of
8178 rs->gdbarch to gdbarch_qsupported.
8180 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8182 * gdbarch.sh: Add qsupported.
8184 * gdbarch.c: Regenerated.
8185 * gdbarch.h: Likewise.
8187 * remote.c (remote_state): Add gdbarch.
8188 (init_remote_state): Set gdbarch.
8189 (remote_query_supported): Support gdbarch_qsupported.
8191 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
8193 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
8194 __FreeBSD_kernel_version.
8196 2010-02-03 Tristan Gingold <gingold@adacore.com>
8198 * symfile.h (struct sym_fns): Add sym_relocate field.
8199 (default_symfile_relocate): New prototype.
8200 (symfile_relocate_debug_section): First argument is now an objfile.
8201 * symfile.c (default_symfile_relocate): Rename from
8202 symfile_relocate_debug_section, first argument is now an objfile.
8203 (symfile_relocate_debug_section): New function.
8204 * coffread.c (coff_sym_fns): Set sym_relocate field.
8205 * somread.c (som_sym_fns): Ditto.
8206 * mipsread.c (ecoff_sym_fns): Ditto.
8207 * machoread.c (macho_sym_fns): Ditto.
8208 * elfread.c (elf_sym_fns): Ditto.
8209 * dwarf2read.c (dwarf2_read_section): Ditto.
8210 * xcoffread.c (xcoff_sym_fns): Ditto.
8211 * dbxread.c (aout_sym_fns): Ditto.
8212 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
8213 (elfstab_build_psymtabs): Ditto.
8215 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8217 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
8219 2010-02-02 Tom Tromey <tromey@redhat.com>
8221 * valops.c (value_cast_structs): Try downcasting using the RTTI
8224 2010-02-02 Tom Tromey <tromey@redhat.com>
8226 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
8227 (gnuv2_baseclass_offset): Now static.
8228 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
8229 * gnu-v2-abi.h: Remove.
8231 2010-02-02 Tom Tromey <tromey@redhat.com>
8233 * m2-typeprint.c (m2_record_fields): Don't use
8235 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
8236 (struct main_type) <flag_declared_class>: New field.
8237 (struct cplus_struct_type) <declared_type>: Remove.
8238 <ntemplate_args>: Move earlier.
8239 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
8240 (DECLARED_TYPE_TEMPLATE): Remove.
8241 (TYPE_DECLARED_TYPE): Remove.
8242 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
8243 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
8244 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
8247 2010-02-02 Tom Tromey <tromey@redhat.com>
8249 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
8250 * valops.c (search_struct_field): Compute nbases after calling
8252 (check_field): Call CHECK_TYPEDEF.
8253 * cp-valprint.c (cp_print_value): Pass correct address to
8254 baseclass_offset. Fix check for virtual base past the end of the
8255 object. Don't offset address passed to cp_print_value_fields or
8256 apply_val_pretty_printer.
8257 (cp_print_value_fields): Fix call to val_print.
8258 (cp_print_value_fields_rtti): New function.
8259 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
8260 * p-valprint.c (pascal_object_print_value_fields): Fix call to
8262 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
8264 * language.h (struct language_defn) <la_val_print>: Document.
8265 * c-lang.h (cp_print_value_fields_rtti): Declare.
8267 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8270 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8271 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
8272 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8274 2010-02-01 Michael Matz <matz@suse.de>
8275 Daniel Jacobowitz <dan@codesourcery.com>
8277 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
8278 functions use a frame pointer.
8280 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8282 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
8283 by a conditional setting DYN_ADDR. Use DYN_ADDR.
8284 * config/djgpp/fnchange.lst: Add translations for
8285 symbol-without-target_section.exp and symbol-without-target_section.c.
8287 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8289 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
8290 (remote_breakpoint_for_pc): Correct invalid_p check.
8291 * gdbarch.c: Regenerated.
8293 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8295 * arm-tdep.c (arm_find_mapping_symbol): New function, from
8297 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
8298 (extend_buffer_earlier): New function.
8299 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
8300 (arm_adjust_breakpoint_address): New function.
8301 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
8303 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8305 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
8306 (arm_linux_thumb2_le_breakpoint): New constants.
8307 (arm_linux_init_abi): Set thumb2_breakpoint and
8308 thumb2_breakpoint_size.
8309 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
8310 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
8311 Implement support for single stepping through IT blocks if
8312 a 32-bit Thumb breakpoint instruction is available.
8313 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
8314 is available, use it when needed.
8315 (arm_remote_breakpoint_from_pc): New function.
8316 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
8317 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
8318 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
8320 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8322 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
8323 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
8324 * gdbarch.c, gdbarch.h: Regenerated.
8325 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
8326 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
8327 gdbarch_remote_breakpoint_from_pc.
8329 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8331 * infrun.c (prepare_to_proceed): Handle other signals which might
8333 (handle_inferior_event): Move the check for unusual breakpoint
8336 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
8338 amd64 - function returning record with field straddling 2 registers.
8339 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
8340 a record of length <= 16 in which a field straddles the two
8343 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8345 Implement return values on amd64-windows.
8346 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
8347 (amd64_windows_return_value): New function.
8348 (amd64_windows_init_abi): Call set_gdbarch_return_value with
8349 amd64_windows_return_value.
8351 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8353 amd64-windows: 32 bytes allocated on stack by caller for integer
8354 parameter registers.
8355 * i386-tdep.h (struct gdbarch_tdep): Add new field
8356 integer_param_regs_saved_in_caller_frame.
8357 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8358 tdep->integer_param_regs_saved_in_caller_frame to 1.
8359 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
8360 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
8362 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8364 amd64-windows: memory args passed by pointer during function calls.
8365 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
8366 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
8367 where tdep->memory_args_by_pointer is non-zero.
8368 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8369 tdep->memory_args_by_pointer to 1.
8371 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8373 amd64-windows: Integer parameters in function calls.
8374 * i386-tdep.h (enum amd64_reg_class): New, moved here from
8376 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
8377 call_dummy_integer_regs, and classify.
8378 * amd64-tdep.h (amd64_classify): Add declaration.
8379 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
8380 (amd64_reg_class): Delete, moved to i386-tdep.h.
8381 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
8382 Replace call to amd64_classify by call to tdep->classify.
8383 (amd64_push_arguments): Get the list of registers to use for
8384 passing integer parameters from the gdbarch tdep structure,
8385 rather than using a hardcoded one. Replace calls to amd64_classify
8386 by calls to tdep->classify.
8387 (amd64_push_dummy_call): Get the register number used for
8388 the "hidden" argument from tdep->call_dummy_integer_regs.
8389 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
8390 and tdep->call_dummy_integer_regs. Set tdep->classify.
8391 * amd64-windows-tdep.c: Add include of gdbtypes.h.
8392 (amd64_windows_dummy_call_integer_regs): New static global.
8393 (amd64_windows_classify): New function.
8394 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
8395 tdep->call_dummy_integer_regs and tdep->classify.
8397 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
8399 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
8400 for the new regcache. All callers updated.
8401 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
8402 (get_thread_arch_regcache): Do not set aspace here.
8403 * regcache.h (regcache_xmalloc): Update declaration.
8405 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
8406 regcache_xmalloc updated.
8408 2010-01-28 Joel Brobecker <brobecker@adacore.com>
8410 Another -Wunused-function error in procfs.c (sparc-solaris)
8411 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
8412 Only define if SYS_syssgi is defined.
8413 (remove_dbx_link_breakpoint): Delete declaration. Move up.
8414 (dbx_link_addr, insert_dbx_link_bpt_in_file)
8415 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
8418 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
8420 * windows-nat.c (windows_initialization_done): New variable.
8421 (get_windows_debug_event): Issue error when process dies before
8422 completely initializing.
8423 (do_initial_windows_stuff): Set flag to indicate when we are done with
8424 the initial steps of attaching to the child.
8426 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8428 * symtab.h (struct symbol <symtab>): New comment on NULL values.
8430 2010-01-27 Doug Evans <dje@google.com>
8432 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
8434 * breakpoint.c (bpstat_stop_status): Delete useless code.
8436 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8438 * printcmd.c (display_uses_solib_p): Remove variable section. Access
8439 objfile via SYMBOL_SYMTAB.
8441 2010-01-26 Tom Tromey <tromey@redhat.com>
8444 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
8445 coerce_array on result.
8447 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8449 * cp-namespace.c (cp_lookup_symbol_namespace): Added
8450 search_parent argument.
8451 (cp_add_using): Initialize 'searched' field.
8452 (reset_directive_searched): New function.
8453 * cp-support.h: Add 'searched' field to using_direct struct.
8454 (cp_lookup_symbol_imports): Ditto.
8455 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
8456 Perform recursive search.
8457 Implement non parent search.
8458 * valops.c (value_maybe_namespace_elt): Updated.
8460 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8463 * dwarf2read.c (read_lexical_block_scope): Create blocks for
8464 scopes which contain using directives even if they contain no
8466 * symtab.c (lookup_symbol_aux): Pass lowest level block to
8467 la_lookup_symbol_nonlocal.
8468 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
8469 cp_lookup_symbol_namespace.
8470 (cp_lookup_symbol_namespace): Perform an import lookup at every
8472 (cp_lookup_symbol_imports): New function.
8473 (cp_lookup_symbol_in_namespace): New function.
8475 2010-01-25 Tom Tromey <tromey@redhat.com>
8478 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
8481 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8483 * configure.ac: Only use host_os part when disabling TUI on osf.
8484 Use test to check variables, prefix strings with x.
8485 * configure: Regenerate.
8487 * solib-osf.c (osf_current_sos): Initialize tail.
8489 2010-01-25 gingold <gingold@adacore.com>
8491 * windows-nat.c (windows_continue): Use %x to print thread id.
8492 (get_windows_debug_event): Ditto.
8494 2010-01-22 Tom Tromey <tromey@redhat.com>
8497 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
8498 type and arguments. Use smash_to_methodptr_type.
8499 (read_structure_type): Call quirk_gcc_member_function_pointer
8501 * gdbtypes.h (smash_to_methodptr_type): Declare.
8502 * gdbtypes.c (smash_to_methodptr_type): New function.
8503 (lookup_methodptr_type): Use it.
8505 2010-01-21 Tom Tromey <tromey@redhat.com>
8508 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
8509 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
8510 * glibc-tdep.c (find_minsym_and_objfile): Remove.
8511 (glibc_skip_solib_resolver): Use
8512 lookup_minimal_symbol_and_objfile.
8514 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
8516 * inflow.c (check_syscall): Guard by #if clause for GO32 and
8519 2010-01-20 Tom Tromey <tromey@redhat.com>
8522 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
8523 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
8524 * dwarf2expr.c (new_dwarf_expr_context): Allocate
8525 dwarf_stack_values, not CORE_ADDRs.
8526 (execute_stack_op): Change DW_OP_div and comparison operators to
8527 use signed operands.
8529 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
8531 Per-inferior args and tty and environment.
8533 * infcmd.c (inferior_args): Rename to ...
8534 (inferior_args_scratch): ... this.
8535 (inferior_io_terminal): Rename to ...
8536 (inferior_io_terminal_scratch): ... this.
8537 (inferior_argc, inferior_argv): Remove.
8538 (set_inferior_io_terminal, get_inferior_io_terminal): Store
8539 inside current_inferior().
8540 (set_inferior_tty_command, show_inferior_tty_command): New.
8541 (get_inferior_args, set_inferior_args): Store inside
8543 (notice_args_set): Likewise and rename to...
8544 (set_args_command): ... this.
8545 (set_inferior_args_vector): Likewise.
8546 (notice_args_read): Rename to...
8547 (show_args_command): ...new.
8548 (tty_command): Remove.
8549 (run_command_1): Don't free old args, as they are freed by
8550 set_inferior_arg now.
8551 (run_no_args_command): Likewise.
8552 (inferior_environ): Remove.
8553 (run_command_1): Use environment of the current inferior.
8554 (environment_info, set_environment_command)
8555 (unset_environment_command, path_info, path_command): Likewise.
8556 (_initialize_infcmd): Adjust for function and variable renames.
8557 Do not init inferior_environ.
8558 * inferior.h (set_inferior_arg): Adjust prototype.
8559 (struct inferior): New fields args, argc, argv, terminal, environment.
8560 (inferior_environ): Remove declaration.
8561 * inferior.c (free_inferior): Free new fields.
8562 (add_inferior_silent): Initialize 'environment' field.
8563 * main.c (captured_main): Set arguments only after the initial
8564 inferior has been created. Set set_inferior_io_terminal,
8566 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
8568 (_initialize_mi_cmd_env): Adjust for disappearance of global
8570 * solib.c (solib_find): Use environment of the current inferior.
8572 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8574 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
8576 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
8578 2010-01-20 Joel Brobecker <brobecker@adacore.com>
8580 Get rid of ada-lang.c:function_name_from_pc.
8581 * ada-lang.c: Add "stack.h" #include.
8582 (function_name_from_pc): Delete.
8583 (is_known_support_routine): Replace call to function_name_from_pc
8584 by call to find_frame_funname.
8585 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8587 2010-01-19 Tom Tromey <tromey@redhat.com>
8590 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
8593 2010-01-19 Tom Tromey <tromey@redhat.com>
8595 * top.c (stop_sig, float_handler, do_nothing): Remove.
8597 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8599 * breakpoint.c (watchpoint_check): Check the call
8600 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
8602 * config/djgpp/fnchange.lst: Add translations for
8603 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
8604 watchpoint-cond-gone-stripped.c.
8606 2010-01-19 Tom Tromey <tromey@redhat.com>
8609 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
8610 into parent scope, and enumerator into grandparent scope.
8612 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8614 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
8616 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8618 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
8619 i[34567]86-*-solaris2.1[0-9]*.
8620 * configure.tgt: Likewise.
8622 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8624 * NEWS: Document the source command enhancement allowing it
8625 to load Python scripts. Document the "set/show script-extension"
8628 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8630 Add -Wunused-function to compile flags.
8631 * configure.ac: Add -Wunused-function to build_warnings.
8632 * configure: Regenerate.
8634 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8636 "delete" ada-lex.c:input function, not used.
8637 * ada-lex.l: #define YY_NO_INPUT.
8639 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8641 Delete free_named_symtabs and associated cleanup.
8642 * symfile.h (free_named_symtabs): Delete declaration.
8643 * symfile.c: Remove some commented out code (clear_symtab_users_once).
8644 (cashier_psymtab): Comment function out.
8646 (free_named_symtabs): Delete.
8647 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
8648 * dbxread.c (end_psymtab): Likewise.
8649 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
8650 * exec.c (exec_close_1): Ditto.
8651 * xcoffread.c (xcoff_end_psymtab): Likewise.
8653 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8655 * stack.c (print_block_frame_labels): Comment function out.
8657 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8659 Delete unused or undefined functions.
8660 * breakpoint.c (ep_parse_optional_filename): Delete.
8661 * dcache.c (dcache_write_line): Remove declaration.
8662 * infrun.c (build_infrun): Remove declaration.
8663 * tracepoint.c (tracepoint_save_command): Remove declaration.
8664 * linux-nat.c (init_lwp_list): Delete. No longer used.
8665 * event-loop.c (check_async_signal_handlers): Delete declaration.
8666 * infrun.c (init_execution_control_state): Delete.
8667 (proceed): Update comment to avoid mentioning
8668 init_execution_control_state.
8669 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
8670 * ada-lang.c (ada_to_static_fixed_value): Delete.
8671 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
8672 * cp-namespace.c (cp_copy_usings): Delete.
8673 * xml-syscall.c (xml_number_of_syscalls): Delete.
8674 * progspace.c (find_program_space_by_num): Delete.
8675 * inflow.c (handle_sigio): Delete declaration.
8676 * hppa-tdep.c (hppa_alignof): Delete.
8677 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
8678 (mipsnbsd_core_osabi_sniffer): Delete.
8680 2010-01-18 Tom Tromey <tromey@redhat.com>
8683 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
8684 (CONST_CAST): New tokens.
8685 (exp): Add new productions.
8686 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
8688 (is_cast_operator): New function.
8689 (yylex): Handle cast operators specially.
8690 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
8691 UNOP_REINTERPRET_CAST>: New cases.
8692 * expprint.c (print_subexp_standard): Likewise.
8693 (op_name_standard): Likewise.
8694 (dump_subexp_body_standard): Likewise.
8695 * parse.c (operator_length_standard): Likewise.
8696 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
8697 UNOP_REINTERPRET_CAST.
8698 * gdbtypes.c (class_types_same_p): New function.
8699 (is_ancestor): Use it.
8700 (is_public_ancestor): New function.
8701 (is_unique_ancestor_worker): Likewise.
8702 (is_unique_ancestor): Likewise.
8703 * gdbtypes.h (class_types_same_p, is_public_ancestor)
8704 (is_unique_ancestor): Declare.
8705 * valops.c (value_reinterpret_cast): New function.
8706 (dynamic_cast_check_1): Likewise.
8707 (dynamic_cast_check_2): Likewise.
8708 (value_dynamic_cast): Likewise.
8709 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
8711 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8713 Fix build failure when building without Python support.
8714 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
8717 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8719 Use XVS field type instead of doing a parallel lookup.
8720 * ada-lang.c (ada_get_base_type): Follow the XVS field type
8721 if it is a reference type instead of doing a type lookup using
8724 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8726 Trust PAD types instead of using PAD___XVS.
8727 * ada-lang.c (trust_pad_over_xvs): New static variable.
8728 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
8729 parallel XVS type, follow the XVS type instead of the PAD type.
8730 (unwrap_value): Make sure that there is no parallel XVE type
8731 before returning the value as is.
8732 (set_ada_list, show_ada_list): New static variables.
8733 (set_ada_command, show_ada_command): New functions.
8734 (_initialize_ada_language): Add new "set/show ada" prefix commands.
8735 Add new "set/show ada trust-PAD-over-XVS" setting.
8737 2010-01-18 Tom Tromey <tromey@redhat.com>
8738 Thiago Jung Bauermann <bauerman@br.ibm.com>
8740 Allow "source" to load python scripts.
8741 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
8742 * python/python.c (source_python_script): New function.
8743 * python/python.h (source_python_script): Add declaration.
8744 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
8745 (script_ext_off, script_ext_soft, script_ext_strict)
8746 (script_ext_enums, script_ext_mode): New static constants.
8747 (show_script_ext_mode, find_and_open_script): New functions.
8748 (source_script): Enhance to handle Python scripts.
8749 (init_cli_cmds): Add set/show script-extension commands.
8751 2010-01-16 Stan Shebs <stan@codesourcery.com>
8753 * tracepoint.h (struct trace_status): Use unsigned long long
8755 * tracepoint.c (trace_status_command): Fix printf directive.
8756 (trace_save_command): Check fwrite returns, fix printf directive.
8757 (trace_filename): New global.
8758 (tfile_open): Set it, check read returns.
8759 (tfile_close): Free trace_filename.
8760 (tfile_get_traceframe_address): Check read returns.
8761 (tfile_trace_find): Ditto.
8762 (tfile_fetch_registers): Ditto.
8763 (tfile_xfer_partial): Ditto.
8764 (tfile_get_trace_state_variable_value): Ditto.
8766 2010-01-15 Stan Shebs <stan@codesourcery.com>
8768 Add trace file support.
8769 * tracepoint.h (enum trace_stop_reason): New enum.
8770 (struct trace_status): New struct.
8771 (parse_trace_status): Declare.
8772 (struct uploaded_tp): Move here from remote.c,
8773 add fields for actions.
8774 (struct uploaded_tsv): New struct.
8775 * tracepoint.c (tfile_ops): New target vector.
8776 (trace_fd): New global.
8777 (tfile_open): New function.
8778 (tfile_close): New function.
8779 (tfile_files_info): New function.
8780 (tfile_get_trace_status): New function.
8781 (tfile_get_traceframe_address): New function.
8782 (tfile_trace_find): New function.
8783 (tfile_fetch_registers): New function.
8784 (tfile_xfer_partial): New function.
8785 (tfile_get_trace_state_variable_value): New function.
8786 (init_tfile_ops): New function.
8787 (_initialize_tracepoint): Call it, add tfile target.
8788 (trace_status): New global.
8789 (current_trace_status): New function.
8790 (trace_running_p): Remove, change all users to get from
8791 current_trace_status()->running.
8792 (get_trace_status): Remove.
8793 (trace_status_command): Call target_get_trace_status directly,
8794 report more detail including tracing stop reasons.
8795 (trace_find_command): Always allow tfind on a file.
8796 (trace_find_pc_command): Ditto.
8797 (trace_find_tracepoint_command): Ditto.
8798 (trace_find_line_command): Ditto.
8799 (trace_find_range_command): Ditto.
8800 (trace_find_outside_command): Ditto.
8801 (trace_frames_offset, cur_offset): Declare as off_t.
8802 (trace_regblock_size): Rename from reg_size, update users.
8803 (parse_trace_status): New function.
8804 (tfile_interp_line): New function.
8805 (disconnect_or_stop_tracing): Ensure current trace
8806 status before asking what to do.
8807 (stop_reason_names): New global.
8808 (trace_save_command): New command.
8809 (get_uploaded_tp): Move here from remote.c.
8810 (find_matching_tracepoint): Ditto.
8811 (merge_uploaded_tracepoints): New function.
8812 (parse_trace_status): Use stop_reason_names.
8813 (_initialize_tracepoint): Define tsave command.
8814 * target.h (target_ops): New fields to_save_trace_data,
8815 to_upload_tracepoints, to_upload_trace_state_variables,
8816 to_get_raw_trace_data, change to_get_trace_status
8817 to take a pointer to a status struct.
8818 (target_save_trace_data): New macro.
8819 (target_upload_tracepoints): New macro.
8820 (target_upload_trace_state_variables): New macro.
8821 (target_get_raw_trace_data): New macro.
8822 * target.c (update_current_target): Add new methods, change
8823 signature of to_get_trace_status.
8824 * remote.c (hex2bin): Make globally visible.
8826 (remote_download_trace_state_variable): Download name also.
8827 (remote_get_trace_status): Update parameter, use
8829 (remote_save_trace_data): New function.
8830 (remote_upload_tracepoints): New function.
8831 (remote_upload_trace_state_variables): New function.
8832 (remote_get_raw_trace_data): New function.
8833 (remote_start_remote): Use them.
8834 (_initialize_remote_ops): Add operations.
8835 * ax-gdb.c: Include breakpoint.h.
8836 * breakpoint.c (create_tracepoint_from_upload): Use
8837 break_command_really, return tracepoint, warn about unimplemented
8839 * NEWS: Mention trace file addition.
8841 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8843 Fix compilation warning on gcc-3.4.
8844 * exec.c (print_section_info): Move the `displacement' variable
8845 initialization to its declaration.
8847 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8849 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
8852 2010-01-15 Eric Botcazou <botcazou@adacore.com>
8854 "info tasks" broken by typedefs in ATCB type definitions.
8855 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
8856 ada_check_typedef before retrieving the length of the type for
8859 2010-01-15 Joel Brobecker <brobecker@adacore.com>
8861 Do not use name-based lookup for unconstrained packed arrays.
8862 * ada-lang.c (find_parallel_type_by_descriptive_type):
8863 Limit the fallback to name-based lookups to the case where
8864 the type is a constrained packed array.
8866 2010-01-15 Joel Brobecker <brobecker@adacore.com>
8868 Enhance gdb-gdb.py to handle main_type.type_specific.
8869 * gdb-gdb.py: Print the type-specific part of struct main_type.
8871 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8873 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
8874 * configure: Regenerate.
8875 * config.in: Regenerate.
8876 * utils.c: Include sys/resource.h.
8877 (dump_core, can_dump_core): New.
8878 (internal_vproblem): Update the comment. Check can_dump_core while
8879 setting dump_core_p. Replace two abort calls by dump_core calls.
8881 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8882 Eli Zaretskii <eliz@gnu.org>
8884 * NEWS: Document the PIE support.
8886 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8888 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
8889 (check_is_pie_binary, _initialize_linux_tdep): Remove.
8891 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8893 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
8894 Replace exec_entry_point call by bfd_get_start_address.
8896 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8898 Support Valgrind attachments broken by the PIE support.
8899 * auxv.c: Include gdbcore.h.
8900 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
8901 parameters ops, object and annex. Remove their assertions.
8902 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
8903 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
8904 (memory_xfer_auxv): ... here.
8905 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
8907 * procfs.c (procfs_xfer_partial): Likewise.
8908 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
8909 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
8910 (svr4_solib_create_inferior_hook): Conditionalize the
8911 svr4_relocate_main_executable call.
8913 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8915 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
8916 target_section. Find SECT in current_target_sections, gdb_assert it.
8917 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
8919 * symtab.c (lookup_objfile_from_block): Return the binary file instead
8920 of separate debug info file.
8922 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8924 Support PIEs with no symfile_objfile.
8925 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
8926 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
8928 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8930 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
8932 (svr4_static_exec_displacement): ... a new function.
8933 (svr4_exec_displacement): New function.
8934 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
8935 new_offsets using alloca now. Remove variable old_chain and changed.
8936 Call objfile_relocate unconditionally now.
8938 2010-01-14 Doug Evans <dje@google.com>
8940 * gdbtypes.c (arch_flags_type): Fix comment.
8941 * gdbtypes.h (arch_composite_type): Fix comment.
8943 2009-01-14 Tristan Gingold <gingold@adacore.com>
8945 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
8946 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
8947 to symbol_file_add_from_bfd. Add OSO as separate objfile.
8948 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
8949 macho_add_oso_symfile.
8950 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
8952 2010-01-14 Joel Brobecker <brobecker@adacore.com>
8954 Tru64: Dead threads are never deleted.
8955 * dec-thread.c (dec_thread_ptid_is_alive): New function.
8956 (dec_thread_count_gdb_threads): Fix counter increment.
8957 (dec_thread_add_gdb_thread): Fix *listp increment.
8958 (resync_thread_list): Fix bug in deletion of dead threads that
8959 caused all threads to be deleted, instead of just the dead ones.
8961 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
8965 * python/python-internal.h: Add lazy_string_object_type
8967 (create_lazy_string_object, gdbpy_initialize_lazy_string)
8968 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
8969 * python/py-value.c (valpy_lazy_string): New function.
8970 (convert_value_from_python): Add lazy string conversion.
8971 * python/py-prettyprint.c (pretty_print_one_value): Check if
8972 return is also a lazy string.
8973 (print_string_repr): Add lazy string printing branch.
8974 (print_children): Likewise.
8975 * python/py-lazy-string.c: New file. Implement lazy strings.
8976 * python/python.c (_initialize_python): Call
8977 gdbpy_initialize_lazy_string.
8978 * varobj.c (value_get_print_value): Add lazy string printing
8979 branch. Account for encoding.
8980 * c-lang.c (c_printstr): Account for new encoding argument. If
8981 encoding is NULL, find encoding suited for type, otherwise use
8983 * language.h (language_defn): Add encoding argument.
8984 (LA_PRINT_STRING): Likewise.
8985 * language.c (unk_lang_printstr): Update to reflect new encoding
8986 argument to language_defn.
8987 * ada-lang.h (ada_printstr): Likewise.
8988 * c-lang.h (c_printstr): Likewise.
8989 * p-lang.h (pascal_printstr);
8990 * f-lang.c (f_printstr): Likewise.
8991 * m2-lang.c (m2_printstr): Likewise.
8992 * objc-lang.c (objc_printstr): Likewise.
8993 * p-lang.c (pascal_printstr): Likewise.
8994 * scm-lang.c (scm_printstr): Likewise.
8995 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
8997 * ada-valprint.c (ada_printstr): Likewise.
8998 * f-valprint.c (f_val_print): Likewise
8999 * m2-valprint.c (m2_val_print): Likewise.
9000 * p-valprint.c (pascal_val_print): Likewise.
9001 * expprint.c (print_subexp_standard): Likewise.
9002 * valprint.c (val_print_string): Likewise.
9003 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
9004 (SUBDIR_PYTHON_SRCS): Likewise.
9005 (py-lazy-string.o): New rule.
9007 2010-01-13 Doug Evans <dje@google.com>
9009 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
9010 uninitialized" warning from gcc on local `tree'.
9012 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
9014 Implement core awareness.
9016 * bcache.c (compare_ints): Remove
9017 (print_percentage): Use compare_positive_ints.
9018 * defs.h (compare_positive_ints): Declare.
9019 * linux-nat.h (struct lin_lwp): New field core.
9020 (linux_nat_core_of_thread_1): Declare.
9021 * linux-nat.c (add_lwp): Init the 'core' field.
9022 (linux_nat_wait_1): Record the core.
9023 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
9024 (linux_nat_add_target): Register the above.
9025 * linux-thread-db.c (update_thread_core): New.
9026 (thread_db_find_new_threads): Update core information for
9028 * remote.c (struct private_thread_info): New.
9029 (free_private_thread_info, demand_private_info): New.
9030 (PACKET_qXfer_threads, use_osdata_threads): New.
9031 (struct thread_item, threads_parsing_context
9032 (start_thread, end_thread, thread_attributes)
9033 (thread_children, threads_children, threads_elements): New.
9034 (remote_threads_info): Try qXfer:threads before anything
9036 (remote_protocol_packets): Register qXfer:threads.
9037 (remote_open_1): Init use_osdata_threads.
9038 (struct stop_reply): New field 'core'.
9039 (remote_parse_stop_reply): Parse core number.
9040 (process_stop_reply): Record core number.
9041 (remote_xfer_partial): Handle qXfer:threads.
9042 (remote_core_of_thread): New.
9043 (init_remote_ops): Register remote_core_of_thread.
9044 (_initialize_remote): Register qXfer:read.
9045 * target.c (target_core_of_thread): New
9046 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
9047 (struct target_ops): New field to_core_of_threads.
9048 (target_core_of_thread): Declare.
9049 * gdbthread.h (struct thread_info): New field private_dtor.
9050 * thread.c (print_thread_info): Report the core.
9051 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
9052 * utils.c (compare_positive_ints): New.
9053 * features/threads.dtd: New.
9054 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
9055 * mi/mi-main.c (struct collect_cores_data, collect_cores)
9056 (do_nothing, free_vector_of_osdata_items)
9057 (splay_tree_int_comparator, free_splay_tree): New.
9058 (print_one_inferior_data): Implemented printing of selected
9059 inferiors. Collect and print cores.
9060 (output_cores): New.
9061 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
9062 thread groups together with --available.
9064 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9066 * configure: Regenerate (for _STRUCTURED_PROC).
9068 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9070 Delete dead function.
9071 * ada-lang.c (extract_string): Delete. No longer used.
9073 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9075 Fix -Wunused warning in dec-thread.c.
9076 * dec-thread.c (dec_thread_count_gdb_threads)
9077 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
9079 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9081 * ada-valprint.c (ada_print_floating): Remove trailing space.
9083 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9085 Add support for DW_AT_GNAT_descriptive_type.
9086 * gdbtypes.h (enum type_specific_kind): New enum.
9087 (struct main_type) [type_specific_field]: New component.
9088 [type_specific]: Add new component "gnat_stuff".
9089 (struct gnat_aux_type): New type.
9090 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
9091 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
9092 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
9093 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
9094 (TYPE_SPECIFIC_FIELD): New macros.
9095 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
9096 type does not hold any cplus-specific data.
9097 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
9098 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
9099 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
9100 cplus-specific data.
9101 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
9102 Set new component TYPE_SPECIFIC_FIELD (type).
9103 (gnat_aux_default): New constant.
9104 (allocate_gnat_aux_type): New function.
9105 (init_type): Add initialization the type-specific stuff for
9106 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
9107 (print_gnat_stuff): New function.
9108 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
9109 specific data. Adjust code that prints the contents of the
9110 type-specific union using the TYPE_SPECIFIC_FIELD value.
9111 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
9112 the type cplus stuff for Ada types.
9113 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
9114 Error out if these routines are called with an Ada type.
9115 (read_structure_type, read_array_type, read_subrange_type):
9116 Add call to set_descriptive_type.
9117 (set_die_type): Initialize the gnat-specific data if necessary.
9118 (need_gnat_info, die_descriptive_type, set_descriptive_type):
9120 * ada-lang.c (decode_constrained_packed_array_type): Use
9121 decode_constrained_packed_array_type instead of doing a standard
9122 lookup to locate a parallel type.
9123 (find_parallel_type_by_descriptive_type): New function.
9124 (ada_find_parallel_type_with_name): New function.
9125 (ada_find_parallel_type): Reimplement using
9126 ada_find_parallel_type_with_name.
9127 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
9128 to check if type has a cplus stuff.
9129 * linespec.c (total_number_of_methods): Likewise.
9130 * mdebugread.c (new_type): Likewise.
9132 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9134 * NEWS: Document the 0b binary number prefix parsing.
9136 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9138 * objfiles.c (objfile_relocate1): Change the return type to int.
9139 Describe the new return value. Return non-zero if data changed.
9140 (objfile_relocate): New variable changed. Set it. Call
9141 breakpoint_re_set depending on CHANGED.
9143 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9145 Implement binary numbers parsing.
9146 * c-exp.y (parse_number): New case 'b' and 'B'.
9148 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9149 Tristan Gingold <gingold@adacore.com>
9151 * solib.c (info_sharedlibrary_command): Replace
9152 objfile_has_partial_symbols and objfile_has_full_symbols calls by
9153 objfile_has_symbols.
9155 2010-01-10 Joel Brobecker <brobecker@adacore.com>
9157 * NEWS: Document the improvements made to the mips-irix port.
9159 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9161 Fix the documentation of valprint.c:value_print.
9162 * valprint.c (value_print): Update the function description to
9163 mention that the syntax of the output follows the current_language,
9166 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9168 Fix displacement of separate debug info files.
9169 * objfiles.c (objfile_relocate): Rename to ...
9170 (objfile_relocate1): ... here and make it static. Extend the comment.
9171 (objfile_relocate): New function.
9172 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
9173 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
9174 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
9175 allocated using alloca.
9176 * symfile.c (copy_section_addr_info): Remove.
9177 (build_section_addr_info_from_objfile): Make it global. New variables
9178 addr_bit and mask, use them.
9179 * symfile.h (build_section_addr_info_from_objfile): New prototype.
9180 (copy_section_addr_info): Remove.
9182 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9184 Signal unwinder for mips-irix N32.
9185 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
9187 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
9188 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
9189 (SIGCONTEXT_LO_OFF): New macros.
9190 (mips_irix_n32_tramp_frame_init): New function.
9191 (mips_irix_n32_tramp_frame): New static constant.
9192 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
9194 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9196 Breakpoint in shared library does not work on mips-irix.
9197 * procfs.c: #include "observer.h".
9198 (procfs_inferior_created): New function, moving here the code
9199 which unsets the syssgi syscall-exit notifications.
9200 (procfs_create_inferior): Remove the code which unsets the syssgi
9201 syscall-exit notifications. It is too early to do this here.
9202 (_initialize_procfs): Attach the procfs_inferior_created observer.
9204 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9206 Wrong return convention for arrays (mips-irix).
9207 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
9208 128 bits or smaller are returned the same way as structs
9209 and unions of the the same size.
9211 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9213 Cannot set the PC on mips-irix.
9214 * irix5-nat.c (fill_gregset): Check regno against the raw PC
9215 register number, no the cooked one.
9217 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9219 Error while loading core file on mips-irix.
9220 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
9221 if debugging from a core file.
9223 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9225 GDB hangs when attaching to process on mips-irix.
9226 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
9227 attaching to a process.
9229 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9231 Use the correct breakpoint instruction on mips-irix.
9232 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
9233 containing the correct breakpoint instruction to use on mips-irix.
9234 Use it when the osabi is GDB_OSABI_IRIX.
9236 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9238 -Wunused warning in procfs.c (mips-irix only).
9239 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
9240 throughout instead of using praddset and prdelset respectively.
9242 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9244 GDB crash while stepping into function.
9245 * infrun.c (handle_inferior_event): Refetch the current frame
9246 after handling what.main_action, in case that pointer became
9249 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9251 Fix build failure of solaris-hosted cross debuggers.
9252 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
9254 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
9256 Fix build failure on sparc-solaris.
9257 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
9259 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9261 Move some symfile code into subroutines.
9262 * symfile.h (relative_addr_info_to_section_offsets)
9263 (addr_info_make_relative): New prototypes.
9264 * symfile.c (default_symfile_offsets): Move a part to ...
9265 (relative_addr_info_to_section_offsets): ... this new function.
9266 (default_symfile_offsets): Call it.
9267 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
9269 (addr_info_make_relative): ... this new function.
9271 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9273 Add from_tty to solib_create_inferior_hook.
9274 * infcmd.c (post_create_inferior): Move solib_add after
9275 solib_create_inferior_hook. Pass from_tty to
9276 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
9277 0 from_tty and comment why.
9278 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
9279 * linux-nat.c (linux_child_follow_fork): Likewise.
9280 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
9281 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
9283 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
9284 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
9285 * solib-null.c (null_solib_create_inferior_hook): Likewise.
9286 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
9287 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
9288 * solib-som.c (som_solib_create_inferior_hook): Likewise.
9289 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
9290 Pass it to svr4_so_ops.solib_create_inferior_hook.
9291 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
9293 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
9295 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
9297 * solib-target.c (solib_target_solib_create_inferior_hook): New
9299 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
9300 it to ops->solib_create_inferior_hook.
9301 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
9302 Move solib_add after solib_create_inferior_hook, call it now with
9303 from_tty as 0. New comment there.
9304 * solib.h (solib_create_inferior_hook): New parameter from_tty.
9305 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
9308 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
9311 * infrun.c (handle_inferior_event): Use get_thread_regcache
9312 with events ptid, not get_current_regcache.
9314 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9316 GDB crash with empty executable name (MinGW).
9317 * source.c (openp): Add assert that parameter string is not NULL.
9318 if parameter string is an empty string, then return with a failure
9321 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9323 Get rid of support for VAX Floats.
9324 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9325 (ada_vax_float_print_function): Delete.
9326 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9327 (ada_vax_float_print_function): Delete.
9328 * ada-typeprint.c (print_vax_floating_point_type): Delete.
9329 (ada_print_type): Remove support for VAX floats.
9330 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
9332 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9334 * stabsread.c (read_args): Handle zero arguments.
9336 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9338 Cannot find in-tree libiconv.a after reconfigure.
9339 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
9340 that we can use, then cache the path to this archive.
9341 * configure: Regenerate.
9343 2010-01-07 Stan Shebs <stan@codesourcery.com>
9345 Make tracepoint operations go through target vector.
9346 * target.h (enum trace_find_type): New enum.
9347 (struct target_ops): New fields to_trace_init,
9348 to_download_tracepoint, to_download_trace_state_variable,
9349 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
9350 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
9351 to_set_disconnected_tracing.
9352 (target_trace_init): New macro.
9353 (target_download_tracepoint): New macro.
9354 (target_download_trace_state_variable): New macro.
9355 (target_trace_start): New macro.
9356 (target_trace_set_readonly_regions): New macro.
9357 (target_get_trace_status): New macro.
9358 (target_trace_stop): New macro.
9359 (target_trace_find): New macro.
9360 (target_get_trace_state_variable_value): New macro.
9361 (target_set_disconnected_tracing): New macro.
9362 * target.c (update_current_target): Inherit and set defaults for
9363 tracepoint operations.
9364 * tracepoint.c (default_collect): Make globally visible.
9365 (target_is_remote): Remove, along with all calls.
9366 (tvariables_info): Call target_get_trace_state_variable_value.
9367 (remote_set_transparent_ranges): Remove.
9368 (trace_start_command): Call target_trace_init,
9369 target_download_tracepoint, etc.
9370 (download_tracepoint): Remove.
9371 (trace_stop_command): Simplify.
9372 (stop_tracing): Call target_trace_stop.
9373 (get_trace_status): Call target_get_trace_status.
9374 (trace_status_command): Add case for targets that cannot trace.
9375 (finish_tfind_command): Change to take numerical arguments, call
9377 (trace_find_command): Update call to finish_tfind_command.
9378 (trace_find_pc_command): Ditto.
9379 (trace_find_tracepoint_command): Ditto.
9380 (trace_find_line_command): Ditto.
9381 (trace_find_range_command): Ditto.
9382 (trace_find_outside_command): Ditto.
9383 (set_disconnected_tracing_value): Call
9384 target_set_disconnected_tracing.
9385 * remote.c: Add protocol encoding bits from tracepoint.c.
9386 (trace_error): Move from tracepoint.c.
9387 (remote_get_noisy_reply): Ditto.
9388 (free_actions_list_cleanup_wrapper): Ditto.
9389 (free_actions_list): Ditto.
9390 (remote_trace_init): New function.
9391 (remote_download_tracepoint): New function.
9392 (remote_download_trace_state_variable): New function.
9393 (remote_trace_set_readonly_regions): New function.
9394 (remote_trace_start): New function.
9395 (remote_get_trace_status): New function.
9396 (remote_trace_stop): New function.
9397 (remote_trace_find): New function.
9398 (remote_download_trace_state_variable): New function.
9399 (remote_set_disconnected_tracing): New function.
9400 (init_remote_ops): Add tracepoint operations.
9402 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
9404 2010-01-07 Tristan Gingold <gingold@adacore.com>
9406 * symfile.c (build_section_addr_info_from_objfile): New function.
9407 (symbol_file_add_separate): Don't use offsets from objfile but
9410 2010-01-06 Stan Shebs <stan@codesourcery.com>
9412 Support disconnected tracing.
9413 * infcmd.c (detach_command): Ask whether to stop tracing.
9414 * cli/cli-cmds.c (quit_command): Ditto.
9415 * breakpoint.h (struct breakpoint): New field number_on_target.
9416 * breakpoint.c (create_tracepoint_from_upload): New function.
9417 (get_tracepoint_by_number_on_target): New function.
9418 * remote.c (struct remote): New field disconnected_tracing.
9419 (remote_disconnected_tracing_feature): New function.
9420 (remote_protocol_features): Add DisconnectedTracing.
9421 (struct uploaded_tp): New struct.
9422 (uploaded_tps): New global.
9423 (get_uploaded_tp): New function.
9424 (find_matching_tracepoint): New function.
9425 (remote_get_tracing_state): New function.
9426 (remote_start_remote): Call it.
9427 * tracepoint.c (disconnected_tracing): New global.
9428 (trace_start_command): Initialize number_on_target.
9429 (stop_tracing): New function, split out from...
9430 (trace_stop_command): Call stop_tracing.
9431 (get_trace_status): New function, split out from...
9432 (trace_status_command): Call get_trace_status, add info on
9433 disconnection behavior.
9434 (disconnect_or_stop_tracing): New function.
9435 (finish_tfind_command): Translate from number on target.
9436 (trace_find_tracepoint_command): Translate to number on target.
9437 (send_disconnected_tracing_value): New function.
9438 (set_disconnected_tracing): New function.
9439 (_initialize_tracepoint): Add disconnected-tracing variable.
9440 * NEWS: Mention disconnected tracing.
9442 2010-01-06 Tristan Gingold <gingold@adacore.com>
9444 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
9445 parameter to main_objfile. Iterate on all separate debug objfiles.
9446 * symfile.h (symbol_file_add_separate)
9447 (find_separate_debug_file_by_debuglink): Remove parameter names.
9448 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
9449 (reread_symbols): Use free_objfile_separate_debug.
9450 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
9452 (objfile_separate_debug_iterate, add_separate_debug_objfile)
9453 (free_objfile_separate_debug): New prototypes.
9454 * objfiles.c (objfile_separate_debug_iterate): New function.
9455 (add_separate_debug_objfile, free_objfile_separate_debug): New
9457 (free_objfile): Use free_objfile_separate_debug. Adjust for
9458 multiple separate debug objfile.
9459 (objfile_has_symbols): Adjust comment. Iterate on all separate
9461 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
9463 (lookup_minimal_symbol_text): Ditto.
9464 (lookup_minimal_symbol_by_pc_name): Ditto.
9465 (lookup_minimal_symbol_solib_trampoline): Ditto.
9466 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
9469 2010-01-05 Stan Shebs <stan@codesourcery.com>
9471 Add fast tracepoints.
9472 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
9473 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
9474 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
9475 * breakpoint.c (tracepoint_type): New function.
9476 (ALL_TRACEPOINTS): Use it.
9477 (should_be_inserted): Ditto.
9478 (bpstat_check_location): Ditto.
9479 (print_one_breakpoint_location): Ditto.
9480 (user_settable_breakpoint): Ditto.
9481 (set_breakpoint_location_function): Ditto.
9482 (disable_breakpoints_in_shlibs): Ditto.
9483 (delete_trace_command): Ditto.
9484 (print_it_typical): Add bp_fast_tracepoint case.
9485 (bpstat_what): Ditto.
9486 (print_one_breakpoint_location): Ditto.
9487 (allocate_bp_location): Ditto.
9489 (breakpoint_re_set_one): Ditto.
9490 (disable_command): Ditto.
9491 (enable_command): Ditto.
9492 (check_fast_tracepoint_sals): New function.
9493 (break_command_really): Call it.
9494 (ftrace_command): New function.
9495 (_initialize_breakpoint): Add ftrace command.
9496 * gdbarch.sh (fast_tracepoint_valid_at): New.
9497 * gdbarch.h, gdbarch.c: Regenerate.
9498 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
9499 (i386_gdbarch_init): Use it.
9500 * remote.c (struct remote_state): New field fast_tracepoints.
9501 (PACKET_FastTracepoints): New packet config type.
9502 (remote_fast_tracepoint_feature): New function.
9503 (remote_protocol_features): Add FastTracepoints.
9504 (remote_supports_fast_tracepoints): New function.
9505 (_initialize_remote): Add FastTracepoints.
9506 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
9507 * NEWS: Mention fast tracepoints.
9509 2010-01-06 Joel Brobecker <brobecker@adacore.com>
9511 * gdb-gdb.py: New file.
9513 2010-01-05 Michael Snyder <msnyder@vmware.com>
9515 * infrun.c (handle_inferior_event): Fix typo in comment.
9517 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9519 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
9521 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9523 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
9525 (s390-linux32-expedite): Define.
9526 (s390-linux64-expedite): Define.
9527 (s390x-linux64-expedite): Define.
9528 * features/s390-acr.xml: New file.
9529 * features/s390-fpr.xml: New file.
9530 * features/s390-core32.xml: New file.
9531 * features/s390-core64.xml: New file.
9532 * features/s390x-core64.xml: New file.
9533 * features/s390-linux32.xml: New file.
9534 * features/s390-linux64.xml: New file.
9535 * features/s390x-linux64.xml: New file.
9536 * features/s390-linux32.c: New generated file.
9537 * features/s390-linux64.c: New generated file.
9538 * features/s390x-linux64.c: New generated file.
9540 * regformats/s390-linux32.dat: New generated file.
9541 * regformats/s390-linux64.dat: New generated file.
9542 * regformats/s390x-linux64.dat: New generated file.
9543 * regformats/reg-s390.dat: Remove.
9544 * regformats/reg-s390x.dat: Remove.
9546 * s390-nat.c: Include "auxv.h" and <elf.h>.
9547 (HWCAP_S390_HIGH_GPRS): Define if undefined.
9548 (s390_target_wordsize): New function.
9549 (s390_auxv_parse): Likewise.
9550 (s390_get_hwcap): Likewise.
9551 (s390_read_description): Likewise.
9552 (_initialize_s390_nat): Install s390_auxv_parse and
9553 s390_read_description.
9555 * s390-tdep.c: Include "features/s390-linux32.c",
9556 "features/s390-linux64.c", and "features/s390x-linux64.c".
9557 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
9558 (s390_register_call_saved): New function.
9559 (s390_register_name): Remove.
9560 (s390_register_type): Remove.
9561 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
9562 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
9563 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
9564 (s390_pseudo_register_name): New function.
9565 (s390_pseudo_register_type): New function.
9566 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
9567 Handle full GPR pesudos and varying pseudo register numbers.
9568 (s390_pseudo_register_write): Likewise
9569 (s390x_pseudo_register_read): Remove.
9570 (s390x_pseudo_register_write): Likewise.
9571 (s390_register_group): Remove.
9572 (s390_pseudo_register_group): New function.
9573 (s390_regmap_gregset): Add GPR upper halves.
9574 (s390x_regmap_gregset): Likewise.
9575 (s390_regmap_fpregset): Likewise.
9576 (s390_regmap_upper): New global variable.
9577 (s390_upper_regset): New global variable.
9578 (s390_upper_regset_sections): New global variable.
9579 (s390_regset_from_core_section): Handle GPR upper halves.
9580 (s390_core_read_description): New function.
9581 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
9582 register information. Handle varying pseudo register numbers.
9583 (s390_backchain_frame_unwind_cache): Likewise.
9584 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
9585 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
9586 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
9587 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
9588 Handle varying pseudo register numbers.
9589 (s390_unwind_pc): Handle varying pseudo register numbers.
9590 (s390_dwarf2_prev_register): New function.
9591 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
9592 register information. Handle varying pseudo register numbers.
9593 Install s390_dwarf2_prev_register to unwind full GPRs.
9594 (s390_gdbarch_init): Handle target descriptions. Assign varying
9595 pseudo register numbers. Install s390_adjust_frame_regnum.
9596 (_initialize_s390_tdep): Initialize target descriptions.
9598 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
9599 (S390_NUM_REGS): Redefine to include upper half registers.
9600 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
9601 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
9602 (tdesc_s390_linux32): Add declaration.
9603 (tdesc_s390_linux64): Likewise.
9604 (tdesc_s390x_linux64): Likewise.
9606 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9608 * regset.h (struct core_regset_section): Add HUMAN_NAME.
9609 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
9610 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
9611 (ppc_linux_vmx_regset_sections): Likewise.
9612 (ppc_linux_fp_regset_sections): Likewise.
9614 * corelow.c (get_core_register_section): Constify arguments.
9615 (get_core_registers): Use gdbarch_core_regset_sections instead
9616 of hard-coded platform-specific register section names.
9618 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9620 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
9621 a register, assume the least-significant part is used.
9622 (write_pieced_value): Likewise.
9624 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9626 * printcmd.c: Include "arch-utils.h".
9627 (do_one_display): Re-parse expression if current architecture changed.
9629 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9630 Joel Brobecker <brobecker@adacore.com>
9632 * gdbtypes.c (check_typedef): New comment on type length.
9633 * value.c (allocate_value_lazy): Remove the unused atype variable. New
9634 comment on type length.
9635 (value_primitive_field): Keep the original TYPE value, new comment.
9637 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9639 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
9640 p_start. Change != comparisons to > and < comparisons.
9642 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9644 * cli/cli-script.c (process_next_line): Check P2 overrun.
9646 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9648 Update the copyright hearder to add year 2010 for most GDB files.
9650 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9652 Fix build failure in inf-ptrace.c.
9653 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
9655 2010-01-01 Joel Brobecker <brobecker@adacore.com>
9657 * top.c (print_gdb_version): Update copyright year.
9659 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
9661 Fix break *FUN'address thread NUM.
9662 * ada-lex.l (task): Expand rule to also match the thread keyword.
9664 2010-01-01 Joel Brobecker <brobecker@adacore.com>
9666 Fix break *FUN'address task NUM.
9667 * ada-lex.l (task): New rule.
9668 * ada-lang.c (valid_task_id): Make sure the Ada task list has
9669 been built before using it.
9671 For older changes see ChangeLog-2009.
9677 version-control: never