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