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