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