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