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