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