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