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