Add a test for weak alias
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2d7b58e8
JK
12012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Execute -ix and -iex only after system and user gdbinit files.
4 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5 processing down after gdbinit files.
6
8690e634
JK
72012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8
9 Add fnmatch-gnu module.
10 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
11 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
12 * gnulib/aclocal.m4: Regenerate.
13 * gnulib/config.in: Regenerate.
14 * gnulib/configure: Regenerate.
15 * gnulib/import/dummy.c: Remove.
16 * gnulib/import/Makefile.am: Regenerate.
17 * gnulib/import/Makefile.in: Likewise.
18 * gnulib/import/m4/gnulib-cache.m4: Likewise.
19 * gnulib/import/m4/gnulib-comp.m4: Likewise.
20 * gnulib/import/alloca.c: New file.
21 * gnulib/import/alloca.in.h: Likewise.
22 * gnulib/import/config.charset: Likewise.
23 * gnulib/import/fnmatch.c: Likewise.
24 * gnulib/import/fnmatch.in.h: Likewise.
25 * gnulib/import/fnmatch_loop.c: Likewise.
26 * gnulib/import/localcharset.c: Likewise.
27 * gnulib/import/localcharset.h: Likewise.
28 * gnulib/import/m4/alloca.m4: Likewise.
29 * gnulib/import/m4/codeset.m4: Likewise.
30 * gnulib/import/m4/configmake.m4: Likewise.
31 * gnulib/import/m4/fcntl-o.m4: Likewise.
32 * gnulib/import/m4/fnmatch.m4: Likewise.
33 * gnulib/import/m4/glibc21.m4: Likewise.
34 * gnulib/import/m4/localcharset.m4: Likewise.
35 * gnulib/import/m4/locale-fr.m4: Likewise.
36 * gnulib/import/m4/locale-ja.m4: Likewise.
37 * gnulib/import/m4/locale-zh.m4: Likewise.
38 * gnulib/import/m4/mbrtowc.m4: Likewise.
39 * gnulib/import/m4/mbsinit.m4: Likewise.
40 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
41 * gnulib/import/m4/mbstate_t.m4: Likewise.
42 * gnulib/import/m4/stdbool.m4: Likewise.
43 * gnulib/import/m4/wchar_h.m4: Likewise.
44 * gnulib/import/m4/wctype_h.m4: Likewise.
45 * gnulib/import/m4/wint_t.m4: Likewise.
46 * gnulib/import/mbrtowc.c: Likewise.
47 * gnulib/import/mbsinit.c: Likewise.
48 * gnulib/import/mbsrtowcs-impl.h: Likewise.
49 * gnulib/import/mbsrtowcs-state.c: Likewise.
50 * gnulib/import/mbsrtowcs.c: Likewise.
51 * gnulib/import/ref-add.sin: Likewise.
52 * gnulib/import/ref-del.sin: Likewise.
53 * gnulib/import/stdbool.in.h: Likewise.
54 * gnulib/import/streq.h: Likewise.
55 * gnulib/import/strnlen1.c: Likewise.
56 * gnulib/import/strnlen1.h: Likewise.
57 * gnulib/import/verify.h: Likewise.
58 * gnulib/import/wchar.in.h: Likewise.
59 * gnulib/import/wctype.in.h: Likewise.
60
202cbf1c
JK
612012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
62
63 Support shell wildcards for 'set auto-load safe-path'.
64 * auto-load.c: Include fnmatch.h.
65 (filename_is_in_dir): Rename to ...
66 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
67 it. Update function comment. Rename dir_len to pattern_len. New
68 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
69 messages. Use gdb_filename_fnmatch.
70 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
71 pattern.
72 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
73 * defs.h (gdb_filename_fnmatch): New declaration.
74 * utils.c: Include fnmatch.h.
75 (gdb_filename_fnmatch): New function.
76
fb7b5af4
SDJ
772012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
78
79 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
80 `-probe' and `-probe-stap' options.
81
72d0e2c5
YQ
822012-07-01 Yao Qi <yao@codesourcery.com>
83
84 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
85 always_inserted_off, and always_inserted_enums.
86 Change always_inserted_mode's type to 'enum auto_boolean'.
87 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
88 callers.
89 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
90 of add_setshow_enum_cmd.
91 * infrun.c: Remove can_use_displaced_stepping_auto,
92 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
93 can_use_displaced_stepping_enum.
94 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
95 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
96 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
97 add_setshow_enum_cmd.
98
42e7ad6c
DE
992012-06-30 Doug Evans <dje@google.com>
100
101 * dwarf2read.c (signatured_type): Make "per_cu" member first.
102 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
103 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
104
39cf75f7
DE
1052012-06-29 Doug Evans <dje@google.com>
106
107 * linespec.c: #include "stack.h".
108 (decode_line_with_current_source): Moved here from symtab.c and
109 renamed from decode_line_spec. All callers updated.
110 (decode_line_with_last_displayed): Moved here from breakpoint.c and
111 renamed from decode_line_spec_1. All callers updated.
112 * linespec.h (decode_line_with_current_source): Move declaration here
113 from symtab.h and renamed from decode_line_spec.
114 (decode_line_with_last_displayed): Move declaration here from symtab.h
115 and renamed from decode_line_spec_1.
116 * macrocmd.c: #include "linespec.h".
117 * symtab.c: Remove #include "linespec.h".
118
433df2d4
DE
1192012-06-28 Doug Evans <dje@google.com>
120
1ce1cefd
DE
121 * dwarf2read.c (get_cu_length): New function.
122 (offset_in_cu_p, error_check_comp_unit_head): Call it.
123 (create_debug_types_hash_table): Ditto.
124 (init_cutu_and_read_dies): Ditto.
125 (init_cutu_and_read_dies_no_follow): Ditto.
126
3b80fe9b
DE
127 * dwarf2read.c (dwarf2_find_base_address): Move definition.
128
433df2d4
DE
129 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
130 (struct abbrev_table): Define.
131 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
132 abbrev_table.
133 (init_cutu_and_read_dies): Update.
134 (abbrev_table_alloc_abbrev): New function. Replaces
135 dwarf_alloc_abbrev. All callers updated.
136 (abbrev_table_add_abbrev): New function.
137 (abbrev_table_lookup_abbrev): New function. Replaces
138 dwarf2_lookup_abbrev. All callers updated.
139 (abbrev_table_read_table): New function. Contents moved here from
140 dwarf2_read_abbrevs.
141 (dwarf2_read_abbrevs): Call it.
142 (abbrev_table_free): New function.
143 (dwarf2_free_abbrev_table): Call it.
144
71caed83
SS
1452012-06-28 Stan Shebs <stan@codesourcery.com>
146
147 * osdata.c (info_osdata_command): Filter out "Title" columns
148 from non-MI uses.
149 * common/linux-osdata.c (struct osdata_type): Add title field.
150 (osdata_table): Add titles to each entry.
151 (linux_command_xfer_osdata): Add a column for title data.
152
37ce89eb
SS
1532012-06-28 Stan Shebs <stan@codesourcery.com>
154
155 Make logging work for MI.
156 * NEWS: Mention it.
157 * interps.h (interp_set_logging_ftype): New typedef.
158 (struct interp_procs): New field set_logging_proc.
159 (current_interp_set_logging): Declare.
160 * interps.c (current_interp_set_logging): New function.
161 * cli/cli-logging.c: Include interps.h.
162 (set_logging_redirect): Call current_interp_set_logging.
163 (pop_output_files): Ditto.
164 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
165 * mi/mi-console.h (mi_console_set_raw): Declare.
166 * mi/mi-console.c (mi_console_set_raw): New function.
167 * mi/mi-interp.c (saved_raw_stdout): New global.
168 (mi_set_logging): New function.
169 (_initialize_mi_interp): Add it to interp procs.
170
659c9f3a
DE
1712012-06-28 Doug Evans <dje@google.com>
172
a743abeb
DE
173 * symtab.c (lookup_symbol_aux_objfile): Use
174 ALL_OBJFILE_PRIMARY_SYMTABS.
175
659c9f3a
DE
176 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
177
da2d6d3d
JK
1782012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
179
180 * common/buffer.c: Include inttypes.h and stdint.h.
181 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
182
e5ef252a
PA
1832012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
184 Pedro Alves <palves@redhat.com>
185
186 * gdbthread.h (ALL_THREADS): New macro.
187 (thread_list): Declare.
188 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
189 going, but instead fall through to the stepping handling.
190 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
191 the passed in signal. Adjust debug output.
192 (resume_callback): Rename to ...
193 (linux_nat_resume_callback): ... this. Pass the thread's last
194 stop signal, if in "pass" state.
195 (linux_nat_resume): Adjust to rename.
196 (stop_wait_callback): New assertion. Don't respawn signals;
197 instead let the LWP remain with SIGNALLED set.
198 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
199 * remote.c (append_pending_thread_resumptions): New.
200 (remote_vcont_resume): Call it.
201 * target.h (target_resume): Extend comment.
202
1d7975eb
IS
2032012-06-28 Iain Sandoe <iain@codesourcery.com>
204
205 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
206
2e3cf129
DE
2072012-06-27 Doug Evans <dje@google.com>
208
209 * dwarf2read.c (dwarf2_cu): Add ranges_base.
210 Delete have_addr_base, unused. All uses updated.
211 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
212 (dwarf2_get_pc_bounds): Add ranges_base.
213 (dwarf2_record_block_ranges): Ditto.
214
1bb9788d
TT
2152012-06-27 Tom Tromey <tromey@redhat.com>
216
217 PR macros/7961:
218 * varobj.c (varobj_create): Update.
219 (varobj_set_value): Update.
220 * tracepoint.c (validate_actionline): Update.
221 (encode_actions_1): Update.
222 * parse.c (parse_exp_1): Add 'pc' argument.
223 (parse_exp_in_context): Add 'pc' argument. Change how
224 expression_context_pc is set.
225 (parse_expression): Update.
226 (parse_field_expression): Update.
227 * expression.h (parse_exp_1): Update.
228 * eval.c (parse_to_comma_and_eval): Update.
229 * breakpoint.c (set_breakpoint_condition): Update.
230 (update_watchpoint): Update.
231 (init_breakpoint_sal): Update
232 (find_condition_and_thread): Update.
233 (watch_command_1): Update.
234 (update_breakpoint_locations): Update.
235 * ada-lang.c (ada_read_renaming_var_value): Update.
236 (create_excep_cond_exprs): Update.
237
0bc3a05c
DE
2382012-06-27 Doug Evans <dje@google.com>
239
240 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
241 type units.
242
4bdcc0c1
DE
2432012-06-26 Doug Evans <dje@google.com>
244
245 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
246 prototype.
247 (error_check_comp_unit_head): New arg abbrev_section. All callers
248 updated.
249 (read_and_check_comp_unit_head): Ditto.
250 (read_and_check_type_unit_head): Ditto.
251
ee0bf529
SCR
2522012-06-26 Siva Chandra Reddy <sivachandra@google.com>
253
254 New attribute 'last' for gdb.Symtab_and_line.
255 * NEWS (Python Scripting): Add entry about the new attribute.
256 * python/py-symtab.c (salpy_get_last): New function which
257 implements the get method for the 'last' attribute of
258 gdb.Symtab_and_line.
259 (sal_object_getset): Add entry for the 'last' attribute.
260
1c658ad5
DE
2612012-06-26 Doug Evans <dje@google.com>
262
09262596
DE
263 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
264 (dwo_sections): Add macinfo, macro.
265 (dwarf2_locate_dwo_sections): Watch for macro sections.
266 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
267 All callers updated. Handle DWO files.
268
45cfd468
DE
269 * NEWS: Mention new options "set debug dwarf2-read" and
270 "set debug symtab-create".
271 * dwarf2read.c (dwarf2_read_debug): New static global.
272 (dwarf2_build_psymtabs_hard): Add debugging printfs.
273 (process_queue): Ditto.
274 (process_full_comp_unit): Ditto.
275 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
276 * elfread.c (elf_symfile_read): Add debugging printf.
277 * minsyms.c (install_minimal_symbols): Ditto.
278 * psymtab.c (allocate_psymtab): Ditto.
279 * symfile.c (allocate_symtab): Ditto.
280 * symtab.c (symtab_create_debug): New global.
281 (_initialize_symtab): Add new option "set debug symtab-create".
282 * symtab.h (symtab_create_debug): Declare.
283
1c658ad5
DE
284 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
285 (lookup_dwo_type_unit): Ditto.
286
6fea9e18
L
2872012-06-26 Roland McGrath <roland@hack.frob.com>
288 H.J. Lu <hongjiu.lu@intel.com>
289
290 * amd64-linux-nat.c: Include <sys/user.h>.
291 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
292 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
293 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
294
295 * configure.ac: Check if the fs_base and gs_base members of
296 `struct user_regs_struct' exist.
297 * config.in: Regenerated.
298 * configure: Likewise.
299
adb4fe3b
ME
3002012-06-25 Michael Eager <eager@eagercon.com>
301
302 PR python/14291
303 * python/python.c (gdbpy_write): Check for interrupted output.
304
fc51cce1
MGD
3052012-06-25 Greta Yorsh <greta.yorsh@arm.com>
306
307 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
308 register as a stack alignment in ARM mode.
309
40a73391
JK
3102012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
311
312 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
313 * gnulib/config.in: Regenerate.
314 * gnulib/configure: Likewise.
315 * gnulib/import/m4/extensions.m4: Update it.
316 * gnulib/import/m4/gnulib-common.m4: Likewise.
317 * gnulib/import/m4/memmem.m4: Likewise.
318 * gnulib/import/m4/mmap-anon.m4: Likewise.
319 * gnulib/import/m4/multiarch.m4: Likewise.
320 * gnulib/import/stdint.in.h: Likewise.
321
972daa01
YQ
3222012-06-24 Yao Qi <yao@codesourcery.com>
323
324 * corefile.c (write_memory_with_notification): New.
325 * gdbcore.h: Declare write_memory_with_notification.
326 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
327 'observer_notify_memory_changed' with 'write_memory_with_notification'.
328 * valops.c (value_assign): Likewise.
329 * python/py-inferior.c (infpy_write_memory): Call
330 'write_memory_with_notification'.
331
8d6e0714
JK
3322012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
333
334 * cc-with-index.sh: Use also -ex "set auto-load no".
335
156942c7
DE
3362012-06-23 Doug Evans <dje@google.com>
337
338 PR 14125
339 * NEWS: Document additions to .gdb_index.
340 * dwarf2read.c: #include "gdb/gdb-index.h".
341 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
342 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
343 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
344 (dwarf2_read_index): Recognize version 7.
345 (dw2_do_expand_symtabs_matching): New args want_specific_block,
346 block_kind, domain): All callers updated.
347 (dw2_find_symbol_file): Handle new index CU values.
348 (dw2_expand_symtabs_matching): Match symbol kind if requested.
349 (add_index_entry): New args is_static, kind. All callers updated.
350 (offset_type_compare, uniquify_cu_indices): New functions
351 (symbol_kind): New function.
352 (write_psymtabs_to_index): Remove duplicate CU values.
353 (write_psymtabs_to_index): Write .gdb_index version 7.
354
352b3eda
JB
3552012-06-22 Joel Brobecker <brobecker@adacore.com>
356
357 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
358 * configure: Regenerate.
359
2678e2af
YQ
3602012-06-20 Yao Qi <yao@codesourcery.com>
361
362 * python/py-inferior.c: Update comments of infpy_read_memory
363 and infpy_write_memory.
364
95c391b6
TT
3652012-06-19 Tom Tromey <tromey@redhat.com>
366
367 PR exp/9514:
368 * parser-defs.h (insert_type, insert_type_address_space): Declare.
369 (push_type_address_space): Remove.
370 * parse.c (insert_into_type_stack): New function.
371 (insert_type): Likewise.
372 (insert_type_address_space): Rename from push_type_address_space.
373 Insert tp_space_identifier.
374 * c-exp.y (ptr_operator): New production.
375 (abs_decl): Use ptr_operator.
376 (space_identifier): Call insert_type_address_space.
377 (ptype): Don't use const_or_volatile_or_space_identifier.
378 (const_or_volatile_noopt): Call insert_type.
379 (conversion_type_id, conversion_declarator): New productions.
380 (operator): Use conversion_type_id.
381
6ac9ef80
DE
3822012-06-18 Doug Evans <dje@google.com>
383
422d65e7
DE
384 * symtab.h (minimal_symbol): New member created_by_gdb.
385 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
386 created by gdb.
387 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
388 (search_symbols): Call it instead of lookup_symbol.
389 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
390
49f6c839
DE
391 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
392 Adjust address for DW_OP_GNU_addr_index.
393 * dwarf2expr.h (dwarf_expr_context): Update comment.
394 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
395 all callers updated. Handle TLS vars described with
396 DW_OP_GNU_const_index.
397 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
398 and DW_OP_GNU_const_index.
399 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
400
6ac9ef80
DE
401 * block.c (find_block_in_blockvector): Make explicit the fact that we
402 ignore GLOBAL_BLOCK.
403
4cd18215
TT
4042012-06-18 Tom Tromey <tromey@redhat.com>
405
406 * c-exp.y (operator): Remove trailing space after "delete" and
407 "delete[]".
408
a9b8d892
JK
4092012-06-18 Mark Kettenis <kettenis@gnu.org>
410 Jan Kratochvil <jan.kratochvil@redhat.com>
411
412 Switch i386 and derived targets to ON_STACK.
413 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
414 (amd64_dicos_init_abi): Remove its installment.
415 * dicos-tdep.c (dicos_init_abi): Remove the
416 set_gdbarch_call_dummy_location call. Update the comment here.
417 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
418 (i386_dicos_init_abi): Remove its installment.
419 * i386-tdep.c (i386_push_dummy_code): New function.
420 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
421 i386_push_dummy_code.
422
e2e4d78b
JK
4232012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
424
425 Remove stale dummy frames.
426 * breakpoint.c: Include dummy-frame.h.
427 (longjmp_breakpoint_ops): New variable.
428 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
429 bp_longjmp_call_dummy.
430 (bpstat_what, bptype_string, print_one_breakpoint_location)
431 (init_bp_location): Support bp_longjmp_call_dummy.
432 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
433 (set_longjmp_breakpoint_for_call_dummy)
434 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
435 functions.
436 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
437 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
438 FIXME comment and extend the other comment for bp_call_dummy.
439 (set_longjmp_breakpoint_for_call_dummy)
440 (check_longjmp_breakpoint_for_call_dummy): New declarations.
441 * dummy-frame.c: Include gdbthread.h.
442 (pop_dummy_frame_bpt): New function.
443 (pop_dummy_frame): Call pop_dummy_frame_bpt.
444 (dummy_frame_discard): New function.
445 (cleanup_dummy_frames): Update the comment about longjmps.
446 * dummy-frame.h (dummy_frame_discard): New declaration.
447 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
448 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
449 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
450 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
451 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
452 keep_going if IS_LONGJMP and there is no other reason to stop.
453
09d5912c
TT
4542012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
455
456 * remote-sim.c (sim_command_completer): Initialize
457 variable 'result'.
458
1788b2d3
JK
4592012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
460
461 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
462 * dwarf2loc.c (call_site_parameter_matches): Support
463 CALL_SITE_PARAMETER_PARAM_OFFSET.
464 (needs_dwarf_reg_entry_value): Push stub value.
465 * dwarf2read.c (read_call_site_scope): New variable origin. Support
466 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
467 * gdbtypes.h (enum call_site_parameter_kind): New item
468 CALL_SITE_PARAMETER_PARAM_OFFSET.
469 (struct call_site.parameter.u): New field param_offset.
470
24c5c679
JK
4712012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
472
473 Code cleanup: Generalize call_site.parameter key.
474 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
475 variable dwarf_reg. New variable kind_u. Update parameters to
476 push_dwarf_reg_entry_value.
477 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
478 * dwarf2expr.h (enum call_site_parameter_kind)
479 (union call_site_parameter_u): Forward declarations.
480 (struct dwarf_expr_context_funcs): Update parameters and their
481 description for push_dwarf_reg_entry_value.
482 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
483 * dwarf2loc.c (call_site_parameter_matches): New function.
484 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
485 description. Use call_site_parameter_matches.
486 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
487 Update parameters and their description.
488 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
489 New variable kind_u. Adjust the caller for updated parameters.
490 (needs_dwarf_reg_entry_value): Update parameters.
491 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
492 instead of attr. Update for the changed fields of struct
493 call_site_parameter.
494 * gdbtypes.h: Include dwarf2expr.h.
495 (enum call_site_parameter_kind): New.
496 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
497 fb_offset into new union u.
498
ac142d96
L
4992012-06-16 H.J. Lu <hongjiu.lu@intel.com>
500
501 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
502 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
503 for x32.
504
ba224c70
L
5052012-06-16 H.J. Lu <hongjiu.lu@intel.com>
506
507 * amd64-linux-nat.c (compat_x32_clock_t): New.
508 (compat_x32_siginfo_t): Likewise.
509 (compat_x32_siginfo_from_siginfo): Likewise.
510 (siginfo_from_compat_x32_siginfo): Likewise.
511 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
512 and siginfo_from_compat_x32_siginfo for x32.
513
7ecbc825
HZ
5142012-06-15 Hui Zhu <hui_zhu@mentor.com>
515
516 * tracepoint.c (tfile_xfer_partial): Add a lseek.
517
233dfcf0
L
5182012-06-15 H.J. Lu <hongjiu.lu@intel.com>
519
520 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
521 instead of gdbarch_ptr_bit.
522 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
523 (amd64_supply_native_gregset): Likewise.
524 (amd64_collect_native_gregset): Likewise.
525 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
526 (amd64_supply_xsave): Likewise.
527 (amd64_collect_fxsave): Likewise.
528 (amd64_collect_xsave): Likewise.
529
6da38f42
L
5302012-06-15 H.J. Lu <hongjiu.lu@intel.com>
531
532 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
533 (amd64_linux_read_description): Check DS segment register for
534 x32 process.
535
663b969e
TT
5362012-06-15 Tom Tromey <tromey@redhat.com>
537
538 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
539 init_cutu_and_read_dies.
540
d6f05027
IS
5412012-06-15 Iain Sandoe <iain@codesourcery.com>
542
543 * MAINTAINERS (Write After Approval): Add myself to the list.
544
6598ed07
TT
5452012-06-15 Tom Tromey <tromey@redhat.com>
546
547 * valops.c (value_find_oload_method_list): Now static.
548 * value.h (value_find_oload_method_list): Don't declare.
549
2b214ea6
TT
5502012-06-15 Tom Tromey <tromey@redhat.com>
551
552 * valops.c (find_overload_match): Use value_ind.
553
a210c238
MR
5542012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
555
556 * infrun.c (handle_inferior_event): Correct indentation.
557
3771a44c
DE
5582012-06-14 Doug Evans <dje@google.com>
559
560 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
561 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
562 All uses updated.
563 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
564 updated. Handle DEBUG_LOC_START_LENGTH.
565 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
566 (loclist_describe_location): Ditto.
567
1c5a993e
MR
5682012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
569
570 PR backtrace/13866
571 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
572 after hiding inline functions.
573
0b155465
JB
5742012-06-13 Joel Brobecker <brobecker@adacore.com>
575
576 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
577 _initialize_inf_ttrace.
578
45717bac
JB
5792012-06-13 Joel Brobecker <brobecker@adacore.com>
580
581 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
582 _initialize_hppa_hpux_nat.
583
34370865
JB
5842012-06-13 Joel Brobecker <brobecker@adacore.com>
585
586 * remote-sim.c (sim_command_completer): Change type of return
587 value to "VEC (char_ptr) *". Adjust implementation accordingly.
588
284c5a60
MK
5892012-06-13 Mark Kettenis <kettenis@gnu.org>
590 Jan Kratochvil <jan.kratochvil@redhat.com>
591
592 PR tdep/14222
593 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
594 stack on a 16-byte boundary.
595
2535757a
TT
5962012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
597
598 * jit.c (finalize_symtab): Set function's return type to 'void' by
599 default.
600
fff4548b
MK
6012012-06-13 Mark Kettenis <kettenis@gnu.org>
602 H.J. Lu <hongjiu.lu@intel.com>
603
5a83521a
MK
604 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
605 Move bits common to both the classic LP64 and the new x32 ILP32
606 ABI here.
607 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
608 (amd64_x32_linux_init_abi): New function.
609 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
610 subtype.
611
fff4548b
MK
612 * i386-tdep.h (i386_pseudo_register_name): New prototype.
613 * i386-tdep.c (i386_pseudo_register_name): Make public.
614 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
615 * amd64-tdep.c (amd64_dword_names): Add "eip".
616 (amd64_x32_pseudo_register_type): New function
617 (amd64_x32_init_abi): New function.
618
dd80ea3c
JK
6192012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
620
621 PR build/14003
622 * inferior.h (struct inferior_suspend_state): Comment out.
623 (struct inferior): Comment out the field suspend.
624 * infrun.c (struct infcall_suspend_state): Comment out the field
625 inferior_suspend.
626 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
627 out its assignment.
628
50af5481
JK
6292012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
630
631 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
632 * c-exp.y (classify_inner_name): Remove caller assumptions in the
633 function comment. Return ERROR for unresolved cases. Implement
634 returning proper NAME.
635 (yylex): Accept also NAME from classify_inner_name.
636 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
637 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
638 LOC_TYPEDEF type.
639 * cp-support.h (cp_lookup_nested_type): Update its declaration.
640
d55637df
TT
6412012-06-13 Tom Tromey <tromey@redhat.com>
642
643 * breakpoint.c (condition_completer): New function.
644 (_initialize_breakpoint): Use it.
645 * value.c (complete_internalvar): New function.
646 * value.h (complete_internalvar): Declare.
647
49c4e619
TT
6482012-06-13 Tom Tromey <tromey@redhat.com>
649
650 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
651 * breakpoint.c (catch_syscall_completer): Return a VEC.
652 * cli/cli-cmds.c (complete_command): Update.
653 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
654 (complete_on_enum): Likewise.
655 * command.h: Include gdb_vecs.h.
656 (completer_ftype): Change return type.
657 (complete_on_cmdlist, complete_on_enum): Likewise.
658 * completer.c (noop_completer, filename_completer)
659 (location_completer): Return a VEC.
660 (add_struct_fields): Remove 'nextp' argument. Change 'output'
661 to a VEC.
662 (expression_completer, complete_line_internal, complete_line)
663 (command_completer): Return a VEC.
664 (gdb_completion_word_break_characters, line_completion_function):
665 Update.
666 * completer.h: Include gdb_vecs.h.
667 (complete_line, noop_completer, filename_completer)
668 (expression_completer, location_completer, command_completer):
669 Update.
670 * f-lang.c (f_word_break_characters): Return a VEC.
671 * interps.c (interpreter_completer): Return a VEC.
672 * language.h (struct language_defn)
673 <la_make_symbol_completion_list>: Return a VEC.
674 * python/py-cmd.c (cmdpy_completer): Return a VEC.
675 * symtab.c (free_completion_list): Take a VEC.
676 (return_val_size, return_val_index): Remove.
677 (return_val): Now a VEC.
678 (completion_list_add_name): Update.
679 (default_make_symbol_completion_list_break_on)
680 (default_make_symbol_completion_list, make_symbol_completion_list)
681 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
682 Return a VEC.
683 (add_filename_to_list): Update.
684 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
685 <list>: Now a VEC.
686 (maybe_add_partial_symtab_filename): Update.
687 (make_source_files_completion_list): Return a VEC.
688 * symtab.h (default_make_symbol_completion_list_break_on)
689 (default_make_symbol_completion_list, make_symbol_completion_list)
690 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
691 (make_source_files_completion_list): Update.
692
625e8578
TT
6932012-06-13 Tom Tromey <tromey@redhat.com>
694
695 * breakpoint.c (add_catch_command): Use completer_ftype.
696 * breakpoint.h: Include command.h.
697 (add_catch_command): Use completer_ftype.
698 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
699 * cli/cli-decode.h (struct cmd_list_element) <completer>:
700 Use completer_ftype.
701 * command.h (completer_ftype): New typedef.
702 (set_cmd_completer): Use it.
703 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
704 completer_ftype.
705
5eb3b062
PA
7062012-06-13 Pedro Alves <palves@redhat.com>
707
708 Partial revert of previous change.
709
710 * serial.c (scb_base): New global.
711 (serial_for_fd): New.
712 (serial_open, serial_fdopen_ops): Link new serial in open serials
713 chain.
714 (do_serial_close): Unlink serial from the open serials chain.
715
8b3ee56d
PA
7162012-06-12 Pedro Alves <palves@redhat.com>
717
718 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
719 threads here.
720 (prepare_for_detach): No longer context switch here in non-stop
721 mode.
722 (fetch_inferior_event): Ditto.
723 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
724 to the event thread before removing breakpoints. Switch to the
725 event thread before inserting breakpoints and resuming.
726 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
727 event thread before resuming.
728 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
729 Switch to the event thread before removing breakpoints.
730
5d60742e
EZ
7312012-06-12 Eli Zaretskii <eliz@gnu.org>
732
733 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
734 special characters correctly for the Windows shells. See
735 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
736 report.
737 [!__MINGW32__]: Remove extra double quote character from special
738 characters.
739
a6feecf7
SS
7402012-06-11 Stan Shebs <stan@codesourcery.com>
741
742 * ui-out.h: Remove #if 0 declarations.
743 * ui-out.c: Remove #if 0 functions.
744
ddefb60f
PA
7452012-06-11 Pedro Alves <palves@redhat.com>
746
747 * ser-base.c (run_async_handler_and_reschedule): New.
748 (fd_event, push_event): Use it.
749 * serial.c (serial_open, serial_fdopen_ops): Set the initial
750 reference count to 1.
751 (do_serial_close): Set the bufp field to NULL. Use serial_unref
752 instead of xfree.
753 (serial_is_open, serial_ref, serial_unref): New.
754 * serial.h (serial_open): Adjust comment.
755 (serial_is_open): Declare.
756 (serial_close): Adjust comment.
757 (serial_ref, serial_unref) Declare.
758 (struct serial): New field 'refcnt'.
759
d5ad6aa5
PA
7602012-06-11 Pedro Alves <palves@redhat.com>
761
762 Remove #if 0'd "connect" command, and unnecessary associated
763 refcounting and serial reuse bits.
764
765 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
766 * serial.c (last_serial_opened): Delete.
767 (scb_base): Delete.
768 (serial_open): Adjust.
769 (serial_for_fd): Delete.
770 (serial_fdopen_ops, do_serial_close): Adjust.
771 (serial_fdopen_ops): Adjust.
772
318aa544
PA
7732012-06-11 Pedro Alves <palves@redhat.com>
774
775 * serial.c (do_serial_close): Remove early return when SCB is
776 null.
777
07261596
TT
7782012-06-11 Tom Tromey <tromey@redhat.com>
779
780 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
781
cc80f267
JK
7822012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
783
784 Fix regression by the "ambiguous linespec" series.
785 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
786 get_last_displayed_symtab and get_last_displayed_line and depending
787 on CURSAL.
788
356d9f9d
TT
7892012-06-11 Tom Tromey <tromey@redhat.com>
790
791 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
792 (dw2_find_symbol_file): Use it.
793
232b8704
ME
7942012-06-11 Michael Eager <eager@eagercon.com>
795
796 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
797 * mips-linux-tdep.h (mips_signals): New
798
e81a37f7
TT
7992012-06-11 Tom Tromey <tromey@redhat.com>
800
801 * infrun.c (handle_inferior_event)
802 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
803 breakpoint.
804 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
805 exception logic in all cases. Update comments.
806 (insert_longjmp_resume_breakpoint): Set the exception resume
807 breakpoint.
808
2e81047f
MR
8092012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
810
811 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
812
4e32eda7
SCR
8132012-06-09 Siva Chandra Reddy <sivachandra@google.com>
814
815 * valarith.c (binop_types_user_defined_p): Fix a typo.
816
18648a37
YQ
8172012-06-08 Yao Qi <yao@codesourcery.com>
818 Chung-Lin Tang <cltang@codesourcery.com>
819
820 * arch-utils.c (default_return_in_first_hidden_param_p): New.
821 * arch-utils.h: Declare.
822 * gdbarch.sh: Add return_in_first_hidden_param_p.
823 * gdbarch.c, gdbarch.h: Regenerated.
824 * infcall.c (call_function_by_hand): Call
825 gdbarch_return_in_first_hidden_param_p instead of
826 language_pass_by_reference.
827
828 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
829 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
830 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
831 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
832 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
833 `cplus_return_struct_by_reference'.
834 (tic6x_return_value): Handle language cplusplus.
835 (tic6x_return_in_first_hidden_param_p): New.
836 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
837
034e5797
DE
8382012-06-07 Doug Evans <dje@google.com>
839
840 * dwarf2read.c (dwarf2_cu): Add comment.
841
6a00aa1e
MR
8422012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
843
844 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
845 variable.
846 (mips_eabi_push_dummy_call): Likewise.
847 (mips_n32n64_push_dummy_call): Likewise.
848 (mips_o32_push_dummy_call): Likewise.
849 (mips_o64_push_dummy_call): Likewise.
850
eaa05d59
MR
8512012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
852
853 * mips-tdep.c (mips_convert_register_p): Correct coding style.
854
de13fcf2
MR
8552012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
856
857 * mips-tdep.c (mips_pseudo_register_type): Use
858 mips_float_register_p.
859
c3a01a22
PA
8602012-06-06 Pedro Alves <palves@redhat.com>
861
862 * infrun.c (handle_inferior_event): Remove calls to
863 reinit_frame_cache that follow a context_switch call.
864
d25f45d9
PA
8652012-06-06 Pedro Alves <palves@redhat.com>
866
867 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
868 context_switch and remove stale comment.
869
359f5fe6
PA
8702012-06-06 Pedro Alves <palves@redhat.com>
871
872 * infrun.c (struct execution_control_state): Remove
873 `new_thread_event' field.
874 (handle_inferior_event): Simplify new threads handling; don't
875 resume the inferior if we find a new thread.
876
2d4c29c5
TS
8772012-06-06 Thomas Schwinge <thomas@codesourcery.com>
878
879 * NEWS: Document the deprecation of SH's 'regs' command.
880 * inferior.h (all_registers_info): Add function declaration.
881 * sh-tdep.c (sh_show_regs): Remove variable.
882 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
883 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
884 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
885 (sh_show_regs_command): Remove functions.
886 (sh_gdbarch_init): Don't set sh_show_regs.
887 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
888 'info all-registers'.
889 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
890 (sh64_show_regs): Remove functions.
891 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
892
f5f1cdb6
JK
8932012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
894
895 * configure.ac: Move development=true below AC_INIT.
896 * configure: Regenerate.
897
bf6309af
SS
8982012-06-05 Stan Shebs <stan@codesourcery.com>
899
900 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
901 gdb_stdout.
902
45aa4659
JK
9032012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
904
905 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
906 argument as ssize_t.
907 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
908 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
909 * target.c (target_read_stack, target_write_memory)
910 (target_write_raw_memory): Likewise.
911 * target.h (target_read_stack, target_write_memory)
912 (target_write_raw_memory): Likewise.
913
1b162304
JK
9142012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
915
916 * symfile-mem.c: Change gdb_static_assert to ssize_t.
917 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
918 * target.c (target_read_memory): Change LEN to ssize_t.
919 * target.h (target_read_memory): Change LEN to ssize_t.
920
8556afb4
PA
9212012-06-05 Pedro Alves <palves@redhat.com>
922
923 PR backtrace/13866
924
925 * breakpoint.c (until_break_command): Only fetch the selected
926 frame after decode_line_1.
927
fb139f32
PA
9282012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
929
930 * solib-svr4.c (enable_break): Don't fallback to setting the solib
931 event breakpoint at _start, __start or main if a program
932 interpreter is not found.
933
a8e1bb34
JB
9342012-06-05 Joel Brobecker <brobecker@adacore.com>
935
936 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
937 Add declaration.
938 * windows-tdep.c: #include "objfiles.h".
939 (windows_iterate_over_objfiles_in_search_order): New function.
940 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
941 iterate_over_objfiles_in_search_order gdbarch method to
942 windows_iterate_over_objfiles_in_search_order.
943 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
944
19630284
JB
9452012-06-05 Joel Brobecker <brobecker@adacore.com>
946
947 * gdbarch.sh: Add generation of
948 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
949 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
950 (iterate_over_objfiles_in_search_order): New gdbarch method.
951 * gdbarch.h, gdbarch.c: Regenerate.
952 * objfiles.h (default_iterate_over_objfiles_in_search_order):
953 Add declaration.
954 * objfiles.c (default_iterate_over_objfiles_in_search_order):
955 New function.
956 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
957 out of lookup_symbol_aux_symtabs.
958 (lookup_symbol_aux_symtabs): Replace extracted-out code by
959 call to lookup_symbol_aux_objfile.
960 (struct global_sym_lookup_data): New type.
961 (lookup_symbol_global_iterator_cb): New function.
962 (lookup_symbol_global): Search for symbol using
963 gdbarch_iterate_over_objfiles_in_search_order and
964 lookup_symbol_global_iterator_cb.
965 * findvar.c (struct minsym_lookup_data): New type.
966 (minsym_lookup_iterator_cb): New function.
967 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
968 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
969 and minsym_lookup_iterator_cb.
970
67ff19f7
JB
9712012-06-05 Joel Brobecker <brobecker@adacore.com>
972
973 Revert the following patch:
974 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
975 try locating the symbol in the symbol's own objfile first, before
976 extending the search to all objfiles.
977 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
978 out of lookup_symbol_aux_symtabs.
979 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
980 Replace extracted-out code by call to lookup_symbol_aux_objfile.
981 Do not search EXCLUDE_OBJFILE.
982 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
983 (lookup_symbol_global): Search for matches in the block's objfile
984 first, before searching all other objfiles.
985
ccab2054
JB
9862012-06-05 Joel Brobecker <brobecker@adacore.com>
987
988 * breakpoint.c (find_condition_and_thread): Stop parsing
989 as soon as the first invalid keyword is found.
990
e23d4a9c
JB
9912012-06-05 Joel Brobecker <brobecker@adacore.com>
992
993 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
994
70160166
JB
9952012-06-05 Joel Brobecker <brobecker@adacore.com>
996
997 * config/djgpp/djcheck.sh: Add copyright header.
998
399501a5
JB
9992012-06-05 Joel Brobecker <brobecker@adacore.com>
1000
1001 * copyright.py (update_files, main): Fix path to update-copyright
1002 script.
1003
3770a159
JB
10042012-06-05 Joel Brobecker <brobecker@adacore.com>
1005
1006 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
1007 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
1008 for which a reminder to update by hand is printed.
1009
4aad0dfc
DE
10102012-06-04 Doug Evans <dje@google.com>
1011
1012 * buildsym.c (make_blockvector): Add comment.
1013
1f8cf220
PA
10142012-06-04 Pedro Alves <palves@redhat.com>
1015
1016 * arch-utils.c (default_gdb_signal_from_target): Delete.
1017 * arch-utils.h (default_gdb_signal_from_target): Delete.
1018 * corelow.c (core_open) <signal mapping>: Extended comment. Check
1019 gdbarch_gdb_signal_from_target_p.
1020 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
1021 predicate).
1022 * gdbarch.h: Regenerate.
1023 * gdbarch.c: Regenerate.
1024
86b49880
PA
10252012-06-04 Pedro Alves <palves@redhat.com>
1026
1027 * gdbarch.sh (gdb_signal_from_target): Mention that the
1028 implementation of the method must be host independent.
1029 * gdbarch.h: Regenerate.
1030
fe78531d
JK
10312012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1032
1033 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
1034 parameters.
1035 (target_read_memory_bfd): New function.
1036 (symbol_file_add_from_memory): Use it.
1037
d790cf0a
DE
10382012-06-03 Doug Evans <dje@google.com>
1039
78e5175a
DE
1040 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
1041 of primary symtab.
1042 (basic_lookup_transparent_type): Ditto.
1043
d790cf0a
DE
1044 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
1045 (ALL_PRIMARY_SYMTABS): Use it.
1046 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1047 * dwarf2read.c (dw2_find_symbol_file): Ditto.
1048 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
1049 * symtab.c (lookup_symbol_aux_objfile): Ditto.
1050 (basic_lookup_transparent_type): Ditto.
1051
c6e5ee5e
SDJ
10522012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
1053
1054 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
1055 it to optimize resolution of demangled name.
1056
a68ffae9
JK
10572012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1058
1059 * configure.ac (development): Define new variable.
1060 Call AC_CHECK_LIB for mcheck if $development.
1061 (ERROR_ON_WARNING): Enable it by default only if $development.
1062 * config.in: Regenerate.
1063 * configure: Regenerate.
1064
5299c1c4
JK
10652012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
1066
1067 * target.c (target_read_memory): Make LEN argument as size_t.
1068 * target.h (target_read_memory): Likewise.
1069
10702012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
1071
1072 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
1073
0c56f59b
EBM
10742012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
1075
1076 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
1077 BookE interface for PowerPC server processors if not available
1078 in the Linux Kernel.
1079
71bdabee
KS
10802012-05-31 Keith Seitz <keiths@redhat.com>
1081
1082 * linespec.c (decode_objc): Add cleanup to free
1083 INFO.FILE_SYMTABS.
1084 (find_linespec_symbols): Add cleanup to free CLASSES.
1085 * symfile.c (find_separate_debug_file_by_debuglink): Add
1086 cleanup to free DEBUGLINK.
1087 * ui-out.c (clear_header_list): No need to check if
1088 HEADER_NEXT.COLHDR is NULL.
1089 Free HEADER_NEXT.COL_NAME.
1090
acbd605d
MGD
10912012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1092
1093 * ada-lang.c (standard_lookup): Prevent uninitialized variable
1094 warning.
1095
65662cde
PA
10962012-05-30 Jeff Kenton <jkenton@tilera.com>
1097
1098 * configure.host (gdb_host_cpu): Handle tilegx*.
1099 (gdb_host): Handle tilegx-*-linux*.
1100 * tilegx-linux-nat.c: New file.
1101 * config/tilegx/linux.mh: New file.
1102
ade64f0e
PA
11032012-05-30 Jeff Kenton <jkenton@tilera.com>
1104
1105 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
1106 tilegx-linux-tdep.o.
1107 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
1108 tilegx-linux-tdep.c.
1109 * configure.tgt: Handle tilegx-*-linux*.
1110 * tilegx-tdep.h: New file.
1111 * tilegx-tdep.c: New file.
1112 * tilegx-linux-tdep.c: New file.
1113 * regformats/reg-tilegx.dat: New file.
1114
bb08bdbd
EBM
11152012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
1116
1117 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
1118 accounting of hw watchpoints on ppc.
1119
ebd86fb5
TJB
11202012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
1121
1122 * source.c (openp): Expand tilde in path entries.
1123
0a0edcd5
DE
11242012-05-29 Doug Evans <dje@google.com>
1125
98cc87bd
DE
1126 * buildsym.c (block_compar): Fix comment.
1127 (end_symtab): Fix and clarify some comments.
1128
0a0edcd5
DE
1129 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
1130 cleanup_undefined_types.
1131 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
1132 All callers updated.
1133
6f0c7050
TT
11342012-05-29 Tom Tromey <tromey@redhat.com>
1135
1136 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
1137 fails.
1138 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
1139 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
1140 fails.
1141 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
1142 fails.
1143
ec95993c
TG
11442012-05-29 Tristan Gingold <gingold@adacore.com>
1145
1146 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
1147 (struct darwin_info): ... New struct.
1148 (solib_darwin_pspace_data): New variable.
1149 (darwin_pspace_data_cleanup): New function.
1150 (get_darwin_info): Likewise.
1151 (darwin_dyld_version_ok, darwin_load_image_infos)
1152 (darwin_solib_get_all_image_info_addr_at_init)
1153 (darwin_solib_read_all_image_info_addr): Add info argument.
1154 Adjust code.
1155 (darwin_current_sos): Use per pspace structure.
1156 (darwin_solib_create_inferior_hook): Likewise.
1157 (darwin_clear_solib): Likewise.
1158 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
1159
ae25568b
PA
11602012-05-28 Pedro Alves <palves@redhat.com>
1161
1162 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
1163 block that uses them. Clear ecss before handling each event.
1164
0c5bf5a9
JK
11652012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1166
1167 * solib-svr4.c (svr4_current_sos): New comment on
1168 svr4_current_sos_via_xfer_libraries fall back.
1169
bfb05775
JK
11702012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1171
1172 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
1173 it as a fallback for TYPE_IS_OPAQUE.
1174 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
1175 symbols for lookup_symbol.
1176
685b1105
JK
11772012-05-24 John Steele Scott <toojays@toojays.net>
1178
1179 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
1180 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
1181 (producer_is_gxx_lt_4_6): Move the checking and caching to...
1182 (check_producer): ... this new function, which also checks for ICC
1183 and caches the result.
1184 (producer_is_icc): New function.
1185 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
1186 producer was ICC.
1187
22203bbf
PA
11882012-05-24 Pedro Alves <palves@redhat.com>
1189
1190 PR gdb/7205
1191
1192 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
1193 (default_gdb_signal_to_target): ... this. Add comment.
1194 (default_gdb_signal_from_host): Rename to ...
1195 (default_gdb_signal_from_target): ... this. Add comment.
1196 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
1197 (default_gdb_signal_to_target): ... this.
1198 (default_gdb_signal_from_host): Rename to ...
1199 (default_gdb_signal_from_target): ... this.
1200 * corelow.c (core_open): Adjust to naming change. Replace comment.
1201 * gdbarch.sh (gdb_signal_from_host): Rename to ...
1202 (gdb_signal_from_target): ... this. Adjust to
1203 default_gdb_signal_from_host naming change. Extend comment.
1204 (gdb_signal_to_host): Rename to ...
1205 (gdb_signal_to_target): ... this. Adjust to
1206 default_gdb_signal_to_host naming change.
1207 * gdbarch.h, gdbarch.c: Renegerate.
1208
a493e3e2
PA
12092012-05-24 Pedro Alves <palves@redhat.com>
1210
1211 PR gdb/7205
1212
1213 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1214
2ea28649
PA
12152012-05-24 Pedro Alves <palves@redhat.com>
1216
1217 PR gdb/7205
1218
1219 Replace target_signal with gdb_signal throughout.
1220
b09846a9
PA
12212012-05-24 Pedro Alves <palves@redhat.com>
1222
1223 PR tui/14159
1224
1225 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
1226 string, instead of reusing the va_list argument.
1227
e77c107e
TT
12282012-05-24 Tom Tromey <tromey@redhat.com>
1229
1230 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
1231 Remove.
1232
9fccedf7
DE
12332012-05-23 Doug Evans <dje@google.com>
1234
d50bd42b
DE
1235 * symtab.c (search_symbols): Formatting fixes.
1236 (print_symbol_info): Formatting fixes.
1237
9fccedf7
DE
1238 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
1239 int64_t change to leb128 API.
1240 (read_encoded_value, decode_frame_entry_1): Ditto.
1241 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1242 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1243 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1244 (execute_stack_op): Ditto.
1245 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1246 (safe_read_uleb128, safe_read_sleb128): Ditto.
1247 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1248 (dwarf2_compile_expr_to_ax): Ditto.
1249 (locexpr_describe_location_piece): Ditto.
1250 (disassemble_dwarf_expression): Ditto.
1251 (locexpr_describe_location_1): Ditto.
1252
f3e0e960
SS
12532012-05-23 Stan Shebs <stan@codesourcery.com>
1254 Kwok Cheung Yeung <kcy@codesourcery.com>
1255
1256 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1257 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1258 (mi-cmd-info.o): New rule.
1259 * osdata.h (info_osdata_command): New declaration.
1260 * osdata.c (info_osdata_command): Change to non-static.
1261 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1262 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1263 * mi/mi-cmd-info.c: New file.
1264
c51fe631
DE
12652012-05-23 Doug Evans <dje@google.com>
1266
71cddcc1
DE
1267 * symtab.c (search_symbols): Pass NULL for file_matcher to
1268 expand_symtabs_matching if there are no files to match.
1269
c51fe631
DE
1270 * gdbtypes.c (lookup_typename): Simplify.
1271
a79378d4
PA
12722012-05-23 Pedro Alves <palves@redhat.com>
1273
1274 * arch-utils.h (default_target_signal_to_host): Delete.
1275 * arch-utils.c (default_target_signal_to_host): Delete.
1276 * gdbarch.sh (target_signal_to_host): Remove.
1277 * gdbarch.h, gdbarch.c: Regenerate.
1278
f664829e
DE
12792012-05-22 Doug Evans <dje@google.com>
1280
1281 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1282 "const gdb_byte *".
1283 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1284 (execute_cfa_program): Update to match API of leb128 functions.
1285 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1286 "const gdb_byte *".
1287 (read_unsigned_leb128, read_signed_leb128): Delete.
1288 (read_initial_length): Change type of buf argument to
1289 "const gdb_byte *".
1290 (read_encoded_value): Update to match API of leb128 functions.
1291 (decode_frame_entry): Change result to "const gdb_byte *", and
1292 similarly for "start" parameter.
1293 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
1294 (dwarf2_build_frame_info): Change local frame_ptr to
1295 "const gdb_byte *".
1296 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1297 read_uleb128, read_sleb128. All callers updated.
1298 (safe_skip_leb128): New function.
1299 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1300 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1301 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1302 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
1303 read_uleb128, read_sleb128.
1304 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1305 (execute_stack_op): Update to match API of leb128 functions.
1306 * dwarf2expr.h: #include "leb128.h".
1307 (read_uleb128, read_sleb128): Delete.
1308 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1309 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1310 * dwarf2loc.c (debug_loc_kind): New enum.
1311 (decode_debug_loc_addresses): New function.
1312 (decode_debug_loc_dwo_addresses): New function.
1313 (dwarf2_find_location_expression): Rewrite.
1314 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1315 (locexpr_describe_location_piece): Ditto.
1316 (disassemble_dwarf_expression): Ditto.
1317 (locexpr_describe_location_1): Ditto.
1318 (loclist_describe_location): Rewrite.
1319 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1320 * dwarf2read.c (die_reader_specs): New member "buffer_end".
1321 (dwarf2_section_buffer_overflow_complaint): Renamed from
1322 dwarf2_macros_too_long_complaint. All callers updated.
1323 (skip_leb128): Delete.
1324 (init_cu_die_reader): Initialize reader->buffer_end.
1325 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1326 (skip_form_bytes): New arg buffer_end. All callers updated.
1327 Replace call to skip_leb128 with gdb_skip_leb128.
1328 (skip_unknown_opcode): New arg mac_end. All callers updated.
1329 (fill_in_loclist_baton): Initialize baton->from_dwo.
1330
837a1b32
MR
13312012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1332
1333 * mips-linux-nat.c (mips_linux_read_description): Use a more
1334 verbose error message.
1335
d0e64392
MR
13362012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1337
1338 * NEWS: Add MIPS/Linux DSP support.
1339 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1340 (SIGCONTEXT_DSPCTL): New macro.
1341 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1342 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1343 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1344 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1345 (N64_SIGCONTEXT_HI3): Likewise.
1346 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1347 (N64_SIGCONTEXT_LO3): Likewise.
1348 (N64_SIGCONTEXT_DSPCTL): Likewise.
1349 (N64_SIGCONTEXT_FPCSR): Clarify definition.
1350 (mips_linux_o32_sigframe_init): Handle DSP registers.
1351 (mips_linux_n32n64_sigframe_init): Likewise.
1352
8bea7ed1
PM
13532012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1354
1355 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1356 call to abort.
1357
dab06dbe
PA
13582012-05-22 Pedro Alves <palves@redhat.com>
1359
1360 * target.h (store_waitstatus): Move declaration ...
1361 * inf-child.h (store_waitstatus): ... here.
1362 * target.c: Move inclusion of gdb_wait.h, and ...
1363 (store_waitstatus): ... this ...
1364 * inf-child.c: ... here.
1365 * linux-nat.c: Include inf-child.h.
1366 * rs6000-nat.c: Include inf-child.h.
1367 * spu-linux-nat.c: Include inf-child.h.
1368
43011e52
PM
13692012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1370
1371 * tracepoint.c (start_tracing): Add missing i18n markup.
1372 (stop_tracing, set_trace_user): Ditto.
1373 (set_trace_notes, set_trace_stop_notes): Ditto.
1374
b1af9e97
TT
13752012-05-21 Tom Tromey <tromey@redhat.com>
1376
1377 PR c++/7173:
1378 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1379 types.
1380 * value.h (value_cast_pointers): Update.
1381 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1382 (value_cast): Update.
1383 (update_search_result): New function.
1384 (do_search_struct_field): New, from search_struct_field. Check
1385 for ambiguous results.
1386 (search_struct_field): Rewrite.
1387 * infcall.c (value_arg_coerce): Update.
1388 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1389 value_cast_pointers.
1390 * ada-lang.c (ada_convert_actual): Update.
1391
e9e5e6b3
TT
13922012-05-21 Tom Tromey <tromey@redhat.com>
1393
1394 * macroexp.c (macro_stringify): Terminate the string.
1395
1564a261
JK
13962012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1397
1398 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1399 Describe it.
1400 * auto-load.c (auto_load_expand_dir_vars): New function.
1401 (auto_load_safe_path_vec_update): Use it, remove the
1402 substitute_path_component call thanks to it.
1403 (auto_load_objfile_script): Remove the debug_file_directory processing.
1404 Use auto_load_expand_dir_vars, remove the substitute_path_component
1405 call thanks to it.
1406 * configure: Regenerate.
1407 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1408 path. Escape $ also for $debugdir.
1409 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1410 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1411
a3ec0bb1
DE
14122012-05-20 Doug Evans <dje@google.com>
1413
1414 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1415 before use. Check for symtab->includes == NULL before scanning it.
1416
d467df4e
MR
14172012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1418
1419 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1420
4cc0665f
MR
14212012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1422
1423 * NEWS: Add microMIPS support and "set mips compression",
1424 "show mips compression" commands.
1425 * mips-tdep.h (mips_isa): New enum.
1426 (gdbarch_tdep): Add mips_isa.
1427 (mips_pc_is_mips16): Update prototype.
1428 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1429 * mips-tdep.c (mips_compression_mips16): New variable.
1430 (mips_compression_micromips): Likewise.
1431 (mips_compression_strings): Likewise.
1432 (mips_compression_string): Likewise.
1433 (is_mips16_isa, is_micromips_isa): New functions.
1434 (is_mips16_addr): Rename to...
1435 (is_compact_addr): ... this.
1436 (unmake_mips16_addr): Likewise to...
1437 (unmake_compact_addr): ... this.
1438 (make_mips16_addr): Likewise to...
1439 (make_compact_addr): ... this.
1440 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1441 functions.
1442 (mips_elf_make_msymbol_special): Handle microMIPS code.
1443 (msymbol_is_special): Rename to...
1444 (msymbol_is_mips16): ... this.
1445 (mips_make_symbol_special, mips_pc_is_mips16): Update
1446 accordingly.
1447 (msymbol_is_mips, msymbol_is_micromips): New functions.
1448 (mips16_to_32_reg): Rename to...
1449 (mips_reg3_to_reg): ... this.
1450 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1451 (mips_pc_isa): Likewise.
1452 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1453 code.
1454 (mips_fetch_instruction): Pass return status instead of printing
1455 an error message if requested. Handle microMIPS code. Bail out
1456 on an invalid ISA.
1457 (micromips_op): New macro.
1458 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1459 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1460 (b6s4_op, b7s3_reg): Likewise.
1461 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1462 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1463 (mips_insn_size): New function.
1464 (mips32_next_pc): Update mips_fetch_instruction call.
1465 (micromips_relative_offset7): New function.
1466 (micromips_relative_offset10): Likewise.
1467 (micromips_relative_offset16): Likewise.
1468 (micromips_pc_insn_size): Likewise.
1469 (micromips_bc1_pc): Likewise.
1470 (micromips_next_pc): Likewise.
1471 (unpack_mips16): Update mips_fetch_instruction call.
1472 (extended_mips16_next_pc): Update according to change to
1473 mips16_to_32_reg.
1474 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1475 code.
1476 (mips16_scan_prologue): Update mips_fetch_instruction call.
1477 Update according to change to mips16_to_32_reg.
1478 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1479 (mips_insn16_frame_base_sniffer): Likewise.
1480 (micromips_decode_imm9): New function.
1481 (micromips_scan_prologue): Likewise.
1482 (mips_micro_frame_cache): Likewise.
1483 (mips_micro_frame_this_id): Likewise.
1484 (mips_micro_frame_prev_register): Likewise.
1485 (mips_micro_frame_sniffer): Likewise.
1486 (mips_micro_frame_unwind): New variable.
1487 (mips_micro_frame_base_address): New function.
1488 (mips_micro_frame_base): New variable.
1489 (mips_micro_frame_base_sniffer): New function.
1490 (mips32_scan_prologue): Update mips_fetch_instruction call.
1491 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1492 rather than for MIPS16.
1493 (mips_insn32_frame_base_sniffer): Likewise.
1494 (mips_addr_bits_remove): Handle microMIPS code.
1495 (deal_with_atomic_sequence): Rename to...
1496 (mips_deal_with_atomic_sequence): ... this. Update the type
1497 of the variable used to hold an instruction. Remove the ISA bit
1498 check. Update mips_fetch_instruction call.
1499 (micromips_deal_with_atomic_sequence): New function.
1500 (deal_with_atomic_sequence): Likewise.
1501 (mips_about_to_return): Handle microMIPS code. Update
1502 mips_fetch_instruction call.
1503 (heuristic_proc_start): Check for the standard MIPS ISA rather
1504 than for MIPS16. Update mips_pc_is_mips16 and
1505 mips_fetch_instruction calls. Handle microMIPS code.
1506 (mips_push_dummy_code): Handle microMIPS code.
1507 (mips_eabi_push_dummy_call): Likewise.
1508 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1509 (mips_o64_push_dummy_call): Handle microMIPS code.
1510 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1511 (is_delayed): Remove function.
1512 (mips_single_step_through_delay): Replace the call to is_delayed
1513 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1514 Handle microMIPS code.
1515 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1516 microMIPS code.
1517 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1518 call.
1519 (micromips_in_function_epilogue_p): New function.
1520 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1521 call.
1522 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1523 Handle microMIPS.
1524 (gdb_print_insn_mips): Likewise.
1525 (mips_breakpoint_from_pc): Likewise.
1526 (mips_remote_breakpoint_from_pc): New function.
1527 (mips32_instruction_has_delay_slot): Simplify making use of the
1528 updated mips_fetch_instruction interface.
1529 (micromips_instruction_has_delay_slot): New function.
1530 (mips16_instruction_has_delay_slot): Simplify making use of the
1531 updated mips_fetch_instruction interface.
1532 (mips_adjust_breakpoint_address): Check for the standard MIPS
1533 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1534 calls. Handle microMIPS code.
1535 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1536 (mips_skip_trampoline_code): Handle microMIPS code.
1537 (global_mips_compression): New function.
1538 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1539 file flags. Register the microMIPS remote breakpoint handler
1540 and heuristic frame unwinder.
1541 (show_mips_compression): New function.
1542 (_initialize_mips_tdep): Add the "set mips compression" and
1543 "show mips compression" commands.
1544
22e048c9
SDJ
15452012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1546
1547 * ada-lang.c:
1548 * ada-tasks.c:
1549 * ada-varobj.c:
1550 * amd64-darwin-tdep.c:
1551 * arm-symbian-tdep.c:
1552 * arm-tdep.c:
1553 * avr-tdep.c:
1554 * ax-gdb.c:
1555 * bfin-linux-tdep.c:
1556 * breakpoint.c:
1557 * c-valprint.c:
1558 * cli/cli-cmds.c:
1559 * coffread.c:
1560 * cp-support.c:
1561 * cris-tdep.c:
1562 * dwarf2-frame-tailcall.c:
1563 * dwarf2-frame.c:
1564 * dwarf2expr.c:
1565 * dwarf2loc.c:
1566 * dwarf2read.c:
1567 * elfread.c:
1568 * eval.c:
1569 * expprint.c:
1570 * f-valprint.c:
1571 * frv-tdep.c:
1572 * h8300-tdep.c:
1573 * hppa-hpux-tdep.c:
1574 * hppa-tdep.c:
1575 * hppanbsd-tdep.c:
1576 * i386-nto-tdep.c:
1577 * i386-tdep.c:
1578 * i387-tdep.c:
1579 * ia64-tdep.c:
1580 * jit.c:
1581 * linespec.c:
1582 * linux-tdep.c:
1583 * lm32-tdep.c:
1584 * m2-valprint.c:
1585 * m32c-tdep.c:
1586 * m32r-rom.c:
1587 * m32r-tdep.c:
1588 * m68k-tdep.c:
1589 * m68klinux-tdep.c:
1590 * mi/mi-main.c:
1591 * microblaze-tdep.c:
1592 * mips-linux-tdep.c:
1593 * mips-tdep.c:
1594 * mn10300-tdep.c:
1595 * p-valprint.c:
1596 * parse.c:
1597 * ppc-linux-tdep.c:
1598 * ppc-sysv-tdep.c:
1599 * printcmd.c:
1600 * python/py-finishbreakpoint.c:
1601 * python/py-inferior.c:
1602 * python/py-infthread.c:
1603 * python/py-type.c:
1604 * python/python.c:
1605 * remote-fileio.c:
1606 * remote-m32r-sdi.c:
1607 * remote-mips.c:
1608 * reverse.c:
1609 * rl78-tdep.c:
1610 * rs6000-aix-tdep.c:
1611 * rs6000-tdep.c:
1612 * s390-tdep.c:
1613 * score-tdep.c:
1614 * sh64-tdep.c:
1615 * skip.c:
1616 * solib-darwin.c:
1617 * solib-dsbt.c:
1618 * solib-frv.c:
1619 * sparc-tdep.c:
1620 * spu-multiarch.c:
1621 * spu-tdep.c:
1622 * stack.c:
1623 * symfile.c:
1624 * symtab.c:
1625 * tic6x-tdep.c:
1626 * tracepoint.c:
1627 * v850-tdep.c:
1628 * valarith.c:
1629 * valprint.c:
1630 * value.c:
1631 * xcoffread.c:
1632 * xtensa-tdep.c:
1633 * ada-lang.c:
1634 * ada-tasks.c:
1635 * ada-varobj.c:
1636 * amd64-darwin-tdep.c:
1637 * arm-symbian-tdep.c:
1638 * arm-tdep.c: Delete unused variables.
1639
aff139ff
JK
16402012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1641
1642 Rename $ddir to $datadir.
1643 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1644 * auto-load.c (auto_load_safe_path_vec_update)
1645 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1646 * configure: Regenerate.
1647 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1648 Likewise. Remove the 'use $ddir' help string.
1649
f7bfa992
JK
16502012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1651
1652 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1653 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1654
9cb709b6
TT
16552012-05-18 Tom Tromey <tromey@redhat.com>
1656
1657 PR exp/13907:
1658 * valprint.h (struct value_print_options) <symbol_print>: New
1659 field.
1660 * valprint.c (user_print_options): Add default for symbol_print.
1661 (show_symbol_print): New function.
1662 (generic_val_print): Respect symbol_print.
1663 (_initialize_valprint): Add "print symbol" setting.
1664 * f-valprint.c (f_val_print): Respect symbol_print.
1665 * c-valprint.c (c_val_print): Respect symbol_print.
1666 * NEWS: Update.
1667 * printcmd.c (print_address_symbolic): Return int. Ignore some
1668 zero-size symbols.
1669 (print_address_demangle): Return int.
1670 * defs.h: (print_address_symbolic): Return int.
1671 * value.h (print_address_demangle): Return int.
1672
b012acdd
TT
16732012-05-18 Tom Tromey <tromey@redhat.com>
1674
1675 * valprint.c (val_print_string): Don't print leading space.
1676 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1677 print space before string or vtbl.
1678 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1679 before string.
1680 * jv-valprint.c (java_value_print): Print space before string.
1681 * go-valprint.c (print_go_string): Print space before string.
1682 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1683 space before string.
1684 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1685 space before string or vtbl.
1686 * auxv.c (fprint_target_auxv): Print space after address.
1687
1d51a733
TT
16882012-05-18 Tom Tromey <tromey@redhat.com>
1689
1690 * printcmd.c (print_address_demangle): Remove special case for 0.
1691
edf0c1b7
TT
16922012-05-18 Tom Tromey <tromey@redhat.com>
1693
1694 * printcmd.c (print_address_demangle): Add 'opts' argument.
1695 * p-valprint.c (pascal_val_print): Update.
1696 * jv-valprint.c (java_val_print): Update.
1697 * value.h: Update.
1698 * valprint.c (generic_val_print): Update.
1699 (print_function_pointer_address): Add 'options' argument. Remove
1700 'addressprint' argument. Update.
1701 * m2-valprint.c (print_unpacked_pointer): Update.
1702 * gnu-v3-abi.c (print_one_vtable): Update.
1703 (gnuv3_print_method_ptr): Update.
1704 * f-valprint.c (f_val_print): Update.
1705 * cp-valprint.c (cp_print_value_fields): Update.
1706 * valprint.h (print_function_pointer_address): Update.
1707 * c-valprint.c (c_val_print): Update.
1708
9703b513
TT
17092012-05-18 Tom Tromey <tromey@redhat.com>
1710
1711 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1712 directly corresponding to the found psymtab.
1713 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1714 (dw2_find_pc_sect_symtab): Use it.
1715 * block.h (blockvector_contains_pc): Declare.
1716 * block.c (find_block_in_blockvector): New function.
1717 (blockvector_for_pc_sect): Use it.
1718 (blockvector_contains_pc): New function.
1719
5a439849
MR
17202012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1721
1722 * mips-tdep.h (mips_write_pc): New prototype.
1723 * mips-tdep.c (mips_write_pc): Make external, add description.
1724 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1725 add description.
1726
8376de04
MR
17272012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1728
1729 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1730 mips_regnum->pc.
1731 (mips_unwind_pc, mips_write_pc): Likewise.
1732 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1733 gdbarch_read_pc.
1734
d3581e61
JB
17352012-05-17 Joel Brobecker <brobecker@adacore.com>
1736
1737 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1738 proc_warn, proc_error, proc_get_status, proc_flags,
1739 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1740 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1741 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1742 proc_stop_process, proc_wait_for_stop, proc_run_process,
1743 proc_set_traced_signals, proc_set_traced_faults,
1744 proc_set_traced_sysentry, proc_set_traced_sysexit,
1745 proc_set_held_signals, proc_get_held_signals,
1746 proc_get_traced_signals, proc_get_traced_faults,
1747 proc_get_traced_sysentry, proc_get_traced_sysexit,
1748 proc_clear_current_fault, proc_set_current_signal,
1749 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1750 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1751 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1752 proc_get_current_thread, proc_get_current_thread,
1753 proc_get_current_thread, proc_update_threads,
1754 proc_update_threads, proc_update_threads, proc_update_threads,
1755 proc_iterate_over_threads, procfs_find_new_threads,
1756 procfs_pid_to_str): Make static. Remove advance declaration.
1757 (proc_cursig): Make static. Conditionalized defintion on
1758 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1759 (proc_syscall, proc_set_kill_on_last_close,
1760 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1761 proc_get_pending_signals, proc_get_signal_actions,
1762 proc_trace_signal, proc_ignore_signal): Delete.
1763
81b9b86e
SDJ
17642012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1765
1766 * coffread.c (cs_section_address): Passing proper argument for
1767 `bfd_get_section_vma'.
1768 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1769 `bfd_get_section_flags'.
1770 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1771 `bfd_get_section_vma'.
1772
abc9d0dc
TT
17732012-05-16 Tom Tromey <tromey@redhat.com>
1774
1775 PR macros/13205:
1776 * macrotab.h: (macro_define_special): Declare.
1777 (enum macro_special_kind): New.
1778 (struct macro_definition) <argc, replacement>: Update comments.
1779 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1780 (macro_define_object_internal): New function.
1781 (macro_define_object): Use it.
1782 (macro_define_special): New function.
1783 (fixup_definition): New function.
1784 (macro_lookup_definition, foreach_macro_in_scope)
1785 (foreach_macro): Use fixup_definition.
1786 * macroexp.h (macro_stringify): Declare.
1787 * macroexp.c (free_buffer_return_text): New function.
1788 (stringify): Constify "arg".
1789 (macro_stringify): New function.
1790 * dwarf2read.c (macro_start_file): Call macro_define_special.
1791
6a3a010b
MR
17922012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1793 Maciej W. Rozycki <macro@mips.com>
1794
1795 * breakpoint.h (bp_location): Add related_address member.
1796 * inferior.h (get_return_value): Take a pointer to struct value
1797 instead of struct type for the function requested.
1798 * value.h (using_struct_return): Likewise.
1799 * gdbarch.sh (return_value): Take a pointer to struct value
1800 instead of struct type for the function requested.
1801 * breakpoint.c (set_breakpoint_location_function): Initialize
1802 related_address for bp_gnu_ifunc_resolver breakpoints.
1803 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1804 requested function's address to gdbarch_return_value.
1805 * eval.c (evaluate_subexp_standard): Pass the requested
1806 function's address to using_struct_return.
1807 * infcall.c (call_function_by_hand): Pass the requested
1808 function's address to using_struct_return and
1809 gdbarch_return_value.
1810 * infcmd.c (get_return_value): Take a pointer to struct value
1811 instead of struct type for the function requested.
1812 (print_return_value): Update accordingly.
1813 (finish_command_continuation): Likewise.
1814 * stack.c (return_command): Pass the requested function's
1815 address to using_struct_return and gdbarch_return_value.
1816 * value.c (using_struct_return): Take a pointer to struct value
1817 instead of struct type for the function requested. Pass the
1818 requested function's address to gdbarch_return_value.
1819 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1820 New function_value member, replacing function_type.
1821 (bpfinishpy_dealloc): Update accordingly.
1822 (bpfinishpy_pre_stop_hook): Likewise.
1823 (bpfinishpy_init): Likewise. Record the requested function's
1824 address.
1825 * mips-tdep.c (mips_fval_reg): New enum.
1826 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1827 words put in GP registers.
1828 (mips_o64_push_dummy_call): Update a comment.
1829 (mips_o32_return_value): Take a pointer to struct value instead
1830 of struct type for the function requested and use it to check if
1831 using the MIPS16 calling convention. Return the designated
1832 general purpose registers for floating-point values returned in
1833 MIPS16 mode.
1834 (mips_o64_return_value): Likewise.
1835 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1836 (ppc_sysv_abi_broken_return_value): Likewise.
1837 (ppc64_sysv_abi_return_value): Likewise.
1838 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1839 value instead of struct type for the function requested.
1840 * amd64-tdep.c (amd64_return_value): Likewise.
1841 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1842 * arm-tdep.c (arm_return_value): Likewise.
1843 * avr-tdep.c (avr_return_value): Likewise.
1844 * bfin-tdep.c (bfin_return_value): Likewise.
1845 * cris-tdep.c (cris_return_value): Likewise.
1846 * frv-tdep.c (frv_return_value): Likewise.
1847 * h8300-tdep.c (h8300_return_value): Likewise.
1848 (h8300h_return_value): Likewise.
1849 * hppa-tdep.c (hppa32_return_value): Likewise.
1850 (hppa64_return_value): Likewise.
1851 * i386-tdep.c (i386_return_value): Likewise.
1852 * ia64-tdep.c (ia64_return_value): Likewise.
1853 * iq2000-tdep.c (iq2000_return_value): Likewise.
1854 * lm32-tdep.c (lm32_return_value): Likewise.
1855 * m32c-tdep.c (m32c_return_value): Likewise.
1856 * m32r-tdep.c (m32r_return_value): Likewise.
1857 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1858 * m68k-tdep.c (m68k_return_value): Likewise.
1859 (m68k_svr4_return_value): Likewise.
1860 * m88k-tdep.c (m88k_return_value): Likewise.
1861 * mep-tdep.c (mep_return_value): Likewise.
1862 * microblaze-tdep.c (microblaze_return_value): Likewise.
1863 * mn10300-tdep.c (mn10300_return_value): Likewise.
1864 * moxie-tdep.c (moxie_return_value): Likewise.
1865 * mt-tdep.c (mt_return_value): Likewise.
1866 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1867 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1868 (ppc_sysv_abi_broken_return_value): Likewise.
1869 (ppc64_sysv_abi_return_value): Likewise.
1870 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1871 * rl78-tdep.c (rl78_return_value): Likewise.
1872 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1873 * rx-tdep.c (rx_return_value): Likewise.
1874 * s390-tdep.c (s390_return_value): Likewise.
1875 * score-tdep.c (score_return_value): Likewise.
1876 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1877 (sh_return_value_fpu): Likewise.
1878 * sh64-tdep.c (sh64_return_value): Likewise.
1879 * sparc-tdep.c (sparc32_return_value): Likewise.
1880 * sparc64-tdep.c (sparc64_return_value): Likewise.
1881 * spu-tdep.c (spu_return_value): Likewise.
1882 * tic6x-tdep.c (tic6x_return_value): Likewise.
1883 * v850-tdep.c (v850_return_value): Likewise.
1884 * vax-tdep.c (vax_return_value): Likewise.
1885 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1886 * xtensa-tdep.c (xtensa_return_value): Likewise.
1887 * gdbarch.c: Regenerate.
1888 * gdbarch.h: Regenerate.
1889
29ca12b3
TT
18902012-05-15 Tom Tromey <tromey@redhat.com>
1891
1892 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1893
588ae58c
JB
18942012-05-15 Joel Brobecker <brobecker@adacore.com>
1895
1896 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1897 of command in two error message.
1898
855a6e68
JB
18992012-05-15 Joel Brobecker <brobecker@adacore.com>
1900
1901 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1902
d634f2de
JB
19032012-05-15 Joel Brobecker <brobecker@adacore.com>
1904
1905 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1906
9cc815f5
JK
19072012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1908
1909 * NEWS (show auto-load scripts-directory): Add forgotten command.
1910
6a609e58
JK
19112012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1912
1913 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1914 parameters.
1915
ac1438b5
L
19162012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1917
1918 * amd64-tdep.c: Include features/i386/x32.c and
1919 features/i386/x32-avx.c.
1920 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1921 initialize_tdesc_x32_avx.
1922
e7e0cddf
SS
19232012-05-14 Stan Shebs <stan@codesourcery.com>
1924
1925 Add dynamic printf.
1926 * breakpoint.h (enum bptype): New type bp_dprintf.
1927 (struct breakpoint): New field extra_string.
1928 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1929 (create_breakpoint): Add extra_string arg.
1930 * breakpoint.c (dprintf_breakpoint_ops): New.
1931 (is_breakpoint): Add bp_dprintf.
1932 (bpstat_what): Add dprintf case.
1933 (bptype_string): Ditto.
1934 (print_one_breakpoint_location): Ditto.
1935 (init_bp_location): Ditto.
1936 (bkpt_print_mention): Ditto.
1937 (dprintf_style_enums): New array.
1938 (dprintf_style): New global.
1939 (dprintf_function): New global.
1940 (dprintf_channel): New global.
1941 (update_dprintf_command_list): New function.
1942 (update_dprintf_commands): New function.
1943 (init_breakpoint_sal): Add extra_string argument, handle it.
1944 (create_breakpoint_sal): Add extra_string argument.
1945 (create_breakpoints_sal): Add extra_string argument, update callers.
1946 (find_condition_and_thread): Add extra argument.
1947 (create_breakpoint): Add extra_string argument, record it.
1948 (dprintf_command): New function.
1949 (break_command_1): Add arg to create_breakpoint call.
1950 (handle_gnu_v3_exceptions): Ditto.
1951 (trace_command): Ditto.
1952 (ftrace_command): Ditto.
1953 (strace_command): Ditto.
1954 (bkpt_print_mention): Add dprintf case.
1955 (create_breakpoint_sal_default): Add extra_string argument.
1956 (_initialize_breakpoint): Add new commands.
1957 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1958 * python/py-breakpoint.c (bppy_init): Ditto.
1959 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1960
8ae38c14
MR
19612012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1962
1963 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1964
9f676e66
SCR
19652012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1966
1967 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1968 unsigned long long.
1969
7efc75aa
SCR
19702012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1971
1972 Add a new function gdb.find_pc_line to the Python API.
1973 * NEWS (Python Scripting): Add entry about the new function.
1974 * python/python.c (gdbpy_find_pc_line): New function which
1975 implements gdb.find_pc_line.
1976 (GdbMethods): Add entry for the new function.
1977
70af3797
PA
19782012-05-12 Pedro Alves <palves@redhat.com>
1979
1980 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1981 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1982
06da564e
EZ
19832012-05-12 Eli Zaretskii <eliz@gnu.org>
1984
1985 * inferior.c: Include completer.h
1986 (initialize_inferiors): Set completer of add-inferior to
1987 filename_completer.
1988
0288cee2
L
19892012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1990
1991 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1992 gdbarch_ptr_bit for x32 core dump.
1993
f6537a2c
L
19942012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1995
1996 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1997 and features/i386/x32-avx-linux.c.
1998
85d4a676
SS
19992012-05-11 Stan Shebs <stan@codesourcery.com>
2000 Kwok Cheung Yeung <kcy@codesourcery.com>
2001
2002 * NEWS: Describe new info os commands.
2003 * common/linux-osdata.c (PID_T, TIME_T): Define.
2004 (MAX_PID_T_STRLEN): New.
2005 (linux_common_core_of_thread): Add comment. Change to use PID_T and
2006 MAX_PID_T_STRLEN.
2007 (command_from_pid): Add comment. Change to use PID_T.
2008 (commandline_from_pid): Change to use PID_T.
2009 (user_from_pid): Add comment.
2010 (get_process_owner): Add comment. Change to use PID_T and
2011 MAX_PID_T_STRLEN.
2012 (get_number_of_cpu_cores): Add comment.
2013 (get_cores_used_by_process): Add comment. Change to use PID_T and
2014 MAX_PID_T_STRLEN.
2015 (linux_xfer_osdata_processes): Change to use PID_T and
2016 MAX_PID_T_STRLEN.
2017 (compare_processes): New function.
2018 (linux_xfer_osdata_processgroups): New function.
2019 (linux_xfer_osdata_threads): Change to use PID_T.
2020 (linux_xfer_osdata_fds): New function.
2021 (format_socket_state, print_sockets): New functions.
2022 (union socket_addr): New union.
2023 (linux_xfer_osdata_isockets): New function.
2024 (time_from_time_t, group_from_gid): New functions.
2025 (linux_xfer_osdata_shm): New function.
2026 (linux_xfer_osdata_sem): New function.
2027 (linux_xfer_osdata_msg): New function.
2028 (linux_xfer_osdata_modules): New function.
2029 (osdata_table): Add new entries.
2030 * common/buffer.c (buffer_xml_printf): Add support for long and
2031 long long format specifiers.
2032
f24afd6d
L
20332012-05-11 H.J. Lu <hongjiu.lu@intel.com>
2034
2035 * amd64-linux-tdep.h (tdesc_x32_linux): New.
2036 (tdesc_x32_avx_linux): Likewise.
2037
7349ff92
JK
20382012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2039
2040 Implement multi-component --with-auto-load-dir.
2041 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
2042 entries.
2043 (--with-auto-load-safe-path): Update the default value description.
2044 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
2045 New.
2046 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
2047 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
2048 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
2049 (_initialize_auto_load): Initialize also auto_load_dir. Install new
2050 "set auto-load scripts-directory".
2051 * config.in: Regenerate.
2052 * configure: Regenerate.
2053 * configure.ac (--with-auto-load-dir): New configure option.
2054 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
2055
6dea1fbd
JK
20562012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2057
2058 Provide $ddir substitution for --with-auto-load-safe-path.
2059 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
2060 entries.
2061 * auto-load.c: Include observer.h.
2062 (auto_load_safe_path_vec_update): Call substitute_path_component for
2063 each component. New variable ddir_subst.
2064 (auto_load_gdb_datadir_changed): New function.
2065 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
2066 AUTO_LOAD_SAFE_PATH. New comment.
2067 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
2068 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
2069 * config.in: Regenerate.
2070 * configure: Regenerate.
2071 * configure.ac (--auto-load-safe-path): Rename
2072 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
2073 GDB_DATADIR/auto-load.
2074 * defs.h (substitute_path_component): New declaration.
2075 * top.c: Include observer.h.
2076 (set_gdb_datadir): New function.
2077 (init_main): Install it for "set data-directory".
2078 * utils.c (substitute_path_component): New function.
2079
b09aca3a
JK
20802012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2081
2082 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
2083 * auto-load.c (auto_load_objfile_script): Remove check for NULL
2084 DEBUG_FILE_DIRECTORY. Handle multiple components of
2085 DEBUG_FILE_DIRECTORY.
2086
95554aad
TT
20872012-05-10 Tom Tromey <tromey@redhat.com>
2088
2089 * dwarf2read.c (recursively_write_psymbols): New function.
2090 (write_psymtabs_to_index): Use it.
2091
2092 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
2093 field.
2094 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
2095 (load_partial_comp_unit): Update.
2096 (queue_comp_unit): Add argument 'pretend_language'.
2097 (process_queue): Update.
2098 (psymtab_to_symtab_1): Skip dependencies that have a user.
2099 (load_partial_comp_unit_reader): Give meaning to the 'data'
2100 argument.
2101 (load_full_comp_unit): Add 'pretend_language' argument.
2102 (process_full_comp_unit): Add 'pretend_language' argument. Set
2103 language on CU.
2104 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
2105 Update.
2106 (maybe_queue_comp_unit): Add 'pretend_language' argument.
2107 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
2108 Update.
2109 (prepare_one_comp_unit): Add 'pretend_language' argument.
2110
2111 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
2112 (struct dwarf2_per_objfile) <just_read_cus>: New field.
2113 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
2114 (dw2_do_instantiate_symtab): Check whether symtab was read in
2115 before queueing.
2116 (dw2_instantiate_symtab): Add assertion. Call
2117 process_cu_includes.
2118 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
2119 (partial_symtab_p): New typedef.
2120 (set_partial_user): New function.
2121 (dwarf2_build_psymtabs_hard): Use set_partial_user.
2122 (scan_partial_symbols): Add imported CU to imported_symtabs.
2123 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
2124 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
2125 (get_symtab, recursively_compute_inclusions)
2126 (compute_symtab_includes, process_cu_includes)
2127 (process_imported_unit_die): New functions.
2128 (process_die) <DW_TAG_imported_unit>: New case.
2129 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
2130
2131 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
2132 comment.
2133 (struct partial_die_info) <locdesc>: Remove.
2134 <d>: New field.
2135 (process_psymtab_comp_unit): Add 'read_partial' argument.
2136 Update.
2137 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
2138 (scan_partial_symbols): Handle DW_TAG_imported_unit.
2139 (add_partial_symbol): Update.
2140 (process_die): Handle DW_TAG_partial_unit.
2141 (read_file_scope): Update comment.
2142 (load_partial_dies): Handle DW_TAG_imported_unit.
2143 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
2144 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
2145
e871fbb9
TT
21462012-05-10 Tom Tromey <tromey@redhat.com>
2147
2148 * cc-with-dwz.sh: New file.
2149
b5b04b5b
TT
21502012-05-10 Tom Tromey <tromey@redhat.com>
2151
2152 * symtab.h (struct symtab) <includes, user>: New fields.
2153 * block.h (struct block_iterator) <d, idx, which>: New fields.
2154 * block.c (initialize_block_iterator, find_iterator_symtab)
2155 (block_iterator_step, block_iter_name_step)
2156 (block_iter_match_step): New functions.
2157 (block_iterator_first, block_iterator_next)
2158 (block_iter_name_first, block_iter_name_next)
2159 (block_iter_match_first, block_iter_match_next): Rewrite.
2160 (get_block_symtab): New function.
2161
84a146c9
TT
21622012-05-10 Tom Tromey <tromey@redhat.com>
2163
2164 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
2165 set_block_symtab.
2166 * jit.c (finalize_symtab): Use allocate_global_block,
2167 set_block_symtab.
2168 * buildsym.c (finish_block_internal): New function, from old
2169 finish_block.
2170 (finish_block): Rewrite.
2171 (end_symtab): Use finish_block_internal, set_block_symtab.
2172 * block.h (struct global_block): New.
2173 (allocate_global_block, set_block_symtab): Declare.
2174 * block.c (allocate_global_block, set_block_symtab): New
2175 functions.
2176
9439a077
TT
21772012-05-10 Tom Tromey <tromey@redhat.com>
2178
2179 * psymtab.c (partial_map_expand_apply): Add assertion.
2180 (partial_map_symtabs_matching_filename): Skip included psymtabs.
2181 (psymtab_to_symtab): Find unshared psymtab.
2182 (dump_psymtab): Print including psymtabs.
2183 (recursively_search_psymtabs): New function.
2184 (expand_symtabs_matching_via_partial): Use it.
2185 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
2186 fields.
2187 (enum psymtab_search_status): New.
2188
8157b174
TT
21892012-05-10 Tom Tromey <tromey@redhat.com>
2190
2191 * tracepoint.c (scope_info): Update.
2192 * symtab.c (lookup_block_symbol, iterate_over_symbols)
2193 (find_pc_sect_symtab, search_symbols)
2194 (default_make_symbol_completion_list_break_on)
2195 (make_file_symbol_completion_list): Update.
2196 * symmisc.c (dump_symtab_1): Update.
2197 * stack.c (print_frame_args, iterate_over_block_locals)
2198 (print_frame_labels, iterate_over_block_arg_vars): Update.
2199 * python/py-block.c (block_object) <dict>: Remove.
2200 <block>: New field.
2201 <iter>: Change type.
2202 (blpy_iter): Update.
2203 (blpy_block_syms_iternext): Update.
2204 * psymtab.c (map_block): Use block iterators.
2205 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
2206 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2207 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
2208 * infrun.c (check_exception_resume): Update.
2209 * cp-support.c (make_symbol_overload_list_block): Update.
2210 * coffread.c (patch_opaque_types): Update.
2211 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
2212 * block.h (struct block_iterator): New.
2213 (block_iterator_first, block_iterator_next, block_iter_name_first)
2214 (block_iter_name_next, block_iter_match_first)
2215 (block_iter_match_next): Declare.
2216 (ALL_BLOCK_SYMBOLS): Redefine.
2217 * block.c (block_iterator_first, block_iterator_next)
2218 (block_iter_name_first, block_iter_name_next)
2219 (block_iter_match_first, block_iter_match_next): New functions.
2220 * ada-lang.c (ada_add_block_symbols)
2221 (ada_make_symbol_completion_list): Use block iterator.
2222
a2ca7a52
TT
22232012-05-10 Tom Tromey <tromey@redhat.com>
2224
2225 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
2226 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
2227 (lookup_partial_symbol, find_last_source_symtab_from_partial)
2228 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
2229 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
2230 Update.
2231
64ea88dc
JB
22322012-05-10 Joel Brobecker <brobecker@adacore.com>
2233
2234 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
2235 print-file-var-lib2.c, print-file-var-main.c and
2236 print-file-var.exp (located in gdb/testsuite/gdb.base).
2237
99a547d6
JB
22382012-05-10 Joel Brobecker <brobecker@adacore.com>
2239
2240 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2241 try locating the symbol in the symbol's own objfile first, before
2242 extending the search to all objfiles.
2243 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2244 out of lookup_symbol_aux_symtabs.
2245 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2246 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2247 Do not search EXCLUDE_OBJFILE.
2248 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2249 (lookup_symbol_global): Search for matches in the block's objfile
2250 first, before searching all other objfiles.
2251
0ece64fd
TG
22522012-05-10 Tristan Gingold <gingold@adacore.com>
2253
2254 * printcmd.c (set_command): Add pre/post inc/dec.
2255
3d16a105
FCE
22562012-05-09 Frank Ch. Eigler <fche@redhat.com>
2257
2258 * gdb.1: Document -ex option.
2259
2efbc0f7
JB
22602012-05-09 Joel Brobecker <brobecker@adacore.com>
2261
2262 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2263 * inferior.h (AT_SYMBOL): Delete.
2264
2c76a0c7
JB
22652012-05-09 Joel Brobecker <brobecker@adacore.com>
2266
2267 * mips-tdep.c (mips_push_dummy_code): New function.
2268 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2269 ON_STACK and install mips_push_dummy_code as our gdbarch
2270 push_dummy_code routine.
2271
9401a810
PA
22722012-05-09 Pedro Alves <palves@redhat.com>
2273
2274 * target.c (set_maintenance_target_async_permitted): Rename to ...
2275 (set_target_async_command): ... this.
2276 (show_maintenance_target_async_permitted): Rename to ...
2277 (show_target_async_command): ... this.
2278 (initialize_targets): Adjust.
2279
3929b321
DE
22802012-05-08 Doug Evans <dje@google.com>
2281
2282 * go-exp.y (classify_name): Add missing assignment of fields of
2283 yylval.ssym.
2284
c41535fd
EZ
22852012-05-08 Eli Zaretskii <eliz@gnu.org>
2286
2287 Display the ">" prompt in interactive mode while reading canned
2288 commands, even when the current interpreter is MI.
2289
2290 * interps.c (interp_set_temp): New function.
2291
2292 * interps.h (interp_set_temp): Add prototype.
2293
2294 * cli/cli-script.c (restore_interp): New cleanup function.
2295 (read_command_lines): Temporarily override the current interpreter
2296 with CLI and arrange for restoring the original one.
2297
c0749c4d
JS
22982012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2299
2300 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2301
d7333987
SDJ
23022012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2303
2304 * probe.c (parse_probes): Move conditional to check for
2305 debuginfo files from here...
2306 * stap-probe.c (stap_get_probes): ... to here.
2307
649e6d92
MK
23082012-05-07 Mark Kettenis <kettenis@gnu.org>
2309 H.J. Lu <hongjiu.lu@intel.com>
2310
2311 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2312 `movl %esp, %ebp' for the X32 ABI.
2313
f39c6ffd
TT
23142012-05-07 Tom Tromey <tromey@redhat.com>
2315
2316 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
2317 get_DW_TAG_name.
2318 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
2319 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
2320 (dwarf_stack_op_name): Remove.
2321 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
2322 (decode_locdesc): Use get_DW_OP_name.
2323 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2324 (dwarf2_compile_expr_to_ax): Likewise.
2325 (disassemble_dwarf_expression): Likewise.
2326 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2327
1e1f6591
CLT
23282012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
2329
2330 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2331 (sh_linux_sigtramp_cache): New function.
2332 (sh_linux_sigreturn_init): New function.
2333 (sh_linux_rt_sigreturn_init): New function.
2334 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2335 patterns.
2336 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2337 syscall codes.
2338 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2339 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2340 (sh_linux_init_abi): Add init calls to register new tramp_frame
2341 definitions under 32-bit SH, update comments.
2342
545c08b4
PA
23432012-05-07 Pedro Alves <palves@redhat.com>
2344
daac165e
PA
2345 PR gdb/10952
2346
545c08b4
PA
2347 * amd64-linux-tdep.c: Include glibc-tdep.h.
2348 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2349 gdbarch_skip_solib_resolver callback.
2350
af2c1515
JK
23512012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2352
2353 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2354 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2355 (show_auto_load_safe_path): Check any-directory by comparison with "/".
2356 (add_auto_load_safe_path): Change the error message.
2357 (_initialize_auto_load): Change the "safe-path" help text.
2358 * configure: Regenerate
2359 * configure.ac (--without-auto-load-safe-path): Set
2360 WITH_AUTO_LOAD_SAFE_PATH to /.
2361
1067f998
SDJ
23622012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
2363
2364 * stap-probe.h: Do not include unecessary `probe.h'.
2365
45dfa85a
AM
23662012-05-05 Alan Modra <amodra@gmail.com>
2367
2368 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2369 bfd_und_section_ptr.
2370 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2371 and bfd_com_section_ptr.
2372
cf093994
JB
23732012-05-04 Joel Brobecker <brobecker@adacore.com>
2374
762ebb75 2375 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 2376
d40dc7a8
JB
23772012-05-04 Joel Brobecker <brobecker@adacore.com>
2378
2379 * windows-nat.h (segment_register_p_ftype): New typedef.
2380 (windows_set_segment_register_p): Add declaration.
2381 * windows-nat.c (segment_register_p): New static global.
2382 (windows_set_segment_register_p): New function.
2383 (do_windows_fetch_inferior_registers): Add special handling
2384 for segment registers.
2385 * amd64-windows-nat.c: #include "amd64-tdep.h".
2386 (amd64_windows_segment_register_p): New function.
2387 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2388 * i386-windows-nat.c: #include "i386-tdep.h".
2389 (i386_windows_segment_register_p): New function.
2390 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2391
52b3699b
TG
23922012-05-04 Tristan Gingold <gingold@adacore.com>
2393
2394 * printcmd.c (set_command): Emit a warning if the expression is not
2395 an assignment.
2396
94c74239
JB
23972012-05-03 Joel Brobecker <brobecker@adacore.com>
2398
2399 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2400 Make static.
2401
fcf57f19
SDJ
24022012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2403
2404 * stap-probe.c (stap_is_operator): Change declaration.
2405 (stap_get_opcode): Change return value.
2406 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2407 `stap_parse_argument_1'.
2408
27d2932e
PA
24092012-05-03 Pedro Alves <pedro@codesourcery.com>
2410
2411 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2412 debug log.
2413
a20ee7a4
SCR
24142012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2415
2416 Add two new methods global_block and static_block to gdb.Symtab
2417 objects.
2418 * NEWS (Python scripting): Add entry about the new methods.
2419 * python/py-symtab.c (stpy_global_block): New function which
2420 implements the gdb.Symtab.global_block() method.
2421 (stpy_static_block): New function which implements the
2422 gdb.Symtab.static_block() method.
2423 (symtab_object_methods): Add entries for the two new methods.
2424
943cb756
DE
24252012-05-03 Doug Evans <dje@google.com>
2426
2427 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2428 files.
2429
f4644a3f
YQ
24302012-05-03 Yao Qi <yao@codesourcery.com>
2431
2432 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2433 space.
2434 (i386_process_record): Ditto.
2435
ef61f180
JB
24362012-05-02 Joel Brobecker <brobecker@adacore.com>
2437
2438 * infcall.c (unwind_on_signal_p): Make static.
2439
02f1df11
JB
24402012-05-02 Joel Brobecker <brobecker@adacore.com>
2441
2442 * sol-thread.c (solaris_pid_to_str): Make static.
2443 (_initialize_sol_thread): Add prototype.
2444
39023530
JB
24452012-05-02 Joel Brobecker <brobecker@adacore.com>
2446
2447 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2448
c6b0c501
CF
24492012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2450
2451 * MAINTAINERS: Remove myself.
2452
1ef71717
JK
24532012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2454
2455 Fix --without-auto-load-safe-path for MS-Windows host platform.
2456 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2457
b31b86a7
EZ
24582012-05-02 Eli Zaretskii <eliz@gnu.org>
2459
2460 * gdb_curses.h: Undefine KEY_EVENT before including curses
2461 headers. Move "#undef MOUSE_MOVED" before any curses header
2462 inclusion.
2463
777532fc
SDJ
24642012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2465
2466 * features/i386/i386-mmx-linux.c: Regenerate.
2467 * features/rs6000/powerpc-32.c: Likewise.
2468 * features/rs6000/powerpc-32l.c: Likewise.
2469 * features/rs6000/powerpc-403.c: Likewise.
2470 * features/rs6000/powerpc-403gc.c: Likewise.
2471 * features/rs6000/powerpc-405.c: Likewise.
2472 * features/rs6000/powerpc-505.c: Likewise.
2473 * features/rs6000/powerpc-601.c: Likewise.
2474 * features/rs6000/powerpc-602.c: Likewise.
2475 * features/rs6000/powerpc-603.c: Likewise.
2476 * features/rs6000/powerpc-604.c: Likewise.
2477 * features/rs6000/powerpc-64.c: Likewise.
2478 * features/rs6000/powerpc-64l.c: Likewise.
2479 * features/rs6000/powerpc-750.c: Likewise.
2480 * features/rs6000/powerpc-860.c: Likewise.
2481 * features/rs6000/powerpc-e500.c: Likewise.
2482 * features/rs6000/powerpc-e500l.c: Likewise.
2483 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2484 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2485 * features/rs6000/rs6000.c: Likewise.
2486
d71871bc
SDJ
24872012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2488
2489 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2490 variable.
2491 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2492 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2493 (stap_parse_argument) <e>: Likewise.
2494 (handle_stap_probe) <byte_order>: Likewise.
2495
fd820528
DE
24962012-04-30 Doug Evans <dje@google.com>
2497
2498 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2499 init_and_read_dies_worker. All callers updated.
2500 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2501 replaced with init_cutu_and_read_dies.
2502 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2503 (find_partial_die): Remove FIXME. Don't free current CU.
2504
ec3f619d 25052012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
2506
2507 * contrib: New directory.
2508 * contrib/test_pubnames_and_indexes.py: New file.
2509
fceca515
DE
25102012-04-30 Doug Evans <dje@google.com>
2511
2512 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2513 All callers updated.
2514 (init_cu_die_reader): Verify the section is non-empty.
2515 (dwarf_decode_line_header): Don't dereference section->asection
2516 until we know the section is present.
2517
311fe7e1
SDJ
25182012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2519
2520 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2521 probes.
2522
5977971a
YQ
25232012-04-29 Yao Qi <yao@codesourcery.com>
2524
2525 * gdb-code-style.el: New hook gdb-markup-hook
2526 and gdb-comment-hook.
2527
dee91e82
DE
25282012-04-28 Doug Evans <dje@google.com>
2529
3019eac3
DE
2530 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2531 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2532 objfile->obfd.
2533 * symfile.h (dwarf2_debug_sections): New member addr.
2534 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2535 (ctx_no_get_addr_index): New function.
2536 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2537 (ctx_no_get_addr_index): Declare.
2538 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2539 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2540 (dwarf_expr_ctx_funcs): Update.
2541 (needs_get_addr_index): New function.
2542 (needs_frame_ctx_funcs): Update.
2543 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2544 * dwarf2read.c: #include "gdbcore.h".
2545 (dwarf2_per_objfile): New members addr, dwo_files.
2546 (dwarf2_elf_names): Add entry for addr.
2547 (struct dwo_section_names): New type.
2548 (dwo_section_names): New static global.
2549 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2550 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2551 old debug_types_section member updated to use this.
2552 Rename member debug_types_section to info_or_types_section,
2553 all uses updated.
2554 (signatured_type): Rename member type_offset to type_offset_in_tu,
2555 all uses updated. New member type_offset_in_section.
2556 (struct dwo_sections): New type.
2557 (struct dwo_unit): New type.
2558 (struct dwo_file): New type.
2559 (die_reader_specs): New member dwo_file.
2560 (dwarf2_locate_sections): Watch for .debug_addr.
2561 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2562 (dwarf2_read_section): Get bfd of section from bfd's asection,
2563 instead of objfile.
2564 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2565 (create_signatured_type_table_from_index): Initialize
2566 sig_type->info_or_types_section.
2567 (dw2_get_file_names): Statement lists for type units with DWO files
2568 live in the DWO file.
2569 (create_debug_types_hash_table): New function.
2570 (create_all_type_units): Rewrite.
2571 (init_cu_die_reader): New arg dwo_file, all callers updated.
2572 (init_and_read_dies_worker): Get section from
2573 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2574 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2575 continue reading the CU/TU from there.
2576 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2577 updated. Get section from this_cu->info_or_types_section.
2578 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2579 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2580 DW_FORM_GNU_str_index.
2581 (hash_dwo_file, eq_dwo_file): New functions.
2582 (allocate_dwo_file_hash_table): New function.
2583 (hash_dwo_unit, eq_dwo_unit): New functions.
2584 (allocate_dwo_unit_table): New function.
2585 (dwarf2_locate_dwo_sections): New function.
2586 (struct create_dwo_info_table_data): New type.
2587 (create_debug_info_hash_table_reader): New function.
2588 (create_debug_info_hash_table): New function.
2589 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2590 (lookup_dwo_file): New function.
2591 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2592 (free_dwo_file, free_dwo_file_cleanup): New functions.
2593 (free_dwo_file_from_slot, free_dwo_files): New functions.
2594 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2595 (dwarf2_record_block_ranges): Ditto.
2596 (read_partial_die): Ditto.
2597 (process_enumeration_scope): Update to use type_offset_in_section.
2598 (read_full_die_1): New function.
2599 (read_full_die): Rewrite.
2600 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2601 DW_FORM_GNU_str_index.
2602 (read_addr_index_1, read_addr_index): New functions.
2603 (read_addr_index_from_leb128): New function.
2604 (struct dwarf2_read_addr_index_data): New type.
2605 (dwarf2_read_addr_index_reader): New function.
2606 (dwarf2_read_addr_index): New function.
2607 (read_str_index): New function.
2608 (leb128_size): New function.
2609 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2610 If processing a type unit from a DWO file, get the line section
2611 from the DWO file.
2612 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2613 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2614 DW_FORM_GNU_str_index.
2615 (lookup_die_type): Check whether section offset of type's die is
2616 known before looking it up. Remove assert. Condition can
2617 legimately happen for inter-cu type references.
2618 (dwarf_attr_name): Handle Fission attributes.
2619 (dwarf_form_name): Handle Fission forms.
2620 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2621 DW_FORM_GNU_str_index.
2622 (follow_die_sig): Update to use type_offset_in_section.
2623 (decode_locdesc): New case DW_OP_GNU_addr_index.
2624 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2625 DW_FORM_GNU_str_index.
2626 (cu_debug_loc_section): New function.
2627 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2628 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2629 Free DWO files if present.
2630 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2631
dee91e82
DE
2632 Refactor DIE reading.
2633 * dwarf2read.c (dwarf2_per_objfile): Replace members
2634 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2635 (die_reader_specs): New member "die_section". Temporarily make
2636 member "buffer" non-const, pending constifying all info_ptr uses.
2637 (die_reader_func_ftype): New typedef.
2638 (dw2_get_file_names_reader): New function.
2639 (dw2_get_file_names): Rewrite.
2640 (read_and_check_type_unit_head): Rename arg type_offset to
2641 type_offset_in_tu.
2642 (create_all_type_units): Improve debugging message.
2643 Improve dummy type unit check.
2644 (init_cu_die_reader): New arg "section". All callers updated.
2645 (init_and_read_dies_worker): New function.
2646 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2647 (init_cutu_and_read_dies_no_follow): New function.
2648 (init_cutu_and_read_dies_simple): New function.
2649 (process_psymtab_comp_unit_reader): New function.
2650 (process_psymtab_comp_unit): Delete args section,
2651 is_debug_types_section. Rewrite. All callers updated.
2652 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2653 All callers updated. Rewrite.
2654 (load_partial_comp_unit_reader): New function.
2655 (load_partial_comp_unit): Rewrite.
2656 (skip_children): New arg reader. Delete args buffer, cu.
2657 All callers updated.
2658 (skip_one_die): New arg reader. Delete args buffer, cu.
2659 All callers updated.
2660 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2661 All callers updated.
2662 (load_full_comp_unit_reader): New function.
2663 (load_full_comp_unit): Rewrite.
2664 (read_comp_unit): Delete.
2665 (read_die_and_children_1): Delete, contents moved ...
2666 (read_die_and_children): ... here.
2667 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2668 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2669 All callers updated.
2670 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2671 All callers updated.
2672 (find_partial_die): Rewrite load_all_dies support.
2673 (read_attribute_value): New arg reader. Delete args abfd, cu.
2674 All callers updated.
2675 (read_attribute): New arg reader. Delete args abfd, cu.
2676 All callers updated.
2677 (load_full_type_unit): Add assert.
2678 (read_signatured_type_reader): New function.
2679 (read_signatured_type): Rewrite.
2680 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2681 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2682 All callers updated. Set per_cu->cu = NULL after freeing it.
2683 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2684 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2685 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2686 (set_die_type): Update.
2687 (get_die_type_at_offset): Update.
2688 (read_file_scope): Call prepare_one_comp_unit.
2689 (read_type_unit_scope): Ditto.
2690 (prepare_one_comp_unit): Set producer if present.
2691
72d59e0d
SDJ
26922012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2693
2694 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2695 gettext function on `error'.
2696
0fefef59
DE
26972012-04-27 Doug Evans <dje@google.com>
2698
2699 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2700 is empty.
2701
28106bc2
SDJ
27022012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2703 Tom Tromey <tromey@redhat.com>
2704
2705 * breakpoint.c (struct breakpoint_objfile_data)
2706 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2707 <exception_probes>: New fields.
2708 (free_breakpoint_probes): New function.
2709 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2710 `_Unwind_DebugHook'.
2711 (create_exception_master_breakpoint): Likewise.
2712 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2713 * infrun.c: Including necessary header files for handling SystemTap
2714 probes.
2715 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2716 via SystemTap probes.
2717 (check_exception_resume): Remove `func' argument. Handle exception
2718 unwinding breakpoint set via a SystemTap probe.
2719 (insert_exception_resume_from_probe): New function.
2720
55aa24fb
SDJ
27212012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2722 Tom Tromey <tromey@redhat.com>
2723 Jan Kratochvil <jan.kratochvil@redhat.com>
2724
2725 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2726 (COMMON_OBS): Likewise.
2727 (HFILES_NO_SRCDIR): Add `probe'.
2728 * NEWS: Mention support for static and SystemTap probes.
2729 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2730 SystemTap probes' arguments parser.
2731 * arm-linux-tdep.c: Including headers needed to perform the parsing
2732 of SystemTap probes' arguments.
2733 (arm_stap_is_single_operand): New function.
2734 (arm_stap_parse_special_token): Likewise.
2735 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2736 probes' arguments parser.
2737 * ax-gdb.c (require_rvalue): Removing static declaration.
2738 (gen_expr): Likewise.
2739 * ax-gdb.h (gen_expr): Declaring function.
2740 (require_rvalue): Likewise.
2741 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2742 (bkpt_probe_breakpoint_ops): New variable.
2743 (momentary_breakpoint_from_master): Set the `probe' value.
2744 (add_location_to_breakpoint): Likewise.
2745 (break_command_1): Using proper breakpoint_ops according to the
2746 argument passed by the user in the command line.
2747 (bkpt_probe_insert_location): New function.
2748 (bkpt_probe_remove_location): Likewise.
2749 (bkpt_probe_create_sals_from_address): Likewise.
2750 (bkpt_probe_decode_linespec): Likewise.
2751 (tracepoint_probe_create_sals_from_address): Likewise.
2752 (tracepoint_probe_decode_linespec): Likewise.
2753 (tracepoint_probe_breakpoint_ops): New variable.
2754 (trace_command): Using proper breakpoint_ops according to the
2755 argument passed by the user in the command line.
2756 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2757 static probes on breakpoints and tracepoints.
2758 * breakpoint.h (struct bp_location) <probe>: New field.
2759 * cli-utils.c (skip_spaces_const): New function.
2760 (extract_arg): Likewise.
2761 * cli-utils.h (skip_spaces_const): Likewise.
2762 (extract_arg): Likewise.
2763 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2764 * configure.ac: Append `stap-probe.o' to be generated when ELF
2765 support is present.
2766 * configure: Regenerate.
2767 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2768 * elfread.c: Include `probe.h' and `arch-utils.h'.
2769 (probe_key): New variable.
2770 (elf_get_probes): New function.
2771 (elf_get_probe_argument_count): Likewise.
2772 (elf_evaluate_probe_argument): Likewise.
2773 (elf_compile_to_ax): Likewise.
2774 (elf_symfile_relocate_probe): Likewise.
2775 (stap_probe_key_free): Likewise.
2776 (elf_probe_fns): New variable.
2777 (elf_sym_fns): Add `sym_probe_fns' value.
2778 (elf_sym_fns_lazy_psyms): Likewise.
2779 (elf_sym_fns_gdb_index): Likewise.
2780 (_initialize_elfread): Initialize objfile cache for static
2781 probes.
2782 * gdb_vecs.h (struct probe): New forward declaration.
2783 (probe_p): New VEC declaration.
2784 * gdbarch.c: Regenerate.
2785 * gdbarch.h: Regenerate.
2786 * gdbarch.sh (stap_integer_prefix): New variable.
2787 (stap_integer_suffix): Likewise.
2788 (stap_register_prefix): Likewise.
2789 (stap_register_suffix): Likewise.
2790 (stap_register_indirection_prefix): Likewise.
2791 (stap_register_indirection_suffix): Likewise.
2792 (stap_gdb_register_prefix): Likewise.
2793 (stap_gdb_register_suffix): Likewise.
2794 (stap_is_single_operand): New function.
2795 (stap_parse_special_token): Likewise.
2796 (struct stap_parse_info): Forward declaration.
2797 * i386-tdep.c: Including headers needed to perform the parsing
2798 of SystemTap probes' arguments.
2799 (i386_stap_is_single_operand): New function.
2800 (i386_stap_parse_special_token): Likewise.
2801 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2802 probes' arguments parser.
2803 * i386-tdep.h (i386_stap_is_single_operand): New function.
2804 (i386_stap_parse_special_token): Likewise.
2805 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2806 * mipsread.c (ecoff_sym_fns): Likewise.
2807 * objfiles.c (objfile_relocate1): Support relocation for static
2808 probes.
2809 * parse.c (prefixify_expression): Remove static declaration.
2810 (initialize_expout): Likewise.
2811 (reallocate_expout): Likewise.
2812 * parser-defs.h (initialize_expout): Declare function.
2813 (reallocate_expout): Likewise.
2814 (prefixify_expression): Likewise.
2815 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2816 of SystemTap probes' arguments.
2817 (ppc_stap_is_single_operand): New function.
2818 (ppc_stap_parse_special_token): Likewise.
2819 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2820 probes' arguments parser.
2821 * probe.c: New file, for generic statically defined probe support.
2822 * probe.h: Likewise.
2823 * s390-tdep.c: Including headers needed to perform the parsing of
2824 SystemTap probes' arguments.
2825 (s390_stap_is_single_operand): New function.
2826 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2827 probes' arguments parser.
2828 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2829 * stap-probe.c: New file, for SystemTap probe support.
2830 * stap-probe.h: Likewise.
2831 * symfile.h: Include `gdb_vecs.h'.
2832 (struct sym_probe_fns): New struct.
2833 (struct sym_fns) <sym_probe_fns>: New field.
2834 * symtab.c (init_sal): Initialize `probe' field.
2835 * symtab.h (struct probe): Forward declaration.
2836 (struct symtab_and_line) <probe>: New field.
2837 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2838 locations.
2839 (stop_tracing): Likewise.
2840 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2841
22d2b532
SDJ
28422012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2843 Tom Tromey <tromey@redhat.com>
2844
2845 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2846 and to compile agent expressions.
2847 * infrun.c (siginfo_make_value): New argument `ignore'.
2848 (siginfo_funcs): New struct.
2849 (_initialize_infrun): New argument when calling
2850 `create_internalvar_type_lazy'.
2851 * thread.c (thread_id_make_value): New argument `ignore'.
2852 (thread_funcs): New struct.
2853 (_initialize_thread): New argument when calling
2854 `create_internalvar_type_lazy'.
2855 * tracepoint.c (sdata_make_value): New argument `ignore'.
2856 (sdata_funcs): New struct.
2857 (_initialize_tracepoint): New argument when calling
2858 `create_internalvar_type_lazy'.
2859 * value.c (make_value): New struct.
2860 (create_internalvar_type_lazy): New argument `data'.
2861 (compile_internalvar_to_ax): New function.
2862 (value_of_internalvar): Properly handling `make_value' case.
2863 (clear_internalvar): Likewise.
2864 (show_convenience): Adding `TRY_CATCH' block.
2865 * value.h (internalvar_make_value): Delete, replace by...
2866 (struct internalvar_funcs): ... this.
2867 (create_internalvar_type_lazy) <fun>: Delete argument.
2868 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2869 (compile_internalvar_to_ax): New function.
2870 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2871 (tlb_funcs): New struct.
2872 (_initialize_windows_tdep): New argument when calling
2873 `create_internalvar_type_lazy'.
2874
91da1414
MW
28752012-04-27 Mark Wielaard <mjw@redhat.com>
2876
2877 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2878 see whether it is an address or a constant offset from DW_AT_low_pc.
2879 (dwarf2_record_block_ranges): Likewise.
2880 (read_partial_die): Likewise.
2881
4ab9d8ec
MW
28822012-04-26 Mark Wielaard <mjw@redhat.com>
2883
2884 * MAINTAINERS (Write After Approval): Add myself to the list.
2885
a0911fd0
MR
28862012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2887
2888 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2889 (proc_prettyprint_signal): Likewise.
2890 (proc_prettyprint_faultset): Likewise.
2891 (proc_prettyprint_fault): Likewise.
2892 (proc_prettyprint_actionset): Likewise.
2893 (proc_prettyprint_flags): Move to new proc-flags.c section.
2894 (proc_prettyfprint_flags): New prototype.
2895 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2896 (proc_syscall, proc_cursig): Likewise.
2897 (proc_set_kill_on_last_close): Likewise.
2898 (proc_unset_kill_on_last_close): Likewise.
2899 (proc_set_watchpoint): Make static.
2900 (proc_delete_dead_threads): Likewise.
2901 (procfs_set_watchpoint): Likewise.
2902 (_initialize_procfs): Add prototype.
2903 * proc-events.c: Include proc-utils.h.
2904 (init_syscall_table): Make static.
2905 * proc-api.c (_initialize_proc_api): Add prototype.
2906 * proc-flags.c: Include proc-utils.h.
2907
9009e1ae
MR
29082012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2909
2910 * configure.ac: Add AC_ARG_PROGRAM.
2911 * configure: Regenerate.
2912
4fae6e18
JK
29132012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2914
2915 Fix DW_AT_lower_bound defaults for DWARF-4+.
2916 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2917 high. New variable low_default_is_valid. Implement DWARF-4+
2918 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2919 no default by the DWARF standard.
2920
14132e89
MR
29212012-04-26 Maciej W. Rozycki <macro@mips.com>
2922 Maciej W. Rozycki <macro@codesourcery.com>
2923
2924 * infrun.c (handle_inferior_event): Move the check for return
2925 trampolines ahead of the check for function trampolines.
2926 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2927 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2928 (mips_str_mips16_ret_stub): Likewise.
2929 (mips_str_call_fp_stub): Likewise.
2930 (mips_str_call_stub): Likewise.
2931 (mips_str_fn_stub): Likewise.
2932 (mips_str_pic): Likewise.
2933 (mips_in_frame_stub): New function.
2934 (mips_unwind_pc): Return the return address rather than the PC
2935 if the PC of an intermediate frame is inside a call thunk.
2936 (mips_is_stub_suffix): New function.
2937 (mips_is_stub_mode): Likewise.
2938 (mips_get_mips16_fn_stub_pc): Likewise.
2939 (mips_skip_mips16_trampoline_code): Update to handle all the
2940 currently generated stub types. Don't recurse into __fn_stub
2941 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2942 Use cooked register accesses.
2943 (mips_in_return_stub): Reintroduce function.
2944 (mips_skip_trampoline_code): Traverse trampolines recursively.
2945 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2946
518f0db5 29472012-04-26 Joel Brobecker <brobecker@adacore.com>
2948
2949 GDB 7.4.1 released.
2950
3184d3f9
JL
29512012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2952
2953 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2954 * features/arm-with-m-vfp-d16.xml: New file. Describes
2955 Cortex-M with VFPv4-sp-d16 FPU register layout.
2956 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2957 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2958 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2959 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2960 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2961
b6201d44
DE
29622012-04-25 Doug Evans <dje@google.com>
2963
2964 * cli/cli-decode.c (print_doc_line): Use stream instead of
2965 current_uiout.
2966
4e2f8df6
SDJ
29672012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2968
2969 * features/arm-with-iwmmxt.c: Regenerate.
2970 * features/arm-with-m-fpa-layout.c: Likewise.
2971 * features/arm-with-m.c: Likewise.
2972 * features/arm-with-neon.c: Likewise.
2973 * features/arm-with-vfpv2.c: Likewise.
2974 * features/arm-with-vfpv3.c: Likewise.
2975 * features/mips-dsp-linux.c: Likewise.
2976 * features/mips-linux.c: Likewise.
2977 * features/mips64-dsp-linux.c: Likewise.
2978 * features/mips64-linux.c: Likewise.
2979 * features/s390-linux32.c: Likewise.
2980 * features/s390-linux32v1.c: Likewise.
2981 * features/s390-linux32v2.c: Likewise.
2982 * features/s390-linux64.c: Likewise.
2983 * features/s390-linux64v1.c: Likewise.
2984 * features/s390-linux64v2.c: Likewise.
2985 * features/s390x-linux64.c: Likewise.
2986 * features/s390x-linux64v1.c: Likewise.
2987 * features/s390x-linux64v2.c: Likewise.
2988 * features/tic6x-c62x-linux.c: Likewise.
2989 * features/tic6x-c62x.c: Likewise.
2990 * features/tic6x-c64x-linux.c: Likewise.
2991 * features/tic6x-c64x.c: Likewise.
2992 * features/tic6x-c64xp-linux.c: Likewise.
2993 * features/tic6x-c64xp.c: Likewise.
2994 * target-descriptions.c: Only generate `field_type' and `type'
2995 variables when needed.
2996
2def3e66
JB
29972012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2998
2999 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
3000
a766d390
DE
30012012-04-25 Doug Evans <dje@google.com>
3002
3003 Initial pass at Go language support.
3004 * NEWS: Mention Go.
3005 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
3006 go-valprint.c.
3007 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
3008 (YYFILES): Add go-exp.c.
3009 (YYOBJ): Add go-exp.o.
3010 (local-maintainer-clean): Delete go-exp.c.
3011 * defs.h (enum language): Add language_go.
3012 * dwarf2read.c: #include "go-lang.h".
3013 (fixup_go_packaging): New function.
3014 (process_full_comp_unit): Call it when processing Go CUs.
3015 (dwarf2_physname): Add Go support.
3016 (read_file_scope): Handle missing language spec for GNU Go.
3017 (set_cu_language): Handle DW_LANG_Go.
3018 * go-exp.y: New file.
3019 * go-lang.h: New file.
3020 * go-lang.c: New file.
3021 * go-typeprint.c: New file.
3022 * go-valprint.c: New file.
3023 * symtab.c: #include "go-lang.h".
3024 (symbol_set_language): Handle language_go.
3025 (symbol_find_demangled_name, symbol_set_names): Ditto.
3026 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
3027
4e2af517
JM
30282012-04-24 Jim Meyering <meyering@redhat.com>
3029
3030 avoid a few strncpy-induced buffer overruns
3031 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
3032 fname and psargs before trying to concatenate.
3033 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
3034 "name" before applying strchr.
3035
b77b7f52
SCR
30362012-04-25 Siva Chandra Reddy <sivachandra@google.com>
3037
3038 * CONTRIBUTE: Use unified diff instead of context diff when
3039 generating patches.
3040
6321c22a
MR
30412012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
3042
3043 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
3044 code. Handle JR.HB correctly.
3045
742c84f6
MR
30462012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
3047
3048 * mips-tdep.c
3049 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
3050 with the other MIPS16 helpers.
3051
7fc7e0c3
SDJ
30522012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
3053
3054 * observer.sh: Conditionally declare `args', thus cleaning up
3055 unused instances of this variable.
3056
20388dd6
YQ
30572012-04-24 Yao Qi <yao@codesourcery.com>
3058
3059 Revert this patch to allow breakpoint always-inserted
3060 in record target.
3061 2011-12-05 Pedro Alves <pedro@codesourcery.com>
3062 * breakpoint.c: Include record.h.
3063 (breakpoints_always_inserted_mode): Return false when the record
3064 target is in use.
3065
3066 * breakpoint.c (iterate_over_bp_locations): New.
3067 * breakpoint.h: Declare.
3068 New typedef walk_bp_location_callback.
3069 * record.c (record_open): Call record_init_record_breakpoints.
3070 (record_sync_record_breakpoints): New.
3071 (record_init_record_breakpoints): New.
3072 * NEWS: Mention supporting breakpoint always-inserted mode in
3073 record target.
3074
4734f50e
MK
30752012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
3076
3077 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
3078 any thread.
3079
c326b90e
YQ
30802012-04-24 Yao Qi <yao@codesourcery.com>
3081
3082 * breakpoint.c (ep_is_catchpoint): Renamed to ...
3083 (is_catchpoint): ... it.
3084 (print_one_breakpoint_location): Caller update.
3085 * breakpoint.h: Update declaration.
3086
d8fb5a1e
DM
30872012-04-23 David S. Miller <davem@davemloft.net>
3088
3089 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
3090
34431a2a
TT
30912012-04-23 Tom Tromey <tromey@redhat.com>
3092
3093 * buildsym.c (add_free_pendings): Remove.
3094 * buildsym.h (add_free_pendings): Remove.
3095
4568ecf9
DE
30962012-04-23 Doug Evans <dje@google.com>
3097
3098 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
3099 attr.u.unsnd instead of attr.u.addr.
3100 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
3101 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
3102 DW_FORM_ref_udata.
3103 (dump_die_shallow): Update cases DW_FORM_ref_addr,
3104 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
3105 DW_FORM_ref_udata.
3106 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
3107
dca9aa3a
MR
31082012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
3109
3110 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
3111 (mips_o32_return_value): Likewise.
3112 (mips_o64_return_value): Likewise.
3113
c8ea1972
PH
31142012-04-21 Paul Hilfinger <hilfinger@adacore.com>
3115
3116 * ada-lang.c (ada_evaluate_subexp): Add cases for
3117 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
3118 their treatment in eval.c.
3119
8d1b3521
DM
31202012-04-21 David S. Miller <davem@davemloft.net>
3121
3122 * sparc-tdep.c (X_DISP10): Define.
3123 (sparc_analyze_control_transfer): Handle compare-and-branch.
3124
03145bf4
JL
31252012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
3126
3127 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
3128 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
3129
004159a2
MR
31302012-04-20 Nigel Stephens <nigel@mips.com>
3131 Maciej W. Rozycki <macro@codesourcery.com>
3132
3133 * mips-tdep.c (mips_float_register_p): New function.
3134 (mips_convert_register_float_case_p): Use mips_float_register_p.
3135 (mips_register_type): Likewise.
3136 (mips_print_register): Likewise.
3137 (print_gp_register_row): Likewise.
3138 (mips_print_registers_info): Likewise.
3139
7f0e6aae
MR
31402012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
3141
3142 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
3143 of mips16 symbols.
3144
bc17beea
AP
31452012-04-20 Andrew Pinski <apinski@cavium.com>
3146
3147 * MAINTAINERS (Write After Approval): Add myself to the list.
3148
1730a5a5
SDJ
31492012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3150
3151 * MAINTAINERS: Update my e-mail address.
3152
38ea300a
PA
31532012-04-20 Pedro Alves <palves@redhat.com>
3154
3155 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
3156 $srcdir.
3157 * configure: Regenerate.
3158
111dfaae
SDJ
31592012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3160
3161 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
3162 declaration.
3163 * gdb_vecs.h: Declare `const_char_ptr' VEC.
3164
4fb2c64a
JK
31652012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3166
3167 Fix compilation compatibility with python-2.4
3168 * python/py-type.c (convert_field): Cast ADDRSTRING for
3169 PyObject_SetAttrString as non-const. New comment.
3170
6328eb38
TT
31712012-04-19 Tom Tromey <tromey@redhat.com>
3172
3173 * top.c (quit_target): Use all_cleanups.
3174 * main.c (captured_command_loop): Use all_cleanups.
3175 * exceptions.c (throw_exception): Use all_cleanups.
3176
c971b7fa
PA
31772012-04-19 Pedro Alves <palves@redhat.com>
3178
3179 * Makefile.in (GNULIB_BUILDDIR): New.
3180 (LIBGNU, INCGNU, GNULIB_H): Adjust.
3181 (SUBDIRS): Add $(GNULIB_BUILDDIR).
3182 (CLEANDIRS). Remove gnulib/import.
3183 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
3184 (all-lib): Ditto.
3185 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
3186 (gnulib/import/Makefile): Replace gnulib/import with
3187 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
3188 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
3189 (aclocal_m4_deps): Remove the gnulib dependencies. Add
3190 acx_configure_dir.m4.
3191 * acinclude.m4: Include acx_configure_dir.m4.
3192 * acx_configure_dir.m4: New file.
3193 * aclocal.m4: Regenerate.
a09130f9
PA
3194 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
3195 calls. Configure gnulib using ACX_CONFIGURE_DIR.
3196 (GNULIB): New variable.
3197 (GNULIB_STDINT_H): Adjust.
3198 (AC_OUTPUT): Don't output gnulib/Makefile.
3199 * gdb/defs.h: Include build-gnulib/config.h.
3200 * aclocal.m4: Regenerate.
3201 * config.in: Regenerate.
3202 * configure: Regenerate.
3203
3204 * gnulib/Makefile.in: New file.
3205 * gnulib/configure.ac: New file.
3206 * gnulib/aclocal.m4: New file.
3207 * gnulib/config.in: New file.
3208 * gnulib/configure: New file.
c971b7fa
PA
3209 * gnulib/: Re-run gnulib-tool to adjust.
3210
b10faa68
DE
32112012-04-19 Doug Evans <dje@google.com>
3212
3213 * cleanups.h (struct cleanup): Move to cleanups.c.
3214 (make_cleanup_dtor_ftype): New typedef.
3215 (make_cleanup_dtor): Use it.
3216 (ALL_CLEANUPS): Replace with ...
3217 (all_cleanups): ... this. Declare. All uses updated.
3218 * cleanups.c: #include "gdb_assert.h".
3219 (sentinel_cleanup): New static global.
3220 (SENTINEL_CLEANUP): Define.
3221 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
3222 (make_my_cleanup2): Assert result is non-NULL.
3223 (all_cleanups): New function.
3224 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
3225 of NULL.
3226
d8c267cc
PA
32272012-04-19 Pedro Alves <palves@redhat.com>
3228
3229 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
3230 Adjust paths to gnulib imported files.
3231
809277f8
PA
32322012-04-19 Pedro Alves <palves@redhat.com>
3233
3234 * gnulib/: Move whole directory ...
3235 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
3236 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
3237 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
3238 (aclocal_m4_deps): Adjust.
3239 * aclocal.m4: Regenerate.
3240 * configure: Regenerate.
3241 * configure.ac: Adjust AC_OUTPUT output.
3242
aad9eab9
YQ
32432012-04-19 Yao Qi <yao@codesourcery.com>
3244
3245 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3246 (vec.o): New rule.
3247 * vec.c: Move it ...
3248 * common/vec.c: ... here.
3249 * vec.h: Move it ...
3250 * common/vec.h: ... here.
3251
48fe4669
YQ
32522012-04-19 Yao Qi <yao@codesourcery.com>
3253
3254 * gdb-code-style.el: New.
3255
770d76d7
PA
32562012-04-18 Pedro Alves <palves@redhat.com>
3257
3258 Update gnulib from latest git.
3259 (639ea5ae15e39fe48d43e04864b2997301e4b969)
3260
3261 * gnulib/Makefile.am: Update.
3262 * gnulib/dummy.c: Update.
3263 * gnulib/extra/arg-nonnull.h: Update.
3264 * gnulib/extra/c++defs.h: Update.
3265 * gnulib/extra/update-copyright: Update.
3266 * gnulib/extra/warn-on-use.h: Update.
3267 * gnulib/inttypes.in.h: Update.
3268 * gnulib/m4/00gnulib.m4: Update.
3269 * gnulib/m4/extensions.m4: Update.
3270 * gnulib/m4/gnulib-cache.m4: Update.
3271 * gnulib/m4/gnulib-common.m4: Update.
3272 * gnulib/m4/gnulib-comp.m4: Update.
3273 * gnulib/m4/gnulib-tool.m4: Update.
3274 * gnulib/m4/include_next.m4: Update.
3275 * gnulib/m4/inttypes-pri.m4: Update.
3276 * gnulib/m4/inttypes.m4: Update.
3277 * gnulib/m4/longlong.m4: Update.
3278 * gnulib/m4/memchr.m4: Update.
3279 * gnulib/m4/memmem.m4: Update.
3280 * gnulib/m4/mmap-anon.m4: Update.
3281 * gnulib/m4/multiarch.m4: Update.
3282 * gnulib/m4/onceonly.m4: Update.
3283 * gnulib/m4/stddef_h.m4: Update.
3284 * gnulib/m4/stdint.m4: Update.
3285 * gnulib/m4/string_h.m4: Update.
3286 * gnulib/m4/warn-on-use.m4: Update.
3287 * gnulib/m4/wchar_h.m4: Update.
3288 * gnulib/m4/wchar_t.m4: Update.
3289 * gnulib/m4/wint_t.m4: Update.
3290 * gnulib/memchr.c: Update.
3291 * gnulib/memmem.c: Update.
3292 * gnulib/stddef.in.h: Update.
3293 * gnulib/stdint.in.h: Update.
3294 * gnulib/str-two-way.h: Update.
3295 * gnulib/string.in.h: Update.
3296 * gnulib/wchar.in.h: Update.
3297
3298 * gnulib/extra/arg-nonnull.h: Delete.
3299 * gnulib/extra/c++defs.h: Delete.
3300 * gnulib/extra/warn-on-use.h: Delete.
3301 * gnulib/m4/wchar_h.m4: Delete.
3302 * gnulib/m4/wint_t.m4: Delete.
3303 * gnulib/wchar.in.h: Delete.
3304
3305 * gnulib/extra/snippets/arg-nonnull.h: New.
3306 * gnulib/extra/snippets/c++defs.h: New.
3307 * gnulib/extra/snippets/warn-on-use.h: New.
3308
3309 * aclocal.m4: Regenerate.
3310 * config.in: Regenerate.
3311 * configure: Regenerate.
3312 * gnulib/Makefile.in: Regenerate.
3313
174e088e
PA
33142012-04-18 Pedro Alves <palves@redhat.com>
3315
3316 Reimport the update-copyright module from gnulib
3317 (250b80067c1e1d8faa0c42fb572f721975b929c5).
3318
3319 * configure: Regenerate.
3320 * gnulib/Makefile.am: Update.
3321 * gnulib/Makefile.in: Regenerate.
3322 * gnulib/extra/update-copyright: Update.
3323 * gnulib/m4/gnulib-cache.m4: Update.
3324 * gnulib/m4/gnulib-comp.m4: Update.
3325
7f533142
JB
33262012-04-18 Tristan Gingold <gingold@adacore.com>
3327
3328 * configure.ac (aix): Put -lpthread into libs.
3329 * configure: Regenerate.
3330
001822aa
TT
33312012-04-18 Tom Tromey <tromey@redhat.com>
3332
3333 * linespec.c (convert_linespec_to_sals): Don't use
3334 SYMBOL_OBJ_SECTION.
3335 (compare_msymbols): Arguments are minsym_and_objfile, not
3336 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
3337
db026a31
PA
33382012-04-18 Pedro Alves <palves@redhat.com>
3339
3340 Revert gnulib/ part of:
3341 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3342 Copyright year update in most files (performed by copyright.sh).
3343
12df843f
JK
33442012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3345
3346 Fix 64-bit constants on 32-bit hosts.
3347 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3348 from unsigned long to ULONGEST.
3349 (read_signed_leb128): Change declaration return type from long to
3350 LONGEST.
3351 (dwarf2_const_value_attr): Change declaration parameter value from long
3352 to LONGEST.
3353 (dwarf2_compute_name): Change variable value from long to LONGEST.
3354 (read_unsigned_leb128): Change return type, variable result and some
3355 casts from unsigned long to ULONGEST.
3356 (read_signed_leb128): Change return type, variable result and some
3357 casts from long to LONGEST.
3358 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3359 value from long to LONGEST.
3360 (dwarf2_const_value): Change variable value from long to LONGEST.
3361 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3362 plongest and hex_string.
3363 * symtab.h (struct general_symbol_info): Change ivalue from long to
3364 LONGEST, remove the comment.
3365 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3366 Change SYMBOL_VALUE format strings to use plongest and hex_string.
3367
14e75d8e
JK
33682012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
3369
3370 PR symtab/7259:
3371 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3372 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
3373 (ada_discrete_type_low_bound): Fix function comment. Use
3374 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
3375 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3376 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3377 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3378 Use TYPE_FIELD_ENUMVAL.
3379 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3380 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3381 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3382 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
3383 TYPE_CODE_ENUM.
3384 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3385 * dwarf2read.c (process_enumeration_scope): Likewise.
3386 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3387 field.bitpos.
3388 (class StructMainTypePrettyPrinter): Support also
3389 FIELD_LOC_KIND_ENUMVAL.
3390 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3391 TYPE_CODE_ENUM.
3392 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3393 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3394 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3395 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3396 field enumval.
3397 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3398 accommodate enumval.
3399 (struct call_site): Adjust loc_kind to accommodate enumval.
3400 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3401 (TYPE_FIELD_ENUMVAL): New macros.
3402 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3403 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3404 TYPE_CODE_ENUM.
3405 * p-typeprint.c (pascal_type_print_base): Likewise.
3406 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3407 enumval.
3408 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3409 * python/py-type.c (convert_field): New variable addrstring. Use
3410 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3411 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3412 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3413 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3414 TYPE_CODE_ENUM.
3415 * valprint.c (generic_val_print): Likewise.
3416
380bca97
DE
34172012-04-17 Doug Evans <dje@google.com>
3418
dcc07052
DE
3419 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3420
380bca97
DE
3421 * dwarf2read.c: Whitespace fixes.
3422 (lookup_signatured_type): Tweak comment.
3423 (get_die_type_at_offset): Fix comment.
3424
ec92004f
JB
34252012-04-17 Joel Brobecker <brobecker@adacore.com>
3426
3427 * xcoffread.c (xcoff_secnum_to_sections): New function.
3428 (secnum_to_section, secnum_to_bfd_section): Reimplement
3429 using xcoff_secnum_to_sections. Rename "secnum" parameter
3430 into "n_scnum".
3431 (RECORD_MINIMAL_SYMBOL): Delete.
3432 (record_minimal_symbol): New function.
3433 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3434 by call to record_minimal_symbol and set misc_func_recorded
3435 to 1. Set last_csect_sec to the XCOFF section index instead
3436 of GDB's section_offset index. Update calls to
3437 prim_record_minimal_symbol_and_info to pass the BFD section
3438 as well.
3439
40301fb7
JB
34402012-04-17 Joel Brobecker <brobecker@adacore.com>
3441
3442 * xcoffread.c (read_xcoff_symtab): Delete variables
3443 last_csect_val and last_csect_sec and associated code.
3444
e0088cfd
DE
34452012-04-17 Doug Evans <dje@google.com>
3446
58d5e2c3
DE
3447 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3448 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3449 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3450 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3451
c27f5738
DE
3452 * cleanups.h: New file.
3453 * cleanups.c: New file.
3454 * Makefile.in (SFILES): Add cleanups.c.
3455 (HFILES_NO_SRCDIR): Add cleanups.h.
3456 (COMMON_OBS): Add cleanups.o.
3457 * defs.h (struct cleanup): Moved to cleanups.h.
3458 (do_cleanups,do_final_cleanups): Ditto.
3459 (discard_cleanups,discard_final_cleanups): Ditto
3460 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3461 (save_cleanups,save_final_cleanups): Ditto.
3462 (restore_cleanups,restore_final_cleanups): Ditto.
3463 (null_cleanup): Ditto.
3464 (make_my_cleanup,make_my_cleanup2): Ditto.
3465 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3466 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3467 (do_cleanups,do_final_cleanups): Ditto.
3468 (discard_cleanups,discard_final_cleanups): Ditto
3469 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3470 (save_cleanups,save_final_cleanups): Ditto.
3471 (restore_cleanups,restore_final_cleanups): Ditto.
3472 (null_cleanup): Ditto.
3473 (make_my_cleanup,make_my_cleanup2): Ditto.
3474 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3475
e0088cfd
DE
3476 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3477 make_my_cleanup.
3478 (make_cleanup_dyn_string_delete): Ditto.
3479 (make_cleanup_ui_file_delete): Ditto.
3480 (make_cleanup_ui_out_redirect_pop): Ditto.
3481 (make_cleanup_free_section_addr_info): Ditto.
3482 (make_cleanup_restore_integer): Ditto.
3483 (make_cleanup_unpush_target): Ditto.
3484 (make_cleanup_value_free_to_mark): Ditto.
3485 (make_cleanup_value_free): Ditto.
3486 (make_cleanup_free_so): Ditto.
3487
4dc84fd1
JK
34882012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3489
3490 New option "set debug auto-load".
3491 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3492 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3493 (auto_load_safe_path_vec_update)
3494 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3495 if DEBUG_AUTO_LOAD.
3496 (file_is_auto_load_safe): New parameters debug_fmt and ....
3497 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3498 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3499 caller by explanatory string.
3500 (_initialize_auto_load): Register "set debug auto-load".
3501 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3502 and ....
3503 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3504 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3505 by explanatory string.
3506 * main.c (captured_main): Likewise.
3507 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3508 (source_section_scripts): Likewise.
3509
bccbefd2
JK
35102012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3511
3512 New option "set auto-load safe-path".
3513 * NEWS: New commands "set auto-load safe-path"
3514 and "show auto-load safe-path".
3515 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3516 (auto_load_safe_path, auto_load_safe_path_vec)
3517 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3518 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3519 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3520 (source_gdb_script_for_objfile): New variable is_safe. Call
3521 file_is_auto_load_safe. Return if it is not.
3522 (struct loaded_script): New field loaded.
3523 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3524 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3525 output "Missing" to "No".
3526 (_initialize_auto_load): New variable cmd. Initialize
3527 auto_load_safe_path. Register "set auto-load safe-path",
3528 "show auto-load safe-path" and "add-auto-load-safe-path".
3529 * auto-load.h (maybe_add_script): Add parameter loaded.
3530 (file_is_auto_load_safe): New declaration.
3531 * config.in: Regenerate.
3532 * configure: Regenerate.
3533 * configure.ac: New parameters --with-auto-load-safe-path
3534 and --without-auto-load-safe-path.
3535 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3536 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3537 * main.c (captured_main): Check file_is_auto_load_safe for
3538 LOCAL_GDBINIT.
3539 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3540 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3541 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3542 not.
3543
bf88dd68
JK
35442012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3545
3546 auto-load: Implementation.
3547 * NEWS: New descriptions for "info auto-load",
3548 "info auto-load gdb-scripts", "info auto-load python-scripts",
3549 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3550 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3551 and "show auto-load-scripts". New description for "set auto-load",
3552 "show auto-load", "set auto-load gdb-scripts",
3553 "show auto-load gdb-scripts", "set auto-load python-scripts",
3554 "show auto-load python-scripts", "set auto-load local-gdbinit",
3555 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3556 "show auto-load libthread-db".
3557 * auto-load.c: Remove include python/python-internal.h. Add includes
3558 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3559 cli/cli-setshow.h.
3560 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3561 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3562 (gdbpy_global_auto_load): Rename to ...
3563 (global_auto_load): ... here.
3564 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3565 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3566 (script_language_gdb, source_gdb_script_for_objfile): New.
3567 (struct loaded_script): New field language.
3568 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3569 LANGUAGE.
3570 (maybe_add_script): Add parameter language. Drop redundant
3571 entry.full_path initialization. Initialize entry.language and
3572 (*slot)->language.
3573 (auto_load_objfile_script): Change parameter suffix to language.
3574 Remove the call of maybe_add_script.
3575 Call language->source_script_for_objfile.
3576 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3577 New.
3578 (collect_matching_scripts): Adjust it for
3579 struct collect_matching_scripts_data.
3580 (auto_load_info_scripts_pattern_nl): New variable.
3581 (info_auto_load_scripts): Rename to ...
3582 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3583 for struct collect_matching_scripts_data.
3584 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3585 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3586 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3587 (auto_load_info_cmdlist_get): New.
3588 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3589 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3590 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3591 "info auto-load local-gdbinit".
3592 * auto-load.h (struct script_language): New.
3593 (gdbpy_global_auto_load): Rename to ...
3594 (global_auto_load): ... here.
3595 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3596 (auto_load_local_gdbinit_loaded): New declarations.
3597 (maybe_add_script): New parameter language.
3598 (auto_load_objfile_script): Change parameter suffix to language.
3599 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3600 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3601 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3602 declarations.
3603 * linux-thread-db.c: Include auto-load.h and ctype.h.
3604 (auto_load_thread_db, show_auto_load_thread_db): New.
3605 (struct thread_db_info): New field filename.
3606 (delete_thread_db_info): Call xfree for FILENAME.
3607 (try_thread_db_load): Initialize FILENAME.
3608 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3609 if !AUTO_LOAD_THREAD_DB.
3610 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3611 (_initialize_thread_db): Install auto_load_thread_db
3612 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3613 as "info auto-load libthread-db".
3614 * main.c (captured_main): Rename gdbpy_global_auto_load to
3615 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3616 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3617 (print_gdb_help): Extend the help for 'local init file'.
3618 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3619 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3620 (auto_load_scripts): Rename to ...
3621 (auto_load_python_scripts): ... here, update the comment.
3622 (gdbpy_load_auto_script_for_objfile): New declaration.
3623 (show_auto_load_python_scripts, script_language_python)
3624 (gdbpy_load_auto_script_for_objfile): New.
3625 (source_section_scripts): Refactor the code.
3626 (load_auto_scripts_for_objfile): Rename to ...
3627 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3628 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3629 (info_auto_load_python_scripts): New.
3630 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3631 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3632 Register "set auto-load-scripts" as its deprecated alias. Register
3633 "info auto-load python-scripts". Register "info auto-load-scripts" as
3634 its deprecated alias.
3635 (load_auto_scripts_for_objfile): Rename to ...
3636 (gdbpy_load_auto_scripts_for_objfile): ... here.
3637 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3638 (gdbpy_load_auto_scripts_for_objfile): ... here.
3639
e2207b9a
JK
36402012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3641
3642 auto-load: Move files.
3643 * Makefile.in (SFILES): Add auto-load.c.
3644 (HFILES_NO_SRCDIR): Add auto-load.h.
3645 (COMMON_OBS): Add auto-load.o.
3646 (distclean): Change .gdbinit for gdb-gdb.gdb.
3647 * auto-load.c: New file, with parts from python/py-auto-load.c.
3648 * auto-load.h: New file, with parts from python/python.h.
3649 * configure: Regenerate.
3650 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3651 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3652 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3653 * main.c: Include auto-load.h.
3654 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3655 command.h, observer.h and progspace.h to auto-load.c. Add include
3656 auto-load.h.
3657 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3658 (struct loaded_script, auto_load_pspace_data)
3659 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3660 (hash_loaded_script_entry, eq_loaded_script_entry)
3661 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3662 (maybe_add_script): Move to auto-load.c.
3663 (source_section_scripts): Change maybe_add_script parameters passing,
3664 use script_not_found_warning_print.
3665 (clear_section_scripts, auto_load_objfile_script)
3666 (auto_load_new_objfile, loaded_script_ptr)
3667 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3668 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3669 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3670 auto_load_new_objfile and info_auto_load_scripts initizations to
3671 auto-load.c.
3672 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3673
e4ab2fad
JK
36742012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3675
3676 Code cleanup.
3677 * charset.c (find_charset_names): Remove variables ix and elt.
3678 Use free_char_ptr_vec.
3679 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3680 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3681 debugdir_end. New variable debugdir_len.
3682 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3683 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3684 declarations.
3685 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3686 and elt. Use free_char_ptr_vec.
3687 * source.c (add_path): Remove variables argv, arg and argv_index.
3688 New variables dir_vec, back_to, ix and name.
3689 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3690 make_cleanup_freeargv. Remove variable separator. Simplify the code
3691 no longer expecting DIRNAME_SEPARATOR.
3692 (openp): Remove variable p, p1 and len. New variables dir_vec,
3693 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3694 no longer expecting DIRNAME_SEPARATOR.
3695 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3696 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3697 debugdir_end.
3698 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3699 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3700 (dirnames_to_char_ptr_vec): New functions.
3701
5ee4ed9f
JK
37022012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3703
3704 Code cleanup.
3705 * source.c (add_path): Remove always true conditional 'p == 0' and
3706 unindent its code block.
3707
f41f5e61
PA
37082012-04-17 Pedro Alves <palves@redhat.com>
3709
3710 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3711 (FIELD_BITPOS_LVAL): ... this.
3712 (FIELD_BITPOS): New.
3713 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3714 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3715 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3716 SET_FIELD_BITPOS.
3717 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3718 SET_FIELD_BITPOS.
3719 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3720 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3721 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3722 SET_FIELD_BITPOS.
3723
945b3a32
JK
37242012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3725
3726 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3727 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3728 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3729 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3730 * jv-lang.c (java_link_class_type): Likewise, once.
3731 * stabsread.c (read_enum_type): Likewise.
3732
42476b70
YQ
37332012-04-16 Yao Qi <yao@codesourcery.com>
3734
3735 * common/agent.c (agent_run_command): Add one more parameter `len'.
3736 Update callers.
3737 * common/agent.h: Update declaration.
3738 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3739 Update.
3740 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3741
8264ba82
AG
37422012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3743
3744 PR mi/13393
3745 * value.c (value_actual_type): New function.
3746 * value.h (value_actual_type): New declaration.
3747 * varobj.c (update_type_if_necessary): New function.
3748 (varobj_create): Call value_actual_type instead of
3749 value_type.
3750 (install_dynamic_child): distinct changed and type changed MI variable
3751 objects.
3752 (update_dynamic_varobj_children): Updated for install_dynamic_child
3753 change. All callers updated.
a09130f9 3754 (varobj_update): Support for MI variable object type change if
8264ba82
AG
3755 the value changed and RTTI is used to determine the type.
3756 (create_child_with_value): Call value_actual_type instead of
3757 value_type.
a09130f9 3758 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
3759 specify whether the given value should be casted to enclosing type.
3760 All callers updated.
3761
55a8c076
YQ
37622012-04-14 Yao Qi <yao@codesourcery.com>
3763
3764 Import gnulib module inttypes from git
3765 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3766 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
3767 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3768 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
3769 * aclocal.m4, config.in, configure: Regenerated.
3770 * gnulib/Makefile.am: Update.
3771 * gnulib/Makefile.in: Update.
3772 * gnulib/m4/gnulib-cache.m4: Update.
3773 * gnulib/m4/gnulib-comp.m4: Update.
3774 * gnulib/inttypes.in.h: New.
3775 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 3776 * gnulib/m4/inttypes.m4: New.
55a8c076 3777
ca7781d2
LM
37782012-04-13 Luis Machado <lgustavo@codesourcery.com>
3779
3780 * infrun.c (resume): Update PC address to the real PC after
3781 preparing to do displaced stepping.
3782
e319fa28
DE
37832012-04-12 Doug Evans <dje@google.com>
3784
3785 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3786 All callers updated.
3787
15add3f5
MK
37882012-04-12 Mark Kettenis <kettenis@gnu.org>
3789
3790 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3791
52dc124a
DE
37922012-04-12 Doug Evans <dje@google.com>
3793
0e50663e
DE
3794 * dwarf2read.c (create_all_type_units): Renamed from
3795 create_debug_types_hash_table. All callers updated.
3796
52dc124a
DE
3797 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3798 local type_sig to sig_type, type_offset to type_offset_in_tu.
3799 (hash_signatured_type): Renamed from hash_type_signature,
3800 all callers updated.
3801 (eq_signatured_type): Renamed from eq_type_signature,
3802 all callers updated.
3803 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3804 (process_enumeration_scope): Ditto.
3805 (lookup_signatured_type_at_offset): Ditto.
3806 (load_full_type_unit, read_signatured_type): Ditto.
3807
248fd3bf
YQ
38082012-04-12 Yao Qi <yao@codesourcery.com>
3809
3810 * remote.c (async_remote_interrupt): Correct function name in
3811 debug message.
3812 (async_remote_interrupt_twice): Ditto.
3813
bc3aa6c3
DE
38142012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3815
3816 * source.c (find_and_open_source): Consistently pass resulting
3817 full path through xfullpath.
3818
9e529e1d
JK
38192012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3820
3821 Provide more specific displaced-stepping memory error message.
3822 * infrun.c (displaced_step_prepare): New variable status. Call
3823 target_read_memory instead of read_memory, provide more specific
3824 error message.
3825
82e0cec1
TG
38262012-04-11 Tristan Gingold <gingold@adacore.com>
3827
3828 PR gdb/13901
3829 * darwin-nat.c (darwin_execvp): Revert previous patch.
3830
d987a266
TG
38312012-04-11 Tristan Gingold <gingold@adacore.com>
3832
3833 PR gdb/13901
3834 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3835 in case of change.
3836
016b7430
TG
38372012-04-11 Tristan Gingold <gingold@adacore.com>
3838
3839 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3840 warning.
3841
06fc020f
SCR
38422012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3843
3844 New command 'explore' which helps explore values and types in
3845 scope.
3846 * NEWS: Add an entry about the new 'explore' command.
3847 * data-directory/Makefile.in: Add gdb/command/explore.py
3848 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 3849 command using the GDB Python API.
06fc020f 3850
de0919f8 38512012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
3852
3853 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3854 extension in jump target calculation.
3855
de0919f8 38562012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
3857
3858 * mips-tdep.c (mips32_next_pc): Handle JALX.
3859
2f26ef89
YQ
38602012-04-10 Yao Qi <yao@codesourcery.com>
3861
3862 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3863
2e505b66
YQ
38642012-04-10 Yao Qi <yao@codesourcery.com>
3865
3866 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3867 and gnulib/m4/gnulib-tool.m4.
3868
0d99eb77
DE
38692012-04-10 Doug Evans <dje@google.com>
3870
3871 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3872 (load_partial_dies): Clarify comment.
3873 (find_partial_die): Support rereading type units.
3874 Clarify CU handling, if we know offset is in CU, don't search for the
3875 containing CU. Add comment regarding memory waste.
3876
9a82b8ff
L
38772012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3878
3879 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3880 i386/x32-avx and i386/x32-avx-linux.
3881 (i386/x32-expedite): New.
3882 (i386/x32-linux-expedite): Likewise.
3883 (i386/x32-avx-expedite): Likewise.
3884 (i386/x32-avx-linux-expedite): Likewise.
3885 ($(outdir)/i386/x32.dat): Likewise.
3886 ($(outdir)/i386/x32-linux.dat): Likewise.
3887 ($(outdir)/i386/x32-avx.dat): Likewise.
3888 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3889
3890 * features/i386/x32-avx-linux.xml: New file.
3891 * features/i386/x32-avx.xml: Likewise.
3892 * features/i386/x32-core.xml: Likewise.
3893 * features/i386/x32-linux.xml: Likewise.
3894 * features/i386/x32.xml: Likewise.
3895
3896 * features/i386/x32-avx-linux.c: New. Generated.
3897 * features/i386/x32-avx.c: Likewise.
3898 * features/i386/x32-linux.c: Likewise.
3899 * features/i386/x32.c: Likewise.
3900 * regformats/i386/x32-avx-linux.dat: Likewise.
3901 * regformats/i386/x32-avx.dat: Likewise.
3902 * regformats/i386/x32-linux.dat: Likewise.
3903 * regformats/i386/x32.dat: Likewise.
3904
ee41036f
TG
39052012-04-10 Tristan Gingold <gingold@adacore.com>
3906
3907 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3908 code to kill the inferior.
3909
a7aa5b8a
MK
39102012-04-09 Mark Kettenis <kettenis@gnu.org>
3911
3912 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3913 defines.
3914 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3915 defines.
a09130f9 3916 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
3917 (yyvsp): New defines.
3918 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3919 defines.
3920 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3921 defines.
3922 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3923 defines.
3924 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3925 defines.
3926 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3927 defines.
3928
fb57d452
MK
39292012-04-09 Mark Kettenis <kettenis@gnu.org>
3930
a09130f9 3931 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
3932 (sparc64_store_arguments): Fix coding style.
3933
cdc7b32f
MK
39342012-04-07 Mark Kettenis <kettenis@gnu.org>
3935
3936 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3937 complex floats, adjust some related comments and tighten a related
3938 assertion.
3939 (sparc64_extract_return_value): Handle complex floats.
3940
7adf1e79
DE
39412012-04-07 Doug Evans <dje@google.com>
3942
3943 * dwarf2read.c (load_partial_dies): Change condition to assert.
3944
50f1ae7b
DE
39452012-04-06 Doug Evans <dje@google.com>
3946
3947 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3948 "mov %rsp,%rbp".
3949
55fa75c3
KB
39502012-04-05 Kevin Buettner <kevinb@redhat.com>
3951
3952 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3953 fencepost error.
3954 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3955 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3956 architecture.
3957
40e084e1
KS
39582012-04-05 Keith Seitz <keiths@redhat.com>
3959
3960 * linespec.c (decode_compound): Remove.
3961 (enum offset_relative_sign): New enum.
3962 (struct line_offset): New struct.
3963 (struct linespec): New struct.
3964 (struct linespec_state): Move file_symtabs,
3965 user_filename, and user_function into struct linespec.
3966 Make result an anonymous struct holding vectors of
3967 symbolp and minsym_and_objfile_d.
3968 Add language member.
3969 (enum ls_token_type): New enum.
3970 (linespec_keywords): New array.
3971 (struct ls_token): New struct.
3972 (struct ls_parser): New struct.
3973 (linespec_lexer_lex_number): New function.
3974 (linespec_lexer_lex_keyword): New function.
3975 (is_ada_operator): New function.
3976 (skip_quote_char): New function.
3977 (copy_token_string): New function.
3978 (is_closing_quote_enclosed): New function.
3979 (find_parameter_list_end): New function.
3980 (linespec_lexer_lex_string): New function.
3981 (linespec_lexer_lex_one): New function.
3982 (linespec_lexer_consume_token): New function.
3983 (linespec_lexer_peek_token): New function.
3984 (cplusplus_error): Remove unused function.
3985 (find_methods): Update comment.
3986 (find_toplevel_char): Return const.
3987 (is_objc_method_format): Remove unused function.
3988 (find_toplevel_string): New function.
3989 (is_linespec_boundary): Remove.
3990 (symbol_not_found_error): New function.
3991 (find_method_overload_end): Remove function.
3992 (unexpected_linespec_error): New function.
3993 (keep_name_info): Remove.
3994 (linespec_parse_line_offset): New function.
3995 (linespec_parse_basic): New function.
3996 (canonicalize_linespec): New function.
3997 (decode_line_internal): Remove.
3998 (create_sals_line_offset): New function adapted from
3999 decode_all_digits.
4000 (convert_linespec_to_sals): New function.
4001 (parse_linespec): New function.
4002 (linespec_parser_new): New function.
4003 (linespec_state_destructor): Change parameter type to
4004 struct linespec_state *.
4005 Add language parameter.
4006 Remove freeing of moved members.
4007 (linespec_parser_delete): New function.
4008 (decode_line_full): Use parse_linespec and linespec_parser_new.
4009 (decode_line_1): Likewise.
4010 (decode_indirect): Rename to ...
4011 (linespec_expression_to_pc): ... this and rewrite
4012 to simply find CORE_ADDR, storing this result for later
4013 conversion to SALs.
4014 (locate_first_half): Remove.
4015 (deocde_objc): Add parameter LS.
4016 Initialize new struct collect_info members.
4017 Handle minimal symbols, too.
4018 (decode_compound): Delete.
4019 (lookup_prefix_sym): Rewrite.
4020 (compare_msymbols): New function.
4021 (find_method): Rewrite.
4022 Do not call cplusplus_error.
4023 (symtabs_from_filename): Rewrite.
4024 (collect_function_symbols): Delete.
4025 (find_function_symbols): Rewrite without ARGPTR-style
4026 processing.
4027 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
4028 (decode_dollar): Adapted and renamed to ...
4029 (linespec_parse_variable): ... this.
4030 (find_linespec_symbols): New function.
4031 (decode_label): Adapted and renamed to ...
4032 (find_label_symbols): ... this.
4033 (decode_digits_list_mode): Add and use LS argument.
4034 (decode_digits_ordinary): Likewise.
4035 (collect_symbols): Do not collect SALs, just symbols and msymbols.
4036 If in list mode, allow any symbol class. Otherwise, only
4037 permit LOC_BLOCK symbols.
4038 (minsym_found): Update comments.
4039 (search_minsyms_for_name): Do not convert the matching symbol
4040 into a SAL. Simply push the symbol and objfile into the
4041 result vector.
4042 (decode_variable): Delete. Contents adapted into
4043 find_linespec_symbols.
4044
4045 * cp-support.c (SKIP_SPACE): Remove.
4046 (operator_tokens): Remove unused global.
4047 (cp_validate_operator): Remove.
4048 * cp-support.h (cp_validate_operator): Remove declaration.
4049
a72c8f6a
JK
40502012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4051
4052 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
4053 for TYPE_VPTR_FIELDNO.
4054 * valprint.c (valprint_check_validity): Make it global, move the
4055 function comment ...
4056 * value.h (valprint_check_validity): ... to this new declaration.
4057
cf9bb588
TG
40582012-04-02 Tristan Gingold <gingold@adacore.com>
4059
4060 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
4061 the STATE32 api for i386 state.
4062 (i386_darwin_store_inferior_registers): Likewise.
4063
17092398
TG
40642012-04-02 Tristan Gingold <gingold@adacore.com>
4065
4066 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
4067 SS offset.
4068 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
4069 format_string.
4070
ece0061f
TG
40712012-04-02 Tristan Gingold <gingold@adacore.com>
4072
4073 PR gdb/13901
d987a266 4074 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 4075
cf65ecd3
JK
40762012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4077
4078 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
4079
9bc3523d
TT
40802012-03-30 Tom Tromey <tromey@redhat.com>
4081
4082 * python/python.c (gdbpy_decode_line): Move cleanup creation out
4083 of TRY_CATCH. Fix error handling.
4084 * python/py-value.c (convert_value_from_python): Move 'old'
4085 declaration to innermost scope.
4086
b1ed564a
JB
40872012-03-29 Joel Brobecker <brobecker@adacore.com>
4088 Andrey Smirnov <andrew.smirnov@gmail.com>
4089
4090 -Wshadow warning fix.
4091 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
4092 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
4093 Adjust code accordingly.
4094
cb8e9b97
JB
40952012-03-29 Joel Brobecker <brobecker@adacore.com>
4096
4097 * ada-lang.c (symbol_completion_add): Rename parameter
4098 "encoded" into "encoded_p". Ajust code and documentation
4099 accordingly.
4100
c0af1706
JB
41012012-03-29 Joel Brobecker <brobecker@adacore.com>
4102 Andrey Smirnov <andrew.smirnov@gmail.com>
4103
4104 -Wshadow warning fix.
4105 * ada-lang.c (symbol_completion_add): Rename parameter
4106 "wild_match" into wild_match_p. Update code and documentation
4107 accordingly.
4108
6ea35997
JB
41092012-03-29 Joel Brobecker <brobecker@adacore.com>
4110
4111 * ada-lang.c (symbol_completion_match): Rename parameter
4112 "encoded" into "encoded_p". Ajust code and documentation
4113 accordingly.
4114
e701b3c0
JB
41152012-03-29 Joel Brobecker <brobecker@adacore.com>
4116 Andrey Smirnov <andrew.smirnov@gmail.com>
4117
4118 -Wshadow warning fix.
4119 * ada-lang.c (symbol_completion_match): Rename parameter
4120 "wild_match" into "wild_match_p". Adjust code and function
4121 documentation accordingly.
4122
5e2336be
JB
41232012-03-29 Joel Brobecker <brobecker@adacore.com>
4124 Andrey Smirnov <andrew.smirnov@gmail.com>
4125
4126 -Wshadow warning fix.
4127 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
4128 "symbol_info" into "info". Adjust code accordingly.
4129 (ada_lookup_symbol): Likewise.
4130
9f88c959
JB
41312012-03-29 Joel Brobecker <brobecker@adacore.com>
4132
4133 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
4134 of this function's documentation.
4135
82ccd55e
JB
41362012-03-29 Joel Brobecker <brobecker@adacore.com>
4137 Andrey Smirnov <andrew.smirnov@gmail.com>
4138
4139 -Wshadow warning fix.
4140 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
4141 variable into "wild_match_p". Adjust code accordingly.
4142
d0a8ab18
JB
41432012-03-29 Joel Brobecker <brobecker@adacore.com>
4144 Andrey Smirnov <andrew.smirnov@gmail.com>
4145
4146 -Wshadow warning fix.
4147 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
4148 parameter into "wild_match_p". Adjust code accordingly.
4149 Document this parameter in the function description.
4150
48b78332
JB
41512012-03-29 Joel Brobecker <brobecker@adacore.com>
4152 Andrey Smirnov <andrew.smirnov@gmail.com>
4153
4154 -Wshadow warning fix.
4155 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
4156 "wild_match" parameter to "wild_match_p" (-Wshadow).
4157
2e6e0353
JB
41582012-03-29 Joel Brobecker <brobecker@adacore.com>
4159
4160 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
4161 in function documentation.
4162
dc4024cd
JB
41632012-03-29 Joel Brobecker <brobecker@adacore.com>
4164 Andrey Smirnov <andrew.smirnov@gmail.com>
4165
4166 -Wshadow warning fix.
4167 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
4168 variable into wild_match_p. Adjust code accordingly.
4169
6c88661c
JB
41702012-03-29 Joel Brobecker <brobecker@adacore.com>
4171 Andrey Smirnov <andrew.smirnov@gmail.com>
4172
4173 * ada-valprint.c (ada_val_print_1): Move the code handling
4174 TYPE_CODE_ENUM inside its own lexical block. Declare
4175 variables len and val there, instead of in the function's
4176 top level block. Avoid declaring deref_val again in a way
4177 that shadows another variable of the same name declared
4178 in one of the up-level blocks. Just re-use the up-level
4179 variable instead.
4180
4e5c77fe
JB
41812012-03-29 Joel Brobecker <brobecker@adacore.com>
4182
4183 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
4184 Replace block_found argument by symbol_info. Adjust
4185 implementation accordingly. Add function documentation.
4186 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
4187 Fix documentation.
4188 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
4189 * ada-exp.y (write_object_renaming): Adjust to new
4190 ada_lookup_encoded_symbol API.
4191
1c0ac8c7
JB
41922012-03-29 Joel Brobecker <brobecker@adacore.com>
4193
4194 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
4195 documentation.
4196
2aaed979
KB
41972012-03-28 Rathish C <rathish.c@kpitcummins.com>
4198
4199 * v850-tdep.c: Add the enum values for mpu and fpu registers.
4200 (v850_register_name): Add the mpu and fpu register names.
4201 (v850e_register_name): Add the mpu and fpu register names.
4202 (v850e2_register_name): New function.
a09130f9 4203 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
4204 bfd_mach_v850e2v3.
4205
927fbba6
JB
42062012-03-28 Joel Brobecker <brobecker@adacore.com>
4207
4208 * NEWS: Add entry for Ada varobj support.
4209
d32cafc7
JB
42102012-03-28 Joel Brobecker <brobecker@adacore.com>
4211
4212 * varobj.c (default_value_is_changeable_p): New function,
4213 extracted from varobj_value_is_changeable_p. Add declaration.
4214 (ada_value_is_changeable_p): New function, extracted from
4215 varobj_value_is_changeable_p. Add declaration.
4216 (struct language_specific): New field "value_is_changeable_p".
4217 (languages): Add entries for new field.
4218 (varobj_create): Set language before calling install_new_value.
4219 (varobj_value_is_changeable_p): Reimplement to call the varobj's
4220 "value_is_changeable_p" language callback.
4221
181875a4
JB
42222012-03-28 Joel Brobecker <brobecker@adacore.com>
4223
4224 * ada-varobj.h, ada-varobj.c: New files.
4225 * Makefile.in (SFILES): Add ada-varobj.c.
4226 (HFILES_NO_SRCDIR): Add ada-varobj.h.
4227 (COMMON_OBS): Add ada-varobj.o.
4228
7a290c40
JB
42292012-03-28 Joel Brobecker <brobecker@adacore.com>
4230
4231 * varobj.c (ada_value_has_mutated): Add declaration. New function.
4232 (struct language_specific): New field "value_has_mutated".
4233 (languages): Set field "value_has_mutated" in each entry of array.
4234 (varobj_value_has_mutated): New function.
4235 (varobj_udpdate): Add handling of type mutation.
4236 (value_of_root): Add handling of type mutation.
4237 (ada_value_has_mutated): New function.
4238
ca9b8b9c
PA
42392012-03-28 Pedro Alves <palves@redhat.com>
4240
4241 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4242 Always supply $fr0 as 0.0 and $fr1 as 1.0.
4243
cc0265cd
TT
42442012-03-28 Tom Tromey <tromey@redhat.com>
4245
4246 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4247 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
4248 before returning.
4249
3ad2ec6f
TT
42502012-03-28 Tom Tromey <tromey@redhat.com>
4251
4252 * .dir-locals.el: New file.
4253
4a6510ba
PA
42542012-03-28 Pedro Alves <palves@redhat.com>
4255
4256 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4257
5a75128f
JB
42582012-03-28 Joel Brobecker <brobecker@adacore.com>
4259
4260 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4261 handling for r0.
4262
f99d8bf4
PA
42632012-03-27 Pedro Alves <palves@redhat.com>
4264
4265 Eliminate struct ui_stream.
4266
4267 * ui-out.h (struct ui_stream): Delete.
4268 (ui_out_field_stream): Adjust prototype.
4269 (ui_out_stream_new, ui_out_stream_delete)
4270 (make_cleanup_ui_out_stream_delete): Delete declarations.
4271 * ui-out.c (ui_out_field_stream): Change prototype to take a
4272 ui_file instead of a ui_stream. Adjust.
4273 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4274 (make_cleanup_ui_out_stream_delete): Delete.
4275 * breakpoint.c (print_breakpoint_location)
4276 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4277 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4278 * disasm.c (dump_insns): Ditto.
4279 (do_mixed_source_and_assembly, do_assembly_only): Adjust
4280 prototype.
4281 (gdb_disassembly): Use ui_file/mem_fileopen instead of
4282 ui_stream/ui_out_stream_new.
4283 * infcmd.c (print_return_value): Ditto.
4284 * osdata.c (info_osdata_command): Don't allocate a local
4285 ui_stream.
4286 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4287 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4288 * tracepoint.c (print_one_static_tracepoint_marker): Don't
4289 allocate a local ui_stream.
4290 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4291 instead of ui_stream/ui_out_stream_new.
4292 (list_args_or_locals): Don't allocate a local ui_stream.
4293 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4294 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4295 ui_stream/ui_out_stream_new.
4296 * cli/cli-setshow.c (do_setshow_command): Ditto.
4297
6350a066 42982012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 4299
6350a066
PA
4300 * arm-linux-tdep.c (arm_linux_init_abi): Call
4301 set_gdbarch_process_record. Initialize `arm_swi_record' field.
4302 * arm-tdep.c (arm_process_record): New function.
4303 (deallocate_reg_mem): New function.
4304 (decode_insn): New function.
4305 (thumb_record_branch): New function.
4306 (thumb_record_ldm_stm_swi(): New function.
4307 (thumb_record_misc): New function.
4308 (thumb_record_ld_st_stack): New function.
4309 (thumb_record_ld_st_imm_offset): New function.
4310 (thumb_record_ld_st_reg_offset(): New function.
4311 (thumb_record_add_sub_cmp_mov): New function.
4312 (thumb_record_shift_add_sub): New function.
4313 (arm_record_coproc_data_proc): New function.
4314 (arm_record_coproc): New function.
4315 (arm_record_b_bl): New function.
4316 (arm_record_ld_st_multiple): New function.
4317 (arm_record_ld_st_reg_offset): New function.
4318 (arm_record_ld_st_imm_offset): New function.
4319 (arm_record_data_proc_imm): New function.
4320 (arm_record_data_proc_misc_ld_str): New function.
4321 (arm_record_extension_space): New function.
4322 (arm_record_strx): New function.
4323 (sbo_sbz): New function.
4324 (struct insn_decode_record): New structure for arm insn record.
4325 (REG_ALLOC): New macro for reg allocations.
4326 (MEM_ALLOC): New macro for memory allocations.
4327 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 4328
89e028e2
AS
43292012-03-27 Andreas Schwab <schwab@linux-m68k.org>
4330
4331 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4332 (store_register): Likewise.
4333
6350a066 43342012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 4335
6350a066 4336 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 4337
5b43fab2
JK
43382012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4339
4340 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4341 Describe also the option "auto".
4342
b5453b95
RH
43432012-03-22 Richard Henderson <rth@redhat.com>
4344
4345 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4346 * sparc-nat.c (sparc_xfer_wcookie): Make static.
4347
227ee7fc
RH
43482012-03-22 Richard Henderson <rth@redhat.com>
4349
4350 * jit.c (jit_read_code_entry): Compute alignment and offset of
4351 int64_t member before computing entry_size.
4352
7b282c5a
SCR
43532012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4354
4355 Python scripting: Add new method Value.referenced_value to
4356 gdb.Value which can dereference pointer as well as reference
4357 values.
4358 * NEWS: Add entry under 'Python scripting' about the new method
4359 Value.referenced_value on gdb.Value objects.
4360 * python/py-value.c (valpy_referenced_value): New function
4361 defining a new method on gdb.Value objects which can dereference
4362 pointer and reference values.
4363
0c83539f
SCR
43642012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4365
4366 * MAINTAINERS (Write After Approval): Add myself to the list.
4367
7ccffd7c
KB
43682012-03-21 Kevin Buettner <kevinb@redhat.com>
4369
4370 * symtab.c (skip_prologue_sal): Change test to check for "main()"
4371 in addition to "main".
4372
bd0b9f9e
JB
43732012-03-21 Joel Brobecker <brobecker@adacore.com>
4374
4375 * expression.h (op_name): Add declaration.
4376 * expprint.c (op_name): Remove declaration. Make non-static.
4377 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4378
a5362b9a
TS
43792012-03-21 Thomas Schwinge <thomas@codesourcery.com>
4380
4381 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4382 of struct siginfo.
4383 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4384 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4385 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4386 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4387 (linux_nat_get_siginfo): Likewise.
4388 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4389 (linux_nat_get_siginfo): Likewise.
4390 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4391 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4392 * procfs.c (gdb_siginfo_t): Likewise.
4393
adcadaab
MF
43942012-03-21 Mike Frysinger <vapier@gentoo.org>
4395
4396 * .gitignore: Ignore more files.
4397
e278ad5b
PA
43982012-03-20 Pedro Alves <palves@redhat.com>
4399
4400 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4401 returns.
4402
741e63d7
YQ
44032012-03-20 Yao Qi <yao@codesourcery.com>
4404
4405 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4406 comment.
4407
b64f50a1
JK
44082012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4409
4410 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4411 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4412 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4413 sect_offset.
4414 * dwarf2expr.h (cu_offset, sect_offset): New types.
4415 (struct dwarf_expr_context_funcs) <dwarf_call>
4416 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4417 sect_offset.
4418 (struct dwarf_expr_context) <len>: Improve the comment.
4419 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4420 cu_offset and sect_offset.
4421 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4422 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4423 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4424 * dwarf2loc.h: Include dwarf2expr.h.
4425 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4426 and sect_offset.
4427 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4428 Improve the comment.
4429 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4430 (struct signatured_type, struct line_header, struct partial_die_info)
4431 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4432 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4433 (get_die_type_at_offset, create_cus_from_index)
4434 (create_signatured_type_table_from_index, dw2_get_file_names)
4435 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4436 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4437 (create_debug_types_hash_table, process_psymtab_comp_unit)
4438 (load_partial_comp_unit, create_all_comp_units)
4439 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4440 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4441 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4442 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4443 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4444 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4445 (find_partial_die, read_attribute_value, lookup_die_type)
4446 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4447 (is_ref_attr): New function comment.
4448 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4449 Use cu_offset and sect_offset.
4450 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4451 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4452 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4453 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4454 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4455 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4456 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4457 sect_offset.
4458
e97a38f7
JK
44592012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4460
4461 Code cleanup.
4462 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4463 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4464 with xfree.
4465 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4466
8320cc4f
JK
44672012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4468
4469 * NEWS: Describe new options --init-command=FILE, -ix and
4470 --init-eval-command=COMMAND, -iex.
4471 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4472 CMDARG_INIT_COMMAND.
4473 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4474 "init-command", "init-eval-command", "ix" and "iex" to the variable
4475 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4476 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4477 (print_gdb_help): Describe --init-command=FILE, -ix and
4478 --init-eval-command=COMMAND, -iex.
4479
26743505
JK
44802012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4481
4482 Code cleanup.
4483 * main.c (struct cmdarg): Move it here from main. Add more comments.
4484 (cmdarg_s, VEC (cmdarg_s)): New.
4485 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4486 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4487 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4488 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4489 of CMDARG.
4490
5ff5c7b4
TT
44912012-03-19 Tom Tromey <tromey@redhat.com>
4492
4493 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4494
ab260dad
JK
44952012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4496
4497 PR symtab/13777
4498 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4499 GCC >=4.5.
4500
c366c1f0
TT
45012012-03-16 Chris January <chris.january@allinea.com>
4502
4503 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4504 of clear.
4505
e16edb45
TT
45062012-03-16 Chris January <chris.january@allinea.com>
4507
4508 * source.c (add_path): Use memmove instead of strcpy because the
4509 strings overlap.
4510
53ba8333
JB
45112012-03-16 Joel Brobecker <brobecker@adacore.com>
4512
4513 * value.h (set_value_parent): Add declaration.
4514 * value.c (set_value_parent): New function.
4515 (value_address): If VALUE->PARENT is not NULL, then use it as
4516 the base address instead of VALUE->LOCATION.address.
4517 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4518 the same as OBJ's address. Adjust V's offset accordingly.
4519 Set V's parent.
4520
481860b3
GB
45212012-03-16 Gary Benson <gbenson@redhat.com>
4522
4523 PR breakpoints/10738
4524 * dwarf2read.c (use_deprecated_index_sections): New global.
4525 (struct partial_die_info): New member may_be_inlined.
4526 (read_partial_die): Set may_be_inlined where appropriate.
4527 (add_partial_subprogram): Add partial symbols for partial
4528 DIEs that may be inlined.
4529 (new_symbol_full): Add inlined subroutines to the current
4530 scope.
4531 (write_psymtabs_to_index): Bump version number.
4532 (dwarf2_read_index): Read only version 6 indices unless
4533 use_deprecated_index_sections is set.
4534 * linespec.c (symbol_and_data_callback): New structure.
4535 (iterate_inline_only): New function.
4536 (iterate_over_all_matching_symtabs): New argument
4537 "include_inline". If nonzero, also call the callback for
4538 symbols representing inlined subroutines.
4539 (lookup_prefix_sym): Pass extra argument to the above.
4540 (find_function_symbols): Likewise.
4541 (add_matching_symbols_to_info): Likewise.
4542 * NEWS: Mention that GDB can now set breakpoints on inlined
4543 functions.
4544
d0e7e15a
PM
45452012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4546
4547 * p-typeprint.c (pascal_type_print_method_args):
4548 Fix display of parameter of methods.
4549
3d354654
PM
45502012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4551
4552 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4553 Add missing prototype.
4554
cafe75b0
JK
45552012-03-16 Yao Qi <yao@codesourcery.com>
4556 Jan Kratochvil <jan.kratochvil@redhat.com>
4557
4558 Fix false compilation warning.
4559 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4560
25f8c692
JL
45612012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4562 Pedro Alves <pedro@codesourcery.com>
4563
4564 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4565 (arm_register_g_packet_guesses): New function.
4566 (arm_gdbarch_init): Don't force a target description with
4567 registers when the executable is detected as M-profile. Instead
4568 set gdbarch->tdep->is_m. Register `g' packet guesses.
4569 (_initialize_arm_tdep): Initialize the new target description.
4570 * features/arm-with-m-fpa-layout.xml: New description.
4571 * features/arm-with-m-fpa-layout.c: New, generated.
4572
35c63cd8
JB
45732012-03-15 Joel Brobecker <brobecker@adacore.com>
4574
4575 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4576 Update function description.
4577 (insert_bp_location): Do not wipe bl->target_info out.
4578 * mem-break.c: #include "gdb_string.h".
4579 (default_memory_insert_breakpoint): Do not call target_read_memory
4580 with a pointer to the breakpoint's shadow_contents buffer. Use
4581 a local buffer instead.
4582 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4583
57651221
TT
45842012-03-15 Tom Tromey <tromey@redhat.com>
4585
4586 * NEWS: Mention "info vtbl", not "info vtable".
4587 * cp-support.c (info_vtbl_command): Fix comment.
4588 (_initialize_cp_support): Fix text.
4589
410528f0
TT
45902012-03-15 Tom Tromey <tromey@redhat.com>
4591
4592 * cp-valprint.c (cp_print_value_fields): Use
4593 print_function_pointer_address for vtable slot.
4594
c4aeac85
TT
45952012-03-15 Tom Tromey <tromey@redhat.com>
4596
4597 * gnu-v3-abi.c (struct value_and_voffset): New.
4598 (hash_value_and_voffset, eq_value_and_voffset)
4599 (compare_value_and_voffset, compute_vtable_size)
4600 (print_one_vtable, gnuv3_print_vtable): New functions.
4601 (init_gnuv3_ops): Initialize 'print_vtable' field.
4602 * cp-support.c (info_vtbl_command): New function.
4603 (_initialize_cp_support): Add "info vtbl".
4604 * cp-abi.h (cplus_print_vtable): Declare.
4605 (struct cp_abi_ops) <print_vtable>: New field.
4606 * cp-abi.c (cplus_print_vtable): New function.
4607 * NEWS: Update.
4608
95cbceff
TT
46092012-03-15 Tom Tromey <tromey@redhat.com>
4610
4611 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4612 iterate_over_symbols.
4613
589b4a32
DE
46142012-03-14 Doug Evans <dje@google.com>
4615
4616 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4617 DW_OP_GNU_parameter_ref.
4618
e837f12a
JK
46192012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4620
4621 Fix double prompt of 'interpreter-exec mi'.
4622 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4623 (mi_interpreter_resume): use it.
4624 (mi_execute_command_input_handler): New function.
4625 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4626 mi_execute_command_input_handler.
4627
ff1e4526 46282012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
4629
4630 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4631 prototype.
4632 (darwin_debug_port_info): Make static.
4633 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4634 * machoread.c (_initialize_machoread): Add prototype.
4635 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4636 (i386_darwin_set_control, i386_darwin_get_control)
4637 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4638 i386_darwin_get_status, i386_darwin_get_control):
4639 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4640
d8a5d6ee
JB
46412012-03-13 Joel Brobecker <brobecker@adacore.com>
4642
4643 * ax-gdb.c (gen_usual_unary): Remove special handling of
4644 enum and bool types.
4645
af381b8c
JB
46462012-03-13 Joel Brobecker <brobecker@adacore.com>
4647
4648 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4649
786c562f
JB
46502012-03-13 Joel Brobecker <brobecker@adacore.com>
4651
4652 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4653
e3ebf1bb
JB
46542012-03-13 Chris January <chris.january@allinea.com>
4655
4656 * aix-thread.c (fill_sprs): Store the floating point registers
4657 at the correct offsets into vals.
4658
c5b7e1cb
DE
46592012-03-13 Doug Evans <dje@google.com>
4660
16899756
DE
4661 * NEWS: Mention symbol-reloading has been deleted.
4662 * symfile.c (symbol_reloading): Delete.
4663 (show_symbol_reloading): Delete.
4664 (_initialize_symfile): Delete set/show symbol-reloading.
4665
c5b7e1cb
DE
4666 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4667 read_in_chain until we have successfully read it in.
4668 (load_full_comp_unit): Ditto.
4669 (read_signatured_type): Add comment.
4670
46cb6474
JB
46712012-03-13 Chris January <chris.january@allinea.com>
4672
4673 * stabsread.c (fix_common_block): Change type of valu argument
4674 to CORE_ADDR.
4675
76219d77
JB
46762012-03-13 Chris January <chris.january@allinea.com>
4677
4678 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4679 instruction.
4680
87b0bb13
JK
46812012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4682
4683 * common/linux-procfs.c (linux_proc_get_int): New, from
4684 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4685 field.
4686 (linux_proc_get_tgid): Only call linux_proc_get_int.
4687 (linux_proc_get_tracerpid): New.
4688 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4689 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4690 linux_proc_pid_has_state.
4691 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4692 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4693 (linux_ptrace_attach_warnings): New.
4694 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4695 New declaration.
4696 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4697 (linux_nat_attach): New variables ex, buffer, message and message_s.
4698 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4699
5f572dec
JK
47002012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4701
4702 * Makefile.in (linux-ptrace.o): New.
4703 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4704 from linux-nat.c.
4705 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4706 * common/linux-ptrace.c: New file.
4707 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4708 * config/arm/linux.mh: Likewise.
4709 * config/i386/linux.mh: Likewise.
4710 * config/i386/linux64.mh: Likewise.
4711 * config/ia64/linux.mh: Likewise.
4712 * config/m32r/linux.mh: Likewise.
4713 * config/m68k/linux.mh: Likewise.
4714 * config/mips/linux.mh: Likewise.
4715 * config/pa/linux.mh: Likewise.
4716 * config/powerpc/linux.mh: Likewise.
4717 * config/powerpc/ppc64-linux.mh: Likewise.
4718 * config/powerpc/spu-linux.mh: Likewise.
4719 * config/s390/s390.mh: Likewise.
4720 * config/sparc/linux.mh: Likewise.
4721 * config/sparc/linux64.mh: Likewise.
4722 * config/xtensa/linux.mh: Likewise.
4723 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4724 common/linux-procfs.c.
4725 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4726
44f238bb
PA
47272012-03-13 Hui Zhu <teawater@gmail.com>
4728 Pedro Alves <palves@redhat.com>
4729
4730 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4731 CREATE_BREAKPOINT_FLAGS_INSERTED.
4732 (create_breakpoint_sal, create_breakpoints_sal)
4733 (base_breakpoint_create_breakpoints_sal)
4734 (tracepoint_create_breakpoints_sal)
4735 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4736 down.
4737 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4738 (ftrace_command, strace_command): Adjust.
4739 (create_tracepoint_from_upload): Pass
4740 CREATE_BREAKPOINT_FLAGS_INSERTED.
4741 * breakpoint.h (enum breakpoint_create_flags): New.
4742 (create_breakpoint): New flags parameter.
4743 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4744 * python/py-breakpoint.c (bppy_init): Adjust.
4745 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4746 * spu-tdep.c (spu_catch_start): Adjust.
4747
1e51243a
PA
47482012-03-13 Pedro Alves <palves@redhat.com>
4749 Hui Zhu <teawater@gmail.com>
4750 Yao Qi <yao@codesourcery.com>
4751
4752 * remote.c (struct remote_state): New field `starting_up'.
4753 (remote_start_remote): Set and clear it.
4754 (remote_can_download_tracepoint): If starting up, return false.
4755
fa3064dd
YQ
47562012-03-13 Yao Qi <yao@codesourcery.com>
4757
4758 * inferior.h (struct inferior): Remove fields any_syscall_count,
4759 syscalls_counts and total_syscalls_count. Move them to new
4760 struct catch_syscall_inferior_data in breakpoint.c.
4761 * breakpoint.c: Call DEF_VEC_I(int).
4762 (struct catch_syscall_inferior_data): New.
4763 (get_catch_syscall_inferior_data): New.
4764 (catch_syscall_inferior_data_cleanup): New.
4765 (insert_catch_syscall): Update to access data in
4766 struct catch_syscall_inferior_data.
4767 (insert_catch_syscall): Likewise.
4768 (remove_catch_syscall): Likewise.
4769 (remove_catch_syscall): Likewise.
4770 (is_syscall_catchpoint_enabled): Likewise.
4771 (add_catch_command): Likewise.
4772 (_initialize_breakpoint): Register cleanup.
4773 * breakpoint.h: Removed DEF_VEC_I(int).
4774 * dwarf2loc.c: Call DEF_VEC_I(int).
4775 * mi/mi-main.c: Likewise.
4776
460fac3c
MK
47772012-03-12 Mark Kettenis <kettenis@gnu.org>
4778
4779 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4780
e1aca11e
JB
47812012-03-12 Chris January <chris.january@allinea.com>
4782
4783 * aix-thread.c (_initialize_aix_thread): Add prototype.
4784 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4785 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4786
649c7061
JB
47872012-03-12 Joel Brobecker <brobecker@adacore.com>
4788
4789 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4790 include of "amd64-nat.h".
4791
0b49e518
TT
47922012-03-12 Tom Tromey <tromey@redhat.com>
4793
4794 * buildsym.c (record_pending_block): Now static.
4795 * buildsym.h: (record_pending_block): Remove.
4796
fd24fa94
AT
47972012-03-12 Andreas Tobler <andreast@fgznet.ch>
4798
4799 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4800
ba919b58
TT
48012012-03-09 Tom Tromey <tromey@redhat.com>
4802
4803 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4804 producer_is_gxx_lt_4_6>: New fields.
4805 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4806
a48e046c
TT
48072012-03-09 Tom Tromey <tromey@redhat.com>
4808
4809 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4810
6f5e9362
JB
48112012-03-08 Joel Brobecker <brobecker@adacore.com>
4812
4813 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4814 prototype.
4815
8d037db9
JB
48162012-03-08 Joel Brobecker <brobecker@adacore.com>
4817
4818 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4819
4e841acf
JK
48202012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4821
4822 Fix -Wmissing-prototypes build.
4823 * arm-linux-nat.c (get_thread_id): Make it static.
4824 * xtensa-linux-nat.c (get_thread_id): Likewise.
4825
c6030312
JB
48262012-03-08 Joel Brobecker <brobecker@adacore.com>
4827
4828 * server.c (process_point_options): If a conditional expression
4829 is found, only print a message if remote_debug is nonzero.
4830
52323be9
LM
48312012-03-08 Luis Machado <lgustavo@codesourcery.com>
4832
4833 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4834 of internal error for unknown/unsupported types.
4835
7fe25d9b
JK
48362012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4837
4838 Fix CU relative vs. absolute DIE offsets.
4839 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4840 offset to offset_in_cu.
4841 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4842 TYPE_OFFSET.
4843 (dwarf2_fetch_die_location_block): Rename parameter offset to
4844 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4845
05e7c244
JK
48462012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4847
4848 * libunwind-frame.c: Rename to ...
4849 * ia64-libunwind-tdep.c: ... here.
4850 * libunwind-frame.h: Rename to ...
4851 * ia64-libunwind-tdep.h: ... here.
4852 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4853 ia64-libunwind-tdep.h.
4854 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4855 * README (--with-libunwind): Rename to ...
4856 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4857 * config.in: Regenerate.
4858 * configure: Regenerate.
4859 * configure.ac: New option --with-libunwind-ia64, make the
4860 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4861 Remove AC_DEFINE for HAVE_LIBUNWIND.
4862 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4863 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4864 Rename libunwind-frame in the general comment.
4865 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4866 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4867 Move forward declarations inside #ifndef. Rename libunwind-frame in
4868 the general comment.
4869 * ia64-tdep.c: Rename libunwind-frame.h #include to
4870 ia64-libunwind-tdep.h.
4871 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4872 (ia64_libunwind_descr): Rename libunwind-frame to
4873 ia64-libunwind-tdep in these function comments.
4874 * ia64-tdep.h: Rename libunwind-frame.h #include to
4875 ia64-libunwind-tdep.h.
4876 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4877 ia64-libunwind-tdep in that data comment.
4878
3755cbfd
JK
48792012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4880
4881 * libunwind-frame.h (struct frame_unwind): New declaration.
4882
d1cda5d9
JB
48832012-03-08 Joel Brobecker <brobecker@adacore.com>
4884
4885 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4886 "set breakpoint condition-evaluation" command.
4887
a0ba0aa2
TG
48882012-03-08 Tristan Gingold <gingold@adacore.com>
4889
4890 * sparc-stub.c: Move to stubs/
4891 * sh-stub.c: Likewise.
4892 * m68k-stub.c: Likewise.
4893 * m32r-stub.c: Likewise.
4894 * i386-stub.c: Likewise.
4895
7b8b6d6d
AS
48962012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4897
007cafee
AS
4898 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4899 linux_get_siginfo_type.
4900
7b8b6d6d
AS
4901 * m68klinux-nat.c: Include "gdb_proc_service.h".
4902 (PTRACE_GET_THREAD_AREA): Define.
4903 (ps_get_thread_area): New function.
4904
bba74b36
YQ
49052012-03-08 Yao Qi <yao@codesourcery.com>
4906
4907 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4908 `xsnprintf'.
4909 (remote_query_attached): Likewise.
4910 (remote_static_tracepoint_marker_at): Likewise.
4911 (remote_set_permissions): Likewise.
4912 (remote_detach_1, extended_remote_attach_1): Likewise.
4913 (send_g_packet, remote_vkill): Likewise.
4914 (extended_remote_disable_randomization): Likewise.
4915 (remote_add_target_side_condition): Likewise.
4916 (remote_insert_breakpoint): Likewise.
4917 (remote_remove_breakpoint): Likewise.
4918 (remote_insert_watchpoint): Likewise.
4919 (remote_remove_watchpoint): Likewise.
4920 (remote_insert_hw_breakpoint): Likewise.
4921 (remote_insert_hw_breakpoint): Likewise.
4922 (remote_remove_hw_breakpoint): Likewise.
4923 (remote_download_command_source): Likewise.
4924 (remote_download_tracepoint): Likewise.
4925 (remote_download_trace_state_variable): Likewise.
4926 (remote_disable_tracepoint): Likewise.
4927 (remote_trace_set_readonly_regions): Likewise.
4928 (remote_get_tracepoint_status): Likewise.
4929 (remote_trace_find): Likewise.
4930 (remote_get_trace_state_variable_value): Likewise.
4931 (remote_set_disconnected_tracing): Likewise.
4932 (remote_set_circular_trace_buffer): Likewise.
4933 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4934 (remote_use_agent): Likewise.
4935 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4936 Update callers.
4937
9b224c5e
PA
49382012-03-07 Pedro Alves <palves@redhat.com>
4939
4940 * NEWS: Mention QProgramSignals.
4941 * inferior.h (update_signals_program_target): Declare.
4942 * infrun.c: (update_signals_program_target): New.
4943 (handle_command): Update the target of the new program signals
4944 array changes.
4945 * remote.c (PACKET_QProgramSignals): New enum.
4946 (last_program_signals_packet): New global.
4947 (remote_program_signals): New.
4948 (remote_start_remote): Update the target with the program signals
4949 list.
4950 (remote_protocol_features): Add entry for QPassSignals.
4951 (remote_open_1): Free anc clear last_program_signals_packet.
4952 (init_remote_ops): Install remote_program_signals.
4953 * target.c (update_current_target): Adjust.
4954 (target_program_signals): New.
4955 * target.h (struct target_ops) <to_program_signals>: New field.
4956 (target_program_signals): Declare.
4957
74c48cbb
PA
49582012-03-07 Pedro Alves <palves@redhat.com>
4959
4960 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4961 extensions.
4962
0c13fc49
AS
49632012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4964
4965 * m68klinux-nat.c (getregs_supplies): Make static.
4966 (getfpregs_supplies): Likewise.
4967 (have_ptrace_getregs): Likewise.
4968
1281d2a3
JB
49692012-03-06 Joel Brobecker <brobecker@adacore.com>
4970
4971 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4972 in call to get_die_type_at_offset.
4973
2b03b41d
SS
49742012-03-06 Stan Shebs <stan@codesourcery.com>
4975
4976 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4977 * mi/mi-cmd-disas.c: Ditto.
4978 * mi/mi-cmd-env.c: Ditto.
4979 * mi/mi-cmd-file.c: Ditto.
4980 * mi/mi-cmd-stack.c: Ditto.
4981 * mi/mi-cmd-target.c: Ditto.
4982 * mi/mi-cmd-var.c: Ditto.
4983 * mi/mi-cmds.c: Ditto.
4984 * mi/mi-cmds.h: Ditto.
4985 * mi/mi-console.c: Ditto.
4986 * mi/mi-getopt.c: Ditto.
4987 * mi/mi-getopt.h: Ditto.
4988 * mi/mi-interp.c: Ditto.
4989 * mi/mi-main.c: Ditto.
4990 * mi/mi-out.c: Ditto.
4991 * mi/mi-parse.c: Ditto.
4992 * mi/mi-parse.h: Ditto.
4993 * mi/mi-symbol-cmds.c: Ditto.
4994
4995 * mi/mi-getopt.h: Move mi_opt struct up.
4996 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4997 return.
4998 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4999
c988ad87
TT
50002012-03-06 Tom Tromey <tromey@redhat.com>
5001
5002 * proc-service.c (ps_pglobal_lookup): Set the current program
5003 space.
5004
1b7c1b10
PA
50052012-03-06 Pedro Alves <palves@redhat.com>
5006
5007 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
5008
3c182069
JB
50092012-03-05 Joel Brobecker <brobecker@adacore.com>
5010
5011 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
5012
2e794194
JK
50132012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5014
5015 Code cleanup.
5016 * common/linux-osdata.c (linux_common_core_of_thread): New function
5017 comment.
5018 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
5019 call by linux_common_core_of_thread.
5020 (linux_nat_core_of_thread_1): Remove.
5021 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
5022 * linux-thread-db.c: Include linux-osdata.h.
5023 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
5024 linux_common_core_of_thread.
5025
9f9f1f31
TT
50262012-03-05 Tom Tromey <tromey@redhat.com>
5027
5028 * value.c (value_primitive_field): Don't fetch contents for
5029 non-virtual bases.
5030
b7b189f3
TT
50312012-03-05 Tom Tromey <tromey@redhat.com>
5032
5033 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
5034
05b8a789 50352012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 5036
5538f557
JB
5037 * s390-nat.c: Include "gregset.h".
5038
75528772
JK
50392012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5040
5041 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
5042 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
5043 (libunwind_load): New variable so_error, use it for dlerror. Try to
5044 load also LIBUNWIND_SO_7.
5045
275418ae
PA
50462012-03-05 Pedro Alves <palves@redhat.com>
5047
5048 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
5049 is not NULL, and remove resulting dead code.
5050
5cbb9812
TS
50512012-03-05 Thomas Schwinge <thomas@codesourcery.com>
5052
5053 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
5054 prologue to sh_analyze_prologue.
5055 (sh_analyze_prologue): Make better use of such an upper limit, and
5056 generally be more cautious about accessing memory.
5057
541515ad
TT
50582012-03-05 Tom Tromey <tromey@redhat.com>
5059
5060 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
5061 _initialize_ia64_hpux_tdep.
5062
b4d36fb8
PA
50632012-03-05 Pedro Alves <palves@redhat.com>
5064
24490249
PA
5065 PR gdb/13766
5066
b4d36fb8
PA
5067 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
5068 the register state is clear, supply explicit zero, instead of
5069 marking the register unavailable.
5070
60c9a3c0
TG
50712012-03-05 Tristan Gingold <gingold@adacore.com>
5072
5073 * NEWS: Mention OpenVMS ia64 new target.
5074
696759ad
TG
50752012-03-05 Tristan Gingold <gingold@adacore.com>
5076
5077 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
5078 (ia64_unw_accessors, ia64_unw_rse_accessors)
5079 (ia64_libunwind_descr): Declare.
5080 * ia64-vms-tdep.c: New file.
5081 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
5082 (ia64_libunwind_descr): Make them public.
5083 * configure.tgt: Add ia64-*-*vms*.
5084 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
5085 (ALLDEPFILES): Add ia64-vms-tdep.c
5086
34864976
TG
50872012-03-05 Tristan Gingold <gingold@adacore.com>
5088
169081d0
TG
5089 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
5090 * remote.c (PACKET_qXfer_uib): New enum value.
5091 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
5092 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
5093 (_initialize_remote): Call add_packet_config_cmd for
5094 xfer:uib packet.
5095
50962012-03-05 Tristan Gingold <gingold@adacore.com>
5097
5098 * osabi.c (gdb_osabi_names): Add OpenVMS.
5099 (generic_elf_osabi_sniffer): Likewise.
5100 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 5101
6597b100
JK
51022012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5103
5104 Removed unused code.
5105 * libunwind-frame.c (libunwind_frame_unwind)
5106 (libunwind_frame_base_address): Remove.
5107 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
5108
87399aa1
YQ
51092012-03-04 Yao Qi <yao@codesourcery.com>
5110
5111 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
5112 remove trailing new line.
5113 (agent_run_command, agent_run_command): Add _ markup.
5114 (agent_capability_check): Likewise.
5115
abf1152a
JK
51162012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5117
5118 * breakpoint.c (set_condition_evaluation_mode): Set
5119 CONDITION_EVALUATION_MODE unconditionally.
5120
5808517f
YQ
51212012-03-03 Yao Qi <yao@codesourcery.com>
5122
5123 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
5124 * common/agent.h: Update declaration.
5125 * inf-child.c (inf_child_use_agent): New.
5126 (inf_child_can_use_agent): New.
5127 (inf_child_target): Initialize fields `to_use_agent'
5128 and `to_can_use_agent'.
5129 * agent.c (agent_new_objfile): New.
89b7509a 5130 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
5131 observer.
5132
5133 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5134 New.
89b7509a 5135 (linux_target_install_ops): Initialize field
5808517f
YQ
5136 `to_static_tracepoint_markers_by_strid'.
5137 * remote.c (free_current_marker): Move it to ...
5138 * tracepoint.c (free_current_marker): ... here. New.
5139 (cleanup_target_stop): New.
5140 * tracepoint.h: Declare free_current_marker.
5141 * NEWS: Add one entry about `info static-tracepoint-marker'.
5142
58b4daa5
YQ
51432012-03-03 Yao Qi <yao@codesourcery.com>
5144
5145 * common/agent.c (agent_loaded_p): New.
89b7509a 5146 (agent_look_up_symbols): New global.
58b4daa5
YQ
5147 * common/agent.h: Declare agent_loaded_p.
5148
8ffcbaaf
YQ
51492012-03-03 Yao Qi <yao@codesourcery.com>
5150
5151 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
5152 (agent_capability_check, agent_capability_invalidate): New.
5153 (symbol_list): New array element.
5154 * common/agent.h (enum agent_capa): New.
5155 * target.c (target_pre_inferior): Call agent_capability_invalidate.
5156
d1feda86
YQ
51572012-03-03 Yao Qi <yao@codesourcery.com>
5158
5159 * target.h (struct target_ops) <to_use_agent>: New field.
5160 (struct target_ops) <to_can_use_agent>: New field.
5161 (target_use_agent, target_can_use_agent): New macro.
5162 * target.c (update_current_target): Update.
5163 * remote.c: New enum `PACKET_QAgent'.
5164 (remote_protocol_features): Add a new element.
5165 (remote_use_agent, remote_can_use_agent): New.
5166 (init_remote_ops): Initialize field `can_use_agent' with
5167 remote_can_use_agent. Intiailize field `use_agent' with
5168 remote_use_agent.
5169 * common/agent.c (use_agent): New global.
5170 * common/agent.h: Declare it.
5171 * tracepoint.c (info_static_tracepoint_markers_command): Add
5172 comment.
5173 * Makefile.in (SFILES): Add common/agent.c and agent.c.
5174 (COMMON_OBS): Add common/agent.o and agent.o
5175 (common-agent.o): New rule.
5176 * agent.c: New.
5177
2fa291ac
YQ
51782012-03-03 Yao Qi <yao@codesourcery.com>
5179
5180 * common/agent.c: New.
5181 * common/agent.h: New.
5182 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
5183 AC_CHECK_HEADERS.
5184 * configure, configh.in: Regenerated.
5185
9fc05685
KB
51862012-03-02 Kevin Buettner <kevinb@redhat.com>
5187
5188 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
5189 unless it exists for this architecture.
5190
a5ee536b
JB
51912012-03-02 Joel Brobecker <brobecker@adacore.com>
5192
5193 * language.h (struct language_defn): New "method" la_read_var_value.
5194 * findvar.c: #include "language.h".
5195 (default_read_var_value): Renames read_var_value. Rewrite
5196 function description.
5197 (read_var_value): New function.
5198 * value.h (default_read_var_value): Add prototype.
5199 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
5200 New functions.
5201 (ada_language_defn): Add entry for la_read_var_value.
5202 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
5203 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
5204 language_defn structures to add entry for new la_read_var_value
5205 field.
5206
f59f708a
PA
52072012-03-02 Tom Tromey <tromey@redhat.com>
5208 Pedro Alves <palves@redhat.com>
5209
5210 PR breakpoints/13776:
5211 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
5212 breakpoints.
5213 (delete_longjmp_breakpoint_at_next_stop): New.
5214 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
5215 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
5216 before deleting the inferior. Add comments.
5217 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
5218 breakpoints immediately, but only on next stop. Move that code
5219 next to where we mark other breakpoints for deletion.
5220
44099a67
JB
52212012-03-02 Joel Brobecker <brobecker@adacore.com>
5222
5223 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
5224 marker.
5225 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
5226 violation.
5227
2a2ef594
PA
52282012-03-02 Pedro Alves <palves@redhat.com>
5229
5230 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
5231
b261e0c5
UW
52322012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5233
5234 Fix -Wmissing-prototypes build.
5235 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
5236 * remote-sim.c (gdbsim_has_all_memory): Likewise.
5237 (gdbsim_has_memory): Likewise.
5238
a95babbf
YQ
52392012-03-02 Yao Qi <yao@codesourcery.com>
5240
5241 Fix -Wmissing-prototypes build.
5242 * charset.c (phony_iconv_open): Make static.
5243 (phony_iconv_close, phony_iconv): Likewise.
5244 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5245 * i386-windows-nat.c (_initialize_i386_windows_nat): New
5246 prototype.
5247 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5248 * ser-mingw.c (create_select_thread): Make static.
5249 * windows-termcap.c (tgetent): New prototype.
5250 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5251
d603d4b3
JK
52522012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
5253
5254 Fix -Wmissing-prototypes build.
5255 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5256 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5257 (_initialize_loadable): New prototypes.
5258
7fb3ad1f
DE
52592012-03-02 Doug Evans <dje@google.com>
5260
5261 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5262 abbrev table, read_comp_unit will do it.
5263
693be288
JK
52642012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5265
5266 Fix -Wmissing-prototypes build.
5267 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5268 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5269 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5270 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5271 (_initialize_arm_symbian_tdep): New prototype.
5272 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5273 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5274 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5275 static.
5276 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5277 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5278 prototype.
5279 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5280 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5281 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5282 static.
5283 * moxie-tdep.c (moxie_process_record): Likewise.
5284 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5285 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5286 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5287 (_initialize_rl78_tdep): New prototype.
5288 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5289 (_initialize_rx_tdep): New prototype.
5290 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5291 (_initialize_darwin_solib): New prototype.
5292 * solib-spu.c: Include solib-spu.h.
5293 (_initialize_spu_solib): New prototype.
5294 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5295 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5296 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5297 (tic6x_software_single_step): Make it static.
5298 (_initialize_tic6x_tdep): New prototype.
5299
638234e5
JK
53002012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5301
5302 Fix -Wmissing-prototypes build.
5303 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5304 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5305
f4a6f16d
JK
53062012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5307
5308 Fix -Wmissing-prototypes build.
5309 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5310 (frv_have_stopped_data_address): Remove.
5311
04dcf5fa
JK
53122012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5313
5314 Fix -Wmissing-prototypes build.
5315 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5316 * sh-tdep.c: Include sh64-tdep.h.
5317 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5318 * sh64-tdep.c: Include sh64-tdep.h.
5319 * sh64-tdep.h: New file.
5320
19080931
MR
53212012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5322
5323 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5324
9aac7884
MR
53252012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5326
5327 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5328 sp_regnum once the gdbarch_init_osabi hook has been called.
5329
a385295e
MR
53302012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5331
5332 * mips-tdep.c (mips32_bc1_pc): New function.
5333 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5334 BPOSGE32 and BPOSGE64 instructions.
5335 (deal_with_atomic_sequence): Likewise.
5336 (mips32_instruction_has_delay_slot): Likewise.
5337
1faeff08 53382012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
5339 Chris Dearman <chris@mips.com>
5340 Maciej W. Rozycki <macro@codesourcery.com>
5341 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
5342
5343 * features/mips-dsp.xml: New file.
5344 * features/mips64-dsp.xml: New file.
5345 * features/mips-dsp-linux.xml: New file.
5346 * features/mips64-dsp-linux.xml: New file.
5347 * features/Makefile (WHICH): Add mips-dsp-linux and
5348 mips64-dsp-linux.
5349 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5350 * features/mips-dsp-linux.c: New file.
5351 * features/mips64-dsp-linux.c: New file.
5352 * regformats/mips-dsp-linux.dat: New file.
5353 * regformats/mips64-dsp-linux.dat: New file.
5354 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5355 registers.
5356 (mips64_linux_register_addr): Likewise.
5357 (mips64_linux_regsets_fetch_registers): Likewise.
5358 (mips64_linux_regsets_store_registers): Likewise.
5359 (mips64_linux_fetch_registers): Update call to
5360 mips64_linux_regsets_fetch_registers.
5361 (mips64_linux_store_registers): Update call to
5362 mips64_linux_regsets_store_registers.
5363 (mips_linux_read_description): Probe for DSP registers.
5364 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5365 and initialize_tdesc_mips64_dsp_linux.
5366 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5367 Remove padding of no longer used embedded register slots.
5368 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5369 (MIPS_RESTART_REGNUM): Redefine enum value.
5370 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5371 strings.
5372 (mips_tx39_reg_names): Likewise.
5373 (mips_linux_reg_names): New array of register names for Linux
5374 targets.
5375 (mips_register_name): Check for a null pointer in
5376 mips_processor_reg_names and return an empty string.
5377 (mips_register_type): Exclude embedded registers for the IRIX
5378 and Linux ABIs.
5379 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
5380 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
5381 DSP registers.
5382 (mips_stab_reg_to_regnum): Handle DSP accumulators.
5383 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5384 (mips_gdbarch_init): Likewise. Initialize internal register
5385 indices for the Linux ABI. Use dynamic numbers to refer to
5386 registers, as applicable, while parsing the target description.
5387 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5388
263689d8
JB
53892012-03-01 Joel Brobecker <brobecker@adacore.com>
5390
5391 * frame.h (read_frame_register_unsigned): Fix typo in function
5392 description.
5393
f3b4f45c
PA
53942012-03-01 Pedro Alves <palves@redhat.com>
5395
5396 * jit-reader.in [!__cplusplus]
5397 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5398
b03a2011
PA
53992012-03-01 Pedro Alves <palves@redhat.com>
5400
5401 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5402 * configure: Regenerate.
5403
70221824
PA
54042012-03-01 Pedro Alves <palves@redhat.com>
5405
5406 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5407 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5408 (ftrace_command, strace_command): Make static.
5409 * d-lang.c (_initialize_d_language): Declare.
5410 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5411 * dwarf2loc.c (_initialize_dwarf2loc):
5412 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5413 * exec.c (exec_get_section_table): Make static.
5414 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5415 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5416 * inferior.c (remove_inferior_command, add_inferior_command)
5417 (clone_inferior_command): Make static.
5418 * linux-nat.c (linux_nat_thread_address_space)
5419 (linux_nat_core_of_thread): Make static.
5420 * linux-tdep.c (_initialize_linux_tdep): Declare.
5421 * objc-lang.c (_initialize_objc_lang): Declare.
5422 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5423 Make static.
5424 (_initialize_opencl_language): Declare.
5425 * record.c (_initialize_record): Declare.
5426 * remote.c (demand_private_info, remote_get_tib_address)
5427 (remote_supports_cond_tracepoints)
5428 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5429 Make static.
5430 * skip.c (_initialize_step_skip): Declare.
5431 * symtab.c (skip_prologue_using_lineinfo): Make static.
5432 * tracepoint.c (delete_trace_state_variable)
5433 (trace_variable_command, delete_trace_variable_command)
5434 (get_uploaded_tsv, find_matching_tracepoint_location)
5435 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5436 Make static.
5437 * value.c (pack_unsigned_long): Make static.
5438 * varobj.c (varobj_ensure_python_env): Make static.
5439 * windows-tdep.c (_initialize_windows_tdep): Declare.
5440 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5441
33fbcbee
PA
54422012-03-01 Pedro Alves <palves@redhat.com>
5443
5444 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5445 gdbarch parameter.
5446 (linux_init_abi): Install it as has_shared_address_space gdbarch
5447 callback.
5448
44d0cd3b
PA
54492012-03-01 Pedro Alves <palves@redhat.com>
5450
5451 * observer.c (observer_test_first_notification_function)
5452 (observer_test_second_notification_function)
5453 (observer_test_third_notification_function): Add declarations.
5454
ed01b82c
PA
54552012-03-01 Pedro Alves <palves@redhat.com>
5456
5457 * common/signals.c (default_target_signal_to_host)
5458 (default_target_signal_from_host): Move ...
5459 * arch-utils.c: ... here.
5460 * arch-utils.h (default_target_signal_to_host)
5461 (default_target_signal_from_host): Declare.
5462
5463 * common/signals.c (target_signal_from_command): Move ...
5464 * infrun.c: ... here.
5465 * inferior.h (target_signal_from_command): Declare.
5466 * target.h (target_signal_from_command)
5467 (default_target_signal_from_host, default_target_signal_to_host):
5468 Delete declarations.
5469
5470 * common/signals.c (_initialize_signals): Delete.
5471
c9b87335
PA
54722012-03-01 Pedro Alves <palves@redhat.com>
5473
5474 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5475 both __cplusplus and !__cplusplus.
5476
9340a6c0
PA
54772012-03-01 Pedro Alves <palves@redhat.com>
5478
5479 * psymtab.c (find_and_open_source): Delete declaration.
5480 * source.c (find_and_open_source): Move comment ...
5481 * source.h (find_and_open_source): ... to this new declaration.
5482
e451c4a1
PA
54832012-03-01 Pedro Alves <palves@redhat.com>
5484
5485 * inline-frame.c: Include inline-frame.h.
5486
983fb104
PA
54872012-03-01 Pedro Alves <palves@redhat.com>
5488
5489 * tui/tui-data.c (set_gen_win_origin): Delete.
5490 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5491 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5492
5fbce5df
PA
54932012-03-01 Pedro Alves <palves@redhat.com>
5494
5495 * remote.c (encode_actions): Delete declaration.
5496 * tracepoint.c (encode_actions): Make extern.
5497 * tracepoint.h (encode_actions): Declare.
5498
49a8461d
PA
54992012-03-01 Pedro Alves <palves@redhat.com>
5500
5501 * python/py-breakpoint.c: Include python.h.
5502 * python/py-continueevent.c (create_continue_event_object): Make
5503 static.
5504 * python/py-lazy-string.c (stpy_get_type): Make static.
5505 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5506 Make static.
5507 * python/py-utils.c (unicode_to_target_python_string): Make
5508 static.
5509 * python/py-value.c: Include python.h.
5510
9079102f
PA
55112012-03-01 Pedro Alves <palves@redhat.com>
5512
5513 * inferior.c (delete_threads_of_inferior): Delete.
5514
a298c5e8
PA
55152012-03-01 Pedro Alves <palves@redhat.com>
5516
5517 Import fallback definitions from glibc.
5518
5519 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5520 ps_prochandle): Forward declare.
5521 (ps_err_e): Use glibc's comments.
5522 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5523 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5524 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5525 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5526 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5527 (struct ps_prochandle): Adjust comment.
5528
e3084549
PA
55292012-03-01 Pedro Alves <palves@redhat.com>
5530
5531 * ada-lang.c (ada_modulus_from_name): Delete.
5532 * ada-lex.l (lexer_init): Make static.
5533
ad5f7d6e
PA
55342012-03-01 Pedro Alves <palves@redhat.com>
5535
5536 PR gdb/13767
5537
5538 * frame.c (read_frame_register_unsigned): New.
5539 * frame.h (read_frame_register_unsigned): Declare.
5540 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5541 Handle it.
5542 (print_i387_control_word): New parameter `control_p'. Handle it.
5543 (i387_print_float_info): Handle unavailable float registers.
5544
e0a4d108
KS
55452012-03-01 Keith Seitz <keiths@redhat.com>
5546
5547 * linespec.c (decode_line_2): Sort the list of methods
5548 alphabetically before presenting the user with a selection
5549 menu.
5550
122d1940
DE
55512012-03-01 Doug Evans <dje@google.com>
5552
5553 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5554 has_namespace_info.
5555 (dwarf2_read_abbrevs): Remove corresponding initialization.
5556
7d74f244
DE
55572012-03-01 Scott J. Goldman <scottjg@vmware.com>
5558
5559 * NEWS: Mention new python command class gdb.COMMAND_USER.
5560 * cli/cli-cmds.c (show_user): Print error when used on a python
5561 command.
5562 (init_cli_cmds): Update documentation strings for "show user" and
5563 "set/show max-user-call-depth" to clarify that it does not apply to
5564 python commands.
5565 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5566 error check.
5567 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5568 gdb python api.
5569 * top.c (execute_command): Only execute a user-defined command as a
5570 legacy macro if c->user_commands is set.
5571
e88acd96
TT
55722012-03-01 Tom Tromey <tromey@redhat.com>
5573
5574 * valprint.h (struct generic_val_print_decorations): New.
5575 (generic_val_print): Declare.
5576 * valprint.c (generic_val_print): New function.
5577 * p-valprint.c (p_decorations): New global.
5578 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5579 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5580 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5581 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5582 * m2-valprint.c (m2_decorations): New global.
5583 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5584 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5585 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5586 TYPE_CODE_ERROR>: Call generic_val_print.
5587 * f-valprint.c (f_decorations): New global.
5588 (f_val_print): Use print_function_pointer_address.
5589 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5590 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5591 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5592 generic_val_print.
5593 * c-valprint.c (c_decorations): New global.
5594 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5595 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5596 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5597 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5598 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5599 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5600 case.
5601
d3eab38a
TT
56022012-03-01 Tom Tromey <tromey@redhat.com>
5603
5604 * valprint.c (val_print): Update.
5605 * p-valprint (pascal_val_print): Return void.
5606 * p-lang.h (pascal_val_print): Return void.
5607 * m2-valprint.c (m2_val_print): Return void.
5608 * m2-lang.h (m2_val_print): Return void.
5609 * language.h (struct language_defn) <la_val_print>: Return void.
5610 * language.c (unk_lang_val_print): Return void.
5611 * jv-valprint.c (java_val_print): Return void.
5612 * jv-lang.h (java_val_print): Return void.
5613 * f-valprint.c (f_val_print): Return void.
5614 * f-lang.h (f_val_print): Return void.
5615 * d-valprint.c (d_val_print): Return void.
5616 (dynamic_array_type): Update.
5617 * d-lang.h (d_val_print): Return void.
5618 * c-valprint.c (c_val_print): Return void.
5619 * c-lang.h (c_val_print): Return void.
5620 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5621 void.
5622 * ada-lang.h (ada_val_print): Return void.
5623
35c0084b
TT
56242012-03-01 Tom Tromey <tromey@redhat.com>
5625
5626 * value.h (val_print): Return void.
5627 * valprint.c (val_print): Return void.
5628
a1f5dd1b
TT
56292012-03-01 Tom Tromey <tromey@redhat.com>
5630
5631 * value.h (common_val_print): Return void.
5632 * valprint.c (common_val_print): Return void.
5633
8e069a98
TT
56342012-03-01 Tom Tromey <tromey@redhat.com>
5635
5636 * value.h (value_print): Return void.
5637 * valprint.c (value_print): Return void.
5638 * p-valprint.c (pascal_value_print): Return void.
5639 * p-lang.h (pascal_value_print): Return void.
5640 * language.h (struct language_defn) <la_value_print>: Return
5641 void.
5642 * language.c (unk_lang_value_print): Return void.
5643 * jv-valprint.c (java_value_print): Return void.
5644 * jv-lang.h (java_value_print): Return void.
5645 * f-valprint.c (c_value_print): Don't declare.
5646 Include c-lang.h.
5647 * c-valprint.c (c_value_print): Return void.
5648 * c-lang.h (c_value_print): Return void.
5649 * ada-valprint.c (ada_value_print): Return void.
5650 * ada-lang.h (ada_value_print): Return void.
5651
be335936
TT
56522012-03-01 Tom Tromey <tromey@redhat.com>
5653
5654 * value.c (value_primitive_field): Handle virtual base classes.
5655
b0db66a7
TT
56562012-03-01 Tom Tromey <tromey@redhat.com>
5657
5658 * gdbtypes.h (struct vbase): Remove.
5659
132c57b4
TT
56602012-03-01 Tom Tromey <tromey@redhat.com>
5661
5662 * c-valprint.c (print_function_pointer_address): Move...
5663 * valprint.c: ... here. Make non-static.
5664 * m2-valprint.c (print_function_pointer_address): Remove.
5665 * valprint.h (print_function_pointer_address): Declare.
5666
e41eec66
JB
56672012-03-01 Joel Brobecker <brobecker@adacore.com>
5668
5669 * NEWS: Document the fact that one can provide a condition when
5670 creating an Ada exception catchpoint.
5671
19c37f24
TT
56722012-03-01 Tom Tromey <tromey@redhat.com>
5673
5674 * valprint.c (val_print_type_code_flags): Fix placement of
5675 trailing brace.
5676
f0fed3a3
JB
56772012-03-01 Joel Brobecker <brobecker@adacore.com>
5678
5679 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5680 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5681 environment variable before calling update-copyright.
5682
8ba85d85
JB
56832012-03-01 Joel Brobecker <brobecker@adacore.com>
5684
5685 * gnulib/extra/update-copyright: Update to the latest from
5686 gnulib's git repository.
5687 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5688 variable to 2 instead of 1.
5689
8219b1e8
JB
56902012-02-29 Joel Brobecker <brobecker@adacore.com>
5691
5692 * varobj.c (c_value_of_variable): Remove dead code.
5693
718cb7da
JB
56942012-02-29 Joel Brobecker <brobecker@adacore.com>
5695
5696 * ada-lex.p (processId): Do not modify already encoded IDs.
5697 Update function documentation.
5698
739593e0
JB
56992012-02-29 Joel Brobecker <brobecker@adacore.com>
5700
5701 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5702 "name" with "struct symbol *name_sym".
5703 * ada-exp.y (write_var_or_type): Update call to
5704 ada_find_renaming_symbol.
5705 "name" with "struct symbol *name_sym". Adjust Implementation
5706 accordingly. Adjust the function documentation.
5707
852dff6c
JB
57082012-02-29 Joel Brobecker <brobecker@adacore.com>
5709
5710 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5711 * ada-lang.c (ada_find_any_type): Add advance declaration.
5712 Make static. Replace ada_find_any_symbol by
5713 ada_find_any_type_symbol.
5714 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5715 Improve function description. Make static.
5716 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5717 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5718
1b611343
JB
57192012-02-29 Joel Brobecker <brobecker@adacore.com>
5720
5721 * ada-lang.c (struct tag_args): Delete.
5722 (ada_get_tsd_type): Function body moved up in source file.
5723 (ada_tag_name_1, ada_tag_name_2): Delete.
5724 (ada_get_tsd_from_tag): New function.
5725 (ada_tag_name_from_tsd): New function.
5726 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5727 to determine the tag name.
5728
41246937
JB
57292012-02-29 Joel Brobecker <brobecker@adacore.com>
5730
5731 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5732 declaration.
5733 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5734 function.
5735
ffde82bf
JB
57362012-02-29 Joel Brobecker <brobecker@adacore.com>
5737
5738 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5739
2ad01556
JB
57402012-02-29 Joel Brobecker <brobecker@adacore.com>
5741
5742 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5743 full searches.
5744
99b1c762
JB
57452012-02-29 Joel Brobecker <brobecker@adacore.com>
5746
5747 * ada-lang.c (constrained_packed_array_type): If there is a
5748 parallel XA type, use it to determine the array index type.
5749
2d4a02ee
JB
57502012-02-29 Joel Brobecker <brobecker@adacore.com>
5751
5752 * ada-valprint.c (ada_val_print_1): If our value is a reference
5753 to an array descriptor, dereference it before converting it
5754 to a simple array.
5755
c48db5ca
JB
57562012-02-29 Joel Brobecker <brobecker@adacore.com>
5757
5758 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5759 creating fixed value.
5760 (ada_value_ind, ada_coerce_ref, assign_component)
5761 (ada_evaluate_subexp): Remove call to unwrap_value before
5762 call to ada_to_fixed_value.
5763
2e6fda7d
JB
57642012-02-29 Joel Brobecker <brobecker@adacore.com>
5765
5766 * ada-lang.c (to_fixed_array_type): Set result's type name.
5767
5845583d
JB
57682012-02-29 Joel Brobecker <brobecker@adacore.com>
5769
5770 * ada-lang.c (catch_ada_exception_command_split): Add new
5771 argument cond_string. Add support for condition at end of
5772 "catch exception" commands.
5773 (ada_decode_exception_location): Add new argument cond_string.
5774 Update call to catch_ada_exception_command_split.
5775 (create_ada_exception_catchpoint): Add new argument cond_string.
5776 Set the breakpoint condition if needed.
5777 (catch_ada_exception_command): Update call to
5778 ada_decode_exception_location.
5779 (ada_decode_assert_location): Add function documentation.
5780 Add support for condition at end of "catch assert" command.
5781 (catch_assert_command): Update calls to ada_decode_assert_location
5782 and create_ada_exception_catchpoint.
5783
9a7f938f
JK
57842012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5785
5786 Fix disp-step-syscall.exp: fork: single step over fork.
5787 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5788 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5789 comment, change parameters gdbarch and ptid to regcache. Remove
5790 parameter regcache, initialize gdbarch from regcache here.
5791 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5792 New functions.
5793 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5794 instead.
5795 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5796 'syscall'. Make the 'int' check more strict.
5797
ffdf6de5
JK
57982012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5799
5800 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5801 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5802 (i386_linux_intx80_sysenter_syscall_record): ... here.
5803 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5804 Use the renamed function name.
5805
c70a6932
JK
58062012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5807
5808 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5809 * breakpoint.c (until_break_command): Likewise.
5810 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5811 * infcall.c (call_function_by_hand): Likewise.
5812 * infcmd.c (finish_forward): Likewise.
5813 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5814
05b8a789 58152012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 5816
d4cd3da9
JB
5817 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5818 avoid variable assignments inside condition.
5819
6425366c
JK
58202012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5821
5822 Fix static analysis issue found by cppcheck.
5823 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5824 uninitialized BUF for size 2.
5825
c8cef75f 58262012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
5827 Nathan Froyd <froydnj@codesourcery.com>
5828 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
5829
5830 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5831 (mips16_instruction_has_delay_slot): Likewise.
5832 (mips_segment_boundary): Likewise.
5833 (mips_adjust_breakpoint_address): Likewise.
5834 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5835
473347ad 58362012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 5837 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
5838
5839 * infrun.c (handle_inferior_event): Don't proceed through
5840 shared library trampolines if stepping at the machine
5841 instruction level.
5842
cf233303
MR
58432012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5844
5845 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5846 too.
5847
cb2cf4ce
TS
58482012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5849
5850 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5851 (sh_stub_unwind_sniffer): New functions.
5852 (sh_stub_unwind): New variable.
5853 (sh_gdbarch_init): Wire everything.
5854
644cebc9
PA
58552012-02-27 Pedro Alves <palves@redhat.com>
5856
5857 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5858 (linux_nat_post_attach_wait): Adjust to use
5859 linux_proc_pid_is_stopped.
5860 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5861 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5862 based on pid_is_stopped from both linux-nat.c and
5863 gdbserver/linux-low.c, and renamed.
5864
283002cf
MR
58652012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5866
5867 * remote.c (remote_watchpoint_addr_within_range): New function.
5868 (init_remote_ops): Use it.
5869
9b3e86b1
MR
58702012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5871
5872 * target.h (target_watchpoint_addr_within_range): Document macro.
5873
e36930bb
PA
58742012-02-24 Pedro Alves <palves@redhat.com>
5875
5876 * stack.c (set_last_displayed_sal): Issue internal_error instead
5877 of warning, and issue it after clearing the last displayed sal.
5878
883bc8d1
PA
58792012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5880 Pedro Alves <palves@redhat.com>
5881
5882 * breakpoint.c (until_break_command): Install breakpoints after
5883 all frame manipulations.
5884
b775012e
LM
58852012-02-24 Luis Machado <lgustavo@codesourcery.com>
5886
5887 * remote.c (remote_supports_cond_breakpoints): New forward
5888 declaration.
5889 (remote_add_target_side_condition): New function.
5890 (remote_insert_breakpoint): Add target-side breakpoint
5891 conditional if supported.
5892 (remote_insert_hw_breakpoint): Likewise.
5893 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5894 hook.
5895
5896 * target.c (update_current_target): Inherit
5897 to_supports_evaluation_of_breakpoint_conditions.
5898 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5899
5900 * target.h (struct target_ops)
5901 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5902 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5903
5904 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5905 (condition_evaluation_both, condition_evaluation_auto,
5906 condition_evaluation_host, condition_evaluation_target,
5907 condition_evaluation_enums, condition_evaluation_mode_1,
5908 condition_evaluation_mode): New static globals.
5909 (translate_condition_evaluation_mode): New function.
5910 (breakpoint_condition_evaluation_mode): New function.
5911 (gdb_evaluates_breakpoint_condition_p): New function.
5912 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5913 (mark_breakpoint_modified): New function.
5914 (mark_breakpoint_location_modified): New function.
5915 (set_condition_evaluation_mode): New function.
5916 (show_condition_evaluation_mode): New function.
5917 (bp_location_compare_addrs): New function.
5918 (get_first_location_gte_addr): New helper function.
5919 (set_breakpoint_condition): Free condition bytecode if locations
5920 has become unconditional. Call mark_breakpoint_modified (...).
5921 (condition_command): Call update_global_location_list (1) for
5922 breakpoints.
5923 (breakpoint_xfer_memory): Use is_breakpoint (...).
5924 (is_breakpoint): New function.
5925 (parse_cond_to_aexpr): New function.
5926 (build_target_condition_list): New function.
5927 (insert_bp_location): Handle target-side conditional
5928 breakpoints and call build_target_condition_list (...).
5929 (update_inserted_breakpoint_locations): New function.
5930 (insert_breakpoint_locations): Handle target-side conditional
5931 breakpoints.
5932 (bpstat_check_breakpoint_conditions): Add comment.
5933 (bp_condition_evaluator): New function.
5934 (bp_location_condition_evaluator): New function.
5935 (print_breakpoint_location): Print information on where the condition
5936 will be evaluated.
5937 (print_one_breakpoint_location): Likewise.
5938 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5939 breakpoint location.
5940 (force_breakpoint_reinsertion): New functions.
5941 (update_global_location_list): Handle target-side breakpoint
5942 conditions.
5943 Reinsert locations that are already inserted if conditions have
5944 changed.
5945 (bp_location_dtor): Free agent expression bytecode.
5946 (disable_breakpoint): Call mark_breakpoint_modified (...).
5947 Call update_global_location_list (...) with parameter 1 for breakpoints.
5948 (disable_command): Call mark_breakpoint_location_modified (...).
5949 Call update_global_location_list (...) with parameter 1 for breakpoints.
5950 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5951 (enable_command): mark_breakpoint_location_modified (...).
5952 (_initialize_breakpoint): Update documentation and add
5953 condition-evaluation breakpoint subcommand.
5954
5955 * breakpoint.h: Include ax.h.
5956 (condition_list): New data structure.
5957 (condition_status): New enum.
5958 (bp_target_info) <cond_list>: New field.
5959 (bp_location) <condition_changed, cond_bytecode>: New fields.
5960 (is_breakpoint): New prototype.
5961
3788aec7
LM
59622012-02-24 Luis Machado <lgustavo@codesourcery.com>
5963
5964 * remote.c (remote_state) <cond_breakpoints>: New field.
5965 (PACKET_ConditionalBreakpoints): New enum.
5966 (remote_cond_breakpoint_feature): New function.
5967 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5968 (remote_supports_cond_breakpoints): New function.
5969 (_initialize_remote): Add new packet configuration for
5970 target-side conditional breakpoints.
5971
72895ff6
LM
59722012-02-24 Luis Machado <lgustavo@codesourcery.com>
5973
5974 * NEWS: Mention target-side conditional breakpoint support,
5975 new condition-evaluation breakpoint subcommand and remote
5976 packet extensions.
5977
dea2aa5f
LM
59782012-02-24 Luis Machado <lgustavo@codesourcery.com>
5979
5980 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5981 number.
5982
8a8bc27f
TS
59832012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5984
5985 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5986 (after_prologue): Remove.
5987
6b446fdf
TT
59882012-02-23 Tom Tromey <tromey@redhat.com>
5989
5990 * jv-valprint.c (java_val_print): Remove dead code.
5991
ef59abfb
TG
59922012-02-23 Tristan Gingold <gingold@adacore.com>
5993
a09130f9
PA
5994 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5995 known_tasks_element and known_tasks_length fields.
5996 (read_known_tasks_array): Change argument type. Use pointer type
5997 and number of elements from DATA. Adjust.
5998 (read_known_tasks_list): Likewise.
5999 (get_known_tasks_addr): Remove.
6000 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
6001 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
6002 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 6003
def166f6
JK
60042012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6005
6006 PR backtrace/13716
6007 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
6008 it after set_momentary_breakpoint.
6009
aeaa2474
SA
60102012-02-22 Sterling Augustine <saugustine@google.com>
6011
6012 PR 13689:
6013 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
6014
feea76c2
GB
60152012-02-22 Gary Benson <gbenson@redhat.com>
6016
6017 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
6018 (find_slot_in_mapped_hash): Likewise.
6019
f06e05e0
JK
60202012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6021
6022 PR build/13638
6023 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
6024 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
6025 * configure: Regenerate.
6026
b54a8fd7
PA
60272012-02-21 Tristan Gingold <gingold@adacore.com>
6028 Pedro Alves <palves@redhat.com>
6029
6030 * ia64-tdep.c: Do not include libunwind-ia64.h.
6031 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
6032 Include libunwind-ia64.h instead of libunwind.h.
6033 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
6034 for libunwind.h existence.
6035 * configure, config.in: Regenerate.
6036
dfcee124
AG
60372012-02-21 Anton Gorenkov <xgsa@yandex.ru>
6038
6039 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
6040 instead of value_rtti_target_type.
6041 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
6042 instead of value_rtti_target_type.
6043 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
6044 value_rtti_target_type.
6045 * valops.c (value_ind): Extract function readjust_indirect_value_type.
6046 (value_rtti_target_type): Rename to ...
6047 (value_rtti_indirect_type): ... here and make it indirect. Update
6048 function comment.
6049 * value.c (readjust_indirect_value_type): New function.
6050 (coerce_ref): Support for enclosing type setting for references
6051 with readjust_indirect_value_type.
6052 * value.h (readjust_value_type): New declaration.
6053 (value_rtti_target_type): Rename to ...
6054 (value_rtti_indirect_type): ... here.
6055
02568277
AG
60562012-02-21 Anton Gorenkov <xgsa@yandex.ru>
6057
6058 * MAINTAINERS (Write After Approval): Add myself to the list.
6059
10c07b7e 60602012-02-20 Doug Evans <dje@google.com>
28ee876a 6061
d82ea6a8
DE
6062 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
6063 Rename objfile_p_char parameter to objfilep.
6064 (build_objfile_section_table): Result is now void. All callers
6065 updated.
6066 * objfiles.h (struct objfile): Tweak comments, whitespace.
6067 (build_objfile_section_table): Update.
6068
28ee876a
DE
6069 * elfread.c (elf_symfile_segments): Fix warning text.
6070
24c79950
TT
60712012-02-20 Tom Tromey <tromey@redhat.com>
6072
6073 PR gdb/13498:
6074 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
6075 particular set of file names once.
6076 (dw2_map_symbol_filenames): Likewise.
6077
3a9b40b6
JK
60782012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6079
6080 Code cleanup.
6081 * main.c (write_files): Remove the declaration.
6082 (external_editor_command): Move the declaration ...
6083 [GDBTK] (external_editor_command): ... here. Fix the comment.
6084
4d0795ca
TT
60852012-02-20 Tom Tromey <tromey@redhat.com>
6086
6087 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
6088 extraneous block.
6089
637fd620
TG
60902012-02-20 Tristan Gingold <gingold@adacore.com>
6091
6092 * darwin-nat.h (enum darwin_msg_state): Add comments.
6093
6f124894
TG
60942012-02-20 Tristan Gingold <gingold@adacore.com>
6095
6096 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
6097 value.
6098
2e6e3d9c
JB
60992012-20-18 Joel Brobecker <brobecker@adacore.com>
6100
6101 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
6102 between function description and implementation.
6103
2e8265fd
TT
61042012-02-17 Tom Tromey <tromey@redhat.com>
6105
6106 PR python/12070:
6107 * python/py-event.c (event_object_getset): New global.
6108 (event_object_type): Reference it.
6109 * python/py-type.c (field_object_getset): New global.
6110 (field_object_type): Reference it.
6111 * python/python-internal.h (gdb_py_generic_dict): Declare.
6112 * python/py-utils.c (gdb_py_generic_dict): New function.
6113
8544a150 61142012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 6115
8544a150 6116 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 6117
ca193e27
TS
61182012-02-17 Thomas Schwinge <thomas@codesourcery.com>
6119
6120 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
6121 TYPE_CALLING_CONVENTION annotation.
6122
e5586183
KB
61232012-02-16 Kevin Buettner <kevinb@redhat.com>
6124
6125 * MAINTAINERS: Add rx to target ISA section.
6126 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
6127 (ALLDEPFILES): Add rx-tdep.c.
6128
7dcd53a0
TT
61292012-02-16 Tom Tromey <tromey@redhat.com>
6130
6131 * symfile.c (symbol_file_add_main_1): Use inferior's
6132 symfile_flags.
6133 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
6134 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
6135 inferior.
6136 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
6137 inferior.
6138 (follow_exec): Use inferior's symfile_flags.
6139 * inferior.h (struct inferior) <symfile_flags>: New field.
6140
ddd60447
MF
61412012-02-16 Mike Frysinger <vapier@gentoo.org>
6142
6143 PR gdb/9734:
6144 * remote-sim.c (gdbsim_create_inferior): Call error() when
6145 sim_create_inferior() fails.
6146
b0d32fb6
TG
61472012-02-16 Josh Matthews <josh@joshmatthews.net>
6148
6149 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
6150
9addecb9
TT
61512012-02-16 Tom Tromey <tromey@redhat.com>
6152
6153 PR c++/13653:
6154 * thread.c (struct current_thread_cleanup) <was_removable>: New
6155 field.
6156 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
6157 (make_cleanup_restore_current_thread): Initialize new field.
6158
a58b110a
KB
61592012-02-15 Kevin Buettner <kevinb@redhat.com>
6160
6161 * MAINTAINERS: Add rl78 to target ISA section.
6162 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
6163 (ALLDEPFILES): Add rl78-tdep.c.
6164 * NEWS: Mention rl78 as a new target.
6165
4cb6da1c
AR
61662012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
6167
6168 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
6169 data.
6170 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
6171
3af2590d
TT
61722012-02-15 Tom Tromey <tromey@redhat.com>
6173
6174 PR gdb/12659:
6175 * infcmd.c (registers_info): Print just the current register's
6176 name.
6177
c6910659
TT
61782012-02-15 Tom Tromey <tromey@redhat.com>
6179
6180 * python/py-symbol.c (sympy_value): Use _().
6181
7cee1e54
PA
61822012-02-15 Pedro Alves <palves@redhat.com>
6183
6184 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
6185 output to be like native targets'.
6186 (remote_pid_to_str): Special case the null ptid.
6187
816338b5
SS
61882012-02-14 Stan Shebs <stan@codesourcery.com>
6189
6190 * NEWS: Mention enable count command.
6191 * breakpoint.h (struct breakpoint): New field enable_count.
6192 * breakpoint.c (enable_breakpoint_disp): Add count argument.
6193 (enable_breakpoint): Add arg to call.
6194 (struct disp_data): New struct.
6195 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
6196 (do_map_enable_once_breakpoint): Create a struct and pass it.
6197 (do_map_enable_delete_breakpoint): Ditto.
6198 (do_map_enable_count_breakpoint): New function.
6199 (enable_count_command): New function.
6200 (bpstat_stop_status): Decrement enable_count.
6201 (print_one_breakpoint_location): Report enable count.
6202 (_initialize_breakpoint): Add enable count command.
6203
c47a44f4
KB
62042012-02-14 Kevin Buettner <kevinb@redhat.com>
6205
6206 * rl78-tdep.c (reggroups.h): Include.
6207 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
6208 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
6209 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
6210 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
6211 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
6212 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
6213 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
6214 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
6215 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
6216 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
6217 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
6218 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
6219 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
6220 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
6221 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
6222 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
6223 beginning of register list.
6224 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
6225 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
6226 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
6227 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
6228 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
6229 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
6230 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
6231 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
6232 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
6233 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
6234 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
6235 the pseudo registers. Rearrange other pseudo registers too so
6236 that the bank registers appear at the end.
6237 (rl78_register_type): Account for the fact that the byte sized
6238 bank registers are now pseudo-registers.
6239 (rl78_register_name): Rearrange the register name array. Make
6240 initial set of raw banked registers inaccessible.
6241 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6242 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6243 case for copying bytes back and forth between raw and pseudo
6244 versions of the banked registers. Update other cases to reflect
6245 the changed names.
6246 (rl78_return_value): Update to account for changed names of
6247 raw registers.
6248 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6249 rl78_register_sim_regno().
6250
e4569f1e
KB
62512012-02-14 Kevin Buettner <kevinb@redhat.com>
6252
6253 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6254 the name parameter being passed to find_pc_partial_function().
6255
7a05aae7
JK
62562012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6257
6258 * MAINTAINERS: Step down from being ia64 target maintainer.
6259
11fde611
JK
62602012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6261
6262 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6263 compilation warning.
6264
57008375
JK
62652012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6266
6267 Fix crash on loaded shlibs without loaded exec_bfd.
6268 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6269 (set_section_command): Replace exec_bfd by p->bfd.
6270
ff3c9849
TT
62712012-02-10 Tom Tromey <tromey@redhat.com>
6272
6273 * linespec.c (decode_line_internal): Skip symtabs_from_filename
6274 when we have a C++ qualified name.
6275
db2b9fdd
PA
62762012-02-10 Pedro Alves <palves@redhat.com>
6277
6278 * inferior.c (inferior_pid_to_str): New.
6279 (print_inferior, inferior_command): Use it.
6280
12cd34f3
PA
62812012-02-10 Pedro Alves <palves@redhat.com>
6282
6283 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6284 the test CFLAGS.
6285 * configure: Regenerate.
6286
e871429d
JK
62872012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6288
6289 * linespec.c (decode_line_internal): Fix comment correctness.
6290
1916efaf
PA
62912012-02-09 Valery Khromov <valery.khromov@gmail.com>
6292
6293 PR gdb/12953
6294 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6295 * amd64bsd-nat.c: Add support for debug registers (adapted from
6296 i386bsd-nat.c).
6297 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6298 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6299 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6300 (amd64bsd_dr_get_control): New functions.
6301 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6302 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6303 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6304 watchpoints initialization.
6305 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6306
f4859d94
JK
63072012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6308
6309 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6310 flds_bnds.fields.
6311 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6312
c56a97f9
JK
63132012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6314
6315 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
6316
1a119f36
JB
63172012-02-08 Joel Brobecker <brobecker@adacore.com>
6318
6319 * language.h (symbol_name_cmp_ftype): Renames
6320 symbol_name_match_p_ftype.
6321 (struct language_defn)[la_get_symbol_name_cmp]: Renames
6322 la_get_symbol_name_match_p.
6323 * ada-lang.c (ada_get_symbol_name_cmp): Renames
6324 ada_get_symbol_name_match_p. Update comment.
6325 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6326 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6327 Renames symbol_name_match_p. Update field type.
6328 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6329 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6330 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6331 "la_get_symbol_name_cmp" in comments.
6332 * language.c: Likewise.
6333
c71bb1cf
RO
63342012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6335
6336 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6337 %eflags offset.
6338 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6339 (amd64_sol2_gregset32_reg_offs): Likewise.
6340
4b2d20a5
TG
63412012-02-08 Joel Brobecker <brobecker@adacore.com>
6342
6343 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6344 of the returned BFD is allocated by GDB.
6345
f0823d2c
TT
63462012-02-07 Tom Tromey <tromey@redhat.com>
6347
6348 PR python/12027:
6349 * python/python-internal.h (frame_object_type): Declare.
6350 * python/py-symbol.c (sympy_needs_frame): New function.
6351 (sympy_value): New function.
6352 (symbol_object_getset): Add "needs_frame".
6353 (symbol_object_methods): Add "value".
6354 * python/py-frame.c (frame_object_type): No longer static.
6355
64e7d9dd
TT
63562012-02-07 Tom Tromey <tromey@redhat.com>
6357
6358 PR python/13599:
6359 * python/py-symbol.c (sympy_line): New function.
6360 (symbol_object_getset): Add "line".
6361
1d6b2d2b
TT
63622012-02-07 Tom Tromey <tromey@redhat.com>
6363
6364 * charset.c (find_charset_names): Check 'in' against NULL.
6365
0d5cff50
DE
63662012-02-06 Doug Evans <dje@google.com>
6367
6368 * gdbtypes.h (struct main_type): Change type of name,tag_name,
6369 and fields.name members from char * to const char *. All uses updated.
6370 (struct cplus_struct_type): Change type of fn_fieldlists.name member
6371 from char * to const char *. All uses updated.
6372 (type_name_no_tag): Update.
6373 (lookup_unsigned_typename, lookup_signed_typename): Update.
6374 * gdbtypes.c (type_name_no_tag): Change result type
6375 from char * to const char *. All callers updated.
6376 (lookup_unsigned_typename, lookup_signed_typename): Change type of
6377 name parameter from char * to const char *.
6378 * symtab.h (struct cplus_specific): Change type of demangled_name
6379 member from char * to const char *. All uses updated.
6380 (struct general_symbol_info): Change type of name and
6381 mangled_lang.demangled_name members from char * to const char *.
6382 All uses updated.
6383 (symbol_get_demangled_name, symbol_natural_name): Update.
6384 (symbol_demangled_name, symbol_search_name): Update.
6385 * symtab.c (symbol_get_demangled_name): Change result type
6386 from char * to const char *. All callers updated.
6387 (symbol_natural_name, symbol_demangled_name): Ditto.
6388 (symbol_search_name): Ditto.
6389 (completion_list_add_name): Change type of symname,sym_text,
6390 text,word parameters from char * to const char *.
6391 (completion_list_objc_symbol): Change type of sym_text,
6392 text,word parameters from char * to const char *.
6393 * ada-lang.c (find_struct_field): Change type of name parameter
6394 from char * to const char *.
6395 (encoded_ordered_before): Similarly for N0,N1 parameters.
6396 (old_renaming_is_invisible): Similarly for function_name parameter.
6397 (ada_type_name): Change result type from char * to const char *.
6398 All callers updated.
6399 * ada-lang.h (ada_type_name): Update.
6400 * buildsym.c (hashname): Change type of name parameter
6401 from char * to const char *.
6402 * buildsym.h (hashname): Update.
6403 * dbxread.c (end_psymtab): Change type of include_list parameter
6404 from char ** to const char **.
6405 * dwarf2read.c (determine_prefix): Change result type
6406 from char * to const char *. All callers updated.
6407 * f-lang.c (find_common_for_function): Change type of name, funcname
6408 parameters from char * to const char *.
6409 * f-lang.c (find_common_for_function): Update.
6410 * f-valprint.c (list_all_visible_commons): Change type of funcname
6411 parameters from char * to const char *.
6412 * gdbarch.sh (static_transform_name): Change type of name parameter
6413 and result from char * to const char *.
6414 * gdbarch.c: Regenerate.
6415 * gdbarch.h: Regenerate.
6416 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6417 of name parameter from char * to const char *.
6418 * jv-lang.c (java_primitive_type_from_name): Ditto.
6419 (java_demangled_signature_length): Similarly for signature parameter.
6420 (java_demangled_signature_copy): Ditto.
6421 (java_demangle_type_signature): Ditto.
6422 * jv-lang.h (java_primitive_type_from_name): Update.
6423 (java_demangle_type_signature): Update.
6424 * objc-lang.c (specialcmp): Change type of a,b parameters
6425 from char * to const char *.
6426 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6427 from char * to const char *. All callers updated.
6428 * p-lang.h (is_pascal_string_type): Update.
6429 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6430 of name parameter from char * to const char *.
6431 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6432 * utils.c (fprintf_symbol_filtered): Ditto.
6433 * defs.h (fprintf_symbol_filtered): Update.
6434 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6435 * stabsread.h (end_psymtab): Update.
6436 * stack.c (find_frame_funname): Change type of funname parameter
6437 from char ** to const char **.
6438 * stack.h (find_frame_funname): Update.
6439 * typeprint.c (type_print): Change type of varstring parameter
6440 from char * to const char *.
6441 * value.h (type_print): Update.
6442 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6443 from char * to const char *. All callers updated.
6444 (xcoff_end_psymtab): Change type of include_list parameter
6445 from char ** to const char **. All callers updated.
6446 (swap_sym): Similarly for name parameter. All callers updated.
6447 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6448 Use xstrdup.
6449 (process_coff_symbol): Use xstrdup.
6450 * stabsread.c (stabs_method_name_from_physname): Renamed from
6451 update_method_name_from_physname. Change result type from void
6452 to char *. All callers updated.
6453 (read_member_functions): In has_destructor case, store name in objfile
6454 obstack instead of malloc space. In !has_stub case, fix mem leak.
6455
5579a92e
TT
64562012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6457
6458 * configure: Rebuild.
6459 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6460 LDFLAGS.
6461
9058f767
KB
64622012-02-03 Kevin Buettner <kevinb@redhat.com>
6463
6464 * configure.tgt (rl78-*-elf): New target.
6465 * rl78-tdep.c: New file.
6466
5b37825d
PW
64672012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6468
6469 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6470 and continue the loop. Add QUIT statement.
6471
e009ee71
TT
64722012-02-03 Tom Tromey <tromey@redhat.com>
6473
6474 PR gdb/13596:
6475 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6476 bfd_lookup_symbol_from_symtab.
6477 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6478 gdb_bfd_lookup_symbol_from_symtab.
6479
f7e44f65
JB
64802012-02-03 Joel Brobecker <brobecker@adacore.com>
6481
6482 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6483 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6484 symbol. Add assertion that sym2 is never NULL.
6485
2c02bd72
DE
64862012-02-02 Doug Evans <dje@google.com>
6487
6488 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6489 "name" parameter to const char ** from char **. All callers updated.
6490 (find_pc_partial_function): Ditto.
6491 (cache_pc_function_name): Change type to const char * from char *.
6492 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6493 (find_pc_partial_function): Update.
6494 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6495 type of "name" parameter to const char * from char *.
6496 All uses updated.
6497 * arch-utils.c (generic_in_solib_return_trampoline): Change
6498 type of "name" parameter to const char * from char *.
6499 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6500 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6501 type of "name" parameter to const char * from char *.
6502 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6503 * gdbarch.c: Regenerate.
6504 * gdbarch.h: Regenerate.
6505 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6506 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6507 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6508 type of "name" parameter to const char * from char *.
6509 * skip.c (skip_function_pc): Ditto.
6510 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6511 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6512 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6513 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6514 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6515 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6516 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6517 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6518 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6519
e886a173
PA
65202012-02-02 Pedro Alves <palves@redhat.com>
6521
6522 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6523 the current inferior has no execution. Make sure the current
6524 remote process matches gdb's current inferior.
6525
c709a7c2
TT
65262012-02-02 Tom Tromey <tromey@redhat.com>
6527
6528 PR gdb/13405:
6529 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6530 read-only memory.
6531
f149aabd
TT
65322012-02-02 Tom Tromey <tromey@redhat.com>
6533
6534 PR gdb/9307:
6535 * symtab.c (lookup_language_this): Set block_found.
6536
03bef283
TT
65372012-02-01 Tom Tromey <tromey@redhat.com>
6538
6539 PR gdb/13431:
6540 * jit.c (struct jit_inferior_data): Rewrite.
6541 (struct jit_objfile_data): New.
6542 (get_jit_objfile_data): New function.
6543 (add_objfile_entry): Update.
6544 (jit_read_descriptor): Return int. Replace descriptor_addr
6545 argument with inf_data. Update. Don't call error.
6546 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6547 descriptor here.
6548 (jit_inferior_init): Don't look up descriptor. Don't call error.
6549 (jit_reset_inferior_data_and_breakpoints)
6550 (jit_inferior_created_observer): Remove.
6551 (jit_inferior_exit_hook): Update.
6552 (jit_executable_changed_observer): Remove.
6553 (jit_event_handler): Update.
6554 (free_objfile_data): Reset inferior data if needed.
6555 (_initialize_jit): Update.
6556
f0bbc364
TT
65572012-02-01 Tom Tromey <tromey@redhat.com>
6558
6559 * jit.c (bfd_open_from_target_memory): Move higher in file.
6560
47c1316c
TG
65612012-02-01 Tristan Gingold <gingold@adacore.com>
6562
6563 * libunwind-frame.c (libunwind_load): Display message if dlopen
6564 failed.
6565
8e704927
GB
65662012-02-01 Gary Benson <gbenson@redhat.com>
6567
09c7a31f 6568 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
6569 (iterate_over_symbols): Use the above.
6570 * symtab.c (iterate_over_symbols): Likewise.
6571 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6572 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6573 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6574 (iterate_name_matcher): Document return values.
6575 (collect_one_symbol): Likewise.
6576 (collect_function_symbols): Likewise.
6577 (collect_symbols): Likewise.
6578
d9680e73
TT
65792012-02-01 Tom Tromey <tromey@redhat.com>
6580
6581 * ada-lang.c (resolve_subexp): Update.
6582 (ada_lookup_symbol_list): Add 'full_search' argument.
6583 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6584 ada_lookup_symbol_list.
6585 (ada_lookup_encoded_symbol): Update.
6586 (get_var_value): Update.
6587 * ada-exp.y (block_lookup): Update.
6588 (write_var_or_type): Update.
6589 (write_name_assoc): Update.
6590 * ada-lang.h (ada_lookup_symbol_list): Update.
6591
72e1143f
TT
65922012-01-31 Tom Tromey <tromey@redhat.com>
6593
6594 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6595 comment.
6596
ab2d2ad3
DE
65972012-01-31 Doug Evans <dje@google.com>
6598
6599 * symtab.h: Remove outdated comment.
e9111bf7 6600 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 6601
bc884eba
JB
66022012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6603
6604 Fix build error in Darwin port.
6605 * i386-darwin-nat.c: Include i386-nat.h.
6606
8fc3fc34
TT
66072012-01-30 Tom Tromey <tromey@redhat.com>
6608
6609 PR breakpoints/13568:
6610 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6611 argument. Check for recursive includes.
6612 (dwarf_decode_macros): Create an include hash.
6613
5d853008
ME
66142012-01-30 Michael Eager <eager@eagercon.com>
6615
6616 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6617 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 6618 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
6619 (powerpc_linux_in_plt_stub): New function.
6620 (powerpc_linux_in_dynsym_resolve_code): New function.
6621 (ppc_skip_trampoline_code): New function.
6622 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6623 Use glibc_skip_solib_resolver.
6624
40478521
JK
66252012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6626
6627 Code cleanup: Make 1440 bytes of data segment read-only.
6628 * arch-utils.c (endian_enum): Make it const char *const [].
6629 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6630 Likewise.
6631 * breakpoint.c (always_inserted_enums): Likewise.
6632 * cli/cli-cmds.c (script_ext_enums): Likewise.
6633 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6634 enumlist parameter const char *const *.
6635 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6636 const char *const *.
6637 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6638 parameter const char *const *.
6639 * cris-tdep.c (cris_modes): Make it const char *const [].
6640 * filesystem.c (target_file_system_kinds): Likewise.
6641 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6642 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6643 (can_use_displaced_stepping_enum, scheduler_enums)
6644 (exec_direction_names): Likewise.
6645 * language.c (_initialize_language): Make the type_or_range_names and
6646 case_sensitive_names variables const char *const [].
6647 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6648 * python/python.c (python_excp_enums): Likewise.
6649 * remote.c (interrupt_sequence_modes): Likewise.
6650 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6651 * serial.c (logbase_enums): Likewise.
6652 * sh-tdep.c (sh_cc_enum): Likewise.
6653 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6654 Likewise.
6655 * symtab.c (multiple_symbols_modes): Likewise.
6656 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6657 Likewise.
6658 * utils.c (internal_problem_modes): Likewise.
6659
b3b8b934
JK
66602012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6661
6662 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6663 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6664 result.
6665
8c85a4e2
DE
66662012-01-27 Doug Evans <dje@google.com>
6667
6668 * configure.ac (with_python): Fix absolute path handling for win32.
6669 * configure: Regenerate.
6670
78d8b4d7
DE
66712012-01-26 Doug Evans <dje@google.com>
6672
eca864fe
DE
6673 * symtab.c: Whitespace cleanup, no code changes.
6674
7e082072
DE
6675 * symtab.c (lookup_symbol_in_language): Improve comment.
6676 (lookup_symbol_aux): Fix comment.
6677
7dc25483
DE
6678 * psymtab.c (add_psymbol_to_list): Result is now "void".
6679 * psympriv.h (add_psymbol_to_list): Update.
6680
78d8b4d7
DE
6681 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6682
4c63965b
JK
66832012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6684
6685 Do not open script filenames twice.
6686 * cli/cli-cmds.c (source_script_from_stream): Pass to
6687 source_python_script also STREAM.
6688 * python/py-auto-load.c (source_section_scripts): Pass to
6689 source_python_script_for_objfile also STREAM.
6690 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6691 also INPUT.
6692 * python/python-internal.h (source_python_script_for_objfile): New
6693 parameter file, rename parameter file to filename.
6694 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6695 instead if !_WIN32. Update the function comment.
6696 (source_python_script, source_python_script_for_objfile)
6697 (source_python_script): New parameter file, rename parameter file to
6698 filename. Pass FILENAME to python_run_simple_file.
6699 * python/python.h (source_python_script): New parameter file, rename
6700 parameter file to filename.
6701
88f38a04
PA
67022012-01-26 Pedro Alves <palves@redhat.com>
6703
6704 * corelow.c (core_has_fake_pid): Delete.
6705 (core_close): Delete references to `core_has_fake_pid'.
6706 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6707 (core_open): Delete references to `core_has_fake_pid'.
6708 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6709 the removed global.
6710
e078317b
JB
67112012-01-26 Joel Brobecker <brobecker@adacore.com>
6712
6713 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6714 Remove language parameter from name_matcher. Adjust the comment.
6715 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6716 Remove language parameter.
6717 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6718 * linespec.c (iterate_name_matcher): Likewise.
6719 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6720 name_matcher. Adjust call accordingly.
6721 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6722 (maintenance_check_symtabs): Adjust type of parameter "fun".
6723 * psymtab.h (maintenance_check_symtabs): Likewise.
6724
74ccd7f5
JB
67252012-01-26 Joel Brobecker <brobecker@adacore.com>
6726
6727 * language.h (symbol_name_match_p_ftype): New typedef.
6728 (struct language_defn): Replace field la_symbol_name_compare
6729 by la_get_symbol_name_match_p.
6730 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6731 (ada_language_defn): Use it.
6732 * linespec.c (struct symbol_matcher_data): New type.
6733 (iterate_name_matcher): Rewrite.
6734 (iterate_over_all_matching_symtabs): Pass a pointer to
6735 a symbol_matcher_data struct to expand_symtabs_matching
6736 instead of just the lookup name.
6737 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6738 opencl-lang.c, p-lang.c, language.c: Delete field
6739 la_symbol_name_compare, and replace by NULL for new field
6740 la_get_symbol_name_match_p.
6741 * symfile.h (struct quick_symbol_functions): Update comment.
6742
5d268276
TT
67432012-01-25 Tom Tromey <tromey@redhat.com>
6744
6745 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6746 dereferencing.
6747
edcc5120
TT
67482012-01-24 Tom Tromey <tromey@redhat.com>
6749
6750 PR symtab/12406:
6751 * solib.c (update_solib_list): Update the program space's
6752 added_solibs and deleted_solibs fields.
6753 * progspace.h (struct program_space) <added_solibs,
6754 deleted_solibs>: New fields.
6755 (clear_program_space_solib_cache): Declare.
6756 * progspace.c (release_program_space): Call
6757 clear_program_space_solib_cache.
6758 (clear_program_space_solib_cache): New function.
6759 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6760 bpstat_stop_status. Use handle_solib_event.
6761 * breakpoint.c: Include gdb_regex.h.
6762 (print_solib_event): New function.
6763 (bpstat_print): Use print_solib_event.
6764 (bpstat_stop_status): Add special case for bp_shlib_event.
6765 (handle_solib_event): New function.
6766 (bpstat_what): Use handle_solib_event.
6767 (struct solib_catchpoint): New.
6768 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6769 (breakpoint_hit_catch_solib, check_status_catch_solib)
6770 (print_it_catch_solib, print_one_catch_solib)
6771 (print_mention_catch_solib, print_recreate_catch_solib): New
6772 functions.
6773 (catch_solib_breakpoint_ops): New global.
6774 (catch_load_or_unload, catch_load_command_1)
6775 (catch_unload_command_1): New functions.
6776 (internal_bkpt_check_status): Add special case for
6777 bp_shlib_event.
6778 (internal_bkpt_print_it): Use print_solib_event.
6779 (initialize_breakpoint_ops): Initialize
6780 catch_solib_breakpoint_ops.
6781 (_initialize_breakpoint): Register "catch load" and "catch
6782 unload".
6783 * breakpoint.h (handle_solib_event): Declare.
6784 * NEWS: Add entry for "catch load" and "catch unload".
6785
fa864999
TT
67862012-01-24 Tom Tromey <tromey@redhat.com>
6787
6788 * ada-lang.c: Include gdb_vecs.h.
6789 * charset.c: Include gdb_vecs.h.
6790 * tracepoint.h: Include gdb_vecs.h.
6791 * gdb_vecs.h: New file.
6792
f90263c1
TT
67932012-01-24 Pedro Alves <pedro@codesourcery.com>
6794
6795 * breakpoint.c (breakpoint_hit_catch_fork)
6796 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6797 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6798 * infrun.c (inferior_has_forked, inferior_has_vforked)
6799 (inferior_has_execd, inferior_has_called_syscall): Delete.
6800 (handle_syscall_event): Get syscall_number from the execution
6801 control state's wait status.
6802 (wait_for_inferior): Don't clear syscall_number.
6803
09ac7c10
TT
68042012-01-24 Pedro Alves <palves@redhat.com>
6805
6806 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6807 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6808 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6809 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6810 `ws' parameter.
6811 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6812 false for events other than TARGET_SIGNAL_TRAP.
6813 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6814 Add `ws' parameter.
6815 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6816 events other than TARGET_SIGNAL_TRAP.
6817 (tracepoint_breakpoint_hit): Add `ws' parameter.
6818 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6819 parameter.
6820 (bpstat_stop_status): Same.
6821 (pc_at_non_inline_function): Same.
6822 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6823 to pass the current event's waitstatus to bpstat_stop_status
6824 and pc_at_non_inline_function.
6825
86eb7e95
JK
68262012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6827
6828 Code cleanup.
6829 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6830 Update the function comment for it.
6831 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6832 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6833 for STREAM.
6834
a9b3a50f
PA
68352012-01-24 Pedro Alves <palves@redhat.com>
6836
6837 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6838 outside `bs->stop' block.
6839 (bpstat_what): Rework bp_shlib_event handling.
6840 (internal_bkpt_check_status): If the breakpoint is a
6841 bp_shlib_event, then set bs->stop and bs->print if
6842 stop_on_solib_events is set.
6843
53fe1783
GB
68442012-01-24 Gary Benson <gbenson@redhat.com>
6845
6846 Delete #if 0'd out code.
6847 * stack.c (print_frame_label_vars): Remove.
6848 (catch_info): Likewise.
6849 (_initialize_stack): Remove "info catch" command.
6850 * NEWS: Mention the above.
6851
49c62f2e
PA
68522012-01-24 Pedro Alves <palves@redhat.com>
6853
6854 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6855 it.
6856 (remote_notice_new_inferior): If the remote end doesn't support
6857 the multiprocess extensions, then the PID is fake.
6858 (add_current_inferior_and_thread): New.
6859 (remote_start_remote): Use it.
6860 (extended_remote_attach_1): Adjust.
6861 (extended_remote_create_inferior_1): Use
6862 add_current_inferior_and_thread.
6863
d0d8b0c6
JK
68642012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6865
6866 Fix watchpoints to be specific for each inferior.
6867 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6868 current_program_space.
6869 * i386-nat.c (i386_inferior_data_cleanup): New.
6870 (i386_inferior_data_get): Replace variable inf_data_local by an
6871 inferior_data call.
6872 (i386_use_watchpoints): Initialize i386_inferior_data.
6873 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6874 specific iterate_over_lwps.
6875
4403d8e9
JK
68762012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6877
6878 Fix watchpoints across inferior fork.
6879 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6880 comment for linux_nat_iterate_watchpoint_lwps.
6881 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6882 linux_nat_iterate_watchpoint_lwps.
6883 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6884 * i386-linux-nat.c (update_debug_registers_callback): Update the
6885 comment for linux_nat_iterate_watchpoint_lwps.
6886 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6887 linux_nat_iterate_watchpoint_lwps.
6888 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6889 * i386-nat.c: Include inferior.h.
6890 (dr_mirror): Remove.
6891 (i386_inferior_data, struct i386_inferior_data)
6892 (i386_inferior_data_get): New.
6893 (i386_debug_reg_state): Use i386_inferior_data_get.
6894 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6895 (i386_insert_watchpoint, i386_remove_watchpoint)
6896 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6897 (i386_remove_hw_breakpoint): New variable state, use
6898 i386_debug_reg_state instead of DR_MIRROR.
6899 * linux-nat.c (delete_lwp): New declaration.
6900 (num_lwps): Move here from downwards.
6901 (delete_lwp_cleanup): New.
6902 (linux_child_follow_fork): Create new child_lp, call
6903 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6904 PTRACE_DETACH.
6905 (num_lwps): Move upwards.
6906 (linux_nat_iterate_watchpoint_lwps): New.
6907 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6908 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6909
2992c9a7 69102012-01-24 Joel Brobecker <brobecker@adacore.com>
6911
6912 GDB 7.4 released.
6913
e360902b
PA
69142012-01-23 Pedro Alves <palves@redhat.com>
6915
6916 * top.c (caution): Rename to ...
6917 (confirm): ... this.
6918 (show_caution): Rename to ...
6919 (show_confirm): ... this.
6920 (quit_cover): Adjust.
6921 (init_main): Adjust.
6922 * top.h (caution): Rename to ...
6923 (confirm): ... this.
6924 * utils.c (internal_vproblem, defaulted_query): Adjust.
6925
050a2e1d
PA
69262012-01-23 Pedro Alves <palves@redhat.com>
6927
6928 * top.c (caution): Update comment.
6929 (execute_command): Don't consider the current value of `caution'.
6930
77a35dd8
JK
69312012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6932
6933 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6934
a71b5a38
UW
69352012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6936
6937 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6938 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6939 * target.c (target_fileio_pwrite): Remove buffer address from
6940 debug output.
6941 (target_fileio_pread): Likewise.
6942
d99bd577
UW
69432012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6944
6945 * NEWS: Document remote "info proc" and "generate-core-file".
6946
35c2fab7
UW
69472012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6948
6949 * gdbarch.sh (find_memory_regions): New callback.
6950 * gdbarch.c, gdbarch.h: Regenerate.
6951
6952 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6953 callback before falling back to target method.
6954
6955 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6956 (linux_target_install_ops): No longer install it.
6957
6958 * linux-tdep.c (linux_find_memory_regions): New function.
6959 (linux_init_abi): Install it.
6960
6432734d
UW
69612012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6962
6963 * gdbarch.sh (make_corefile_notes): New architecture callback.
6964 * gdbarch.c: Regenerate.
6965 * gdbarch.h: Likewise.
6966
6967 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6968 before target_make_corefile_notes. If NULL is returned, the
6969 target does not support core file generation.
6970
6971 * linux-nat.c: Include "linux-tdep.h".
6972 (find_signalled_thread, find_stop_signal): Remove.
6973 (linux_nat_do_thread_registers): Likewise.
6974 (struct linux_nat_corefile_thread_data): Likewise.
6975 (linux_nat_corefile_thread_callback): Likewise.
6976 (iterate_over_spus): Likewise.
6977 (struct linux_spu_corefile_data): Likewise.
6978 (linux_spu_corefile_callback): Likewise.
6979 (linux_spu_make_corefile_notes): Likewise.
6980 (linux_nat_collect_thread_registers): New function.
6981 (linux_nat_make_corefile_notes): Replace contents by call to
6982 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6983 as native-only callback.
6984
6985 * linux-tdep.h: Include "bfd.h".
6986 (struct regcache): Add forward declaration.
6987 (linux_collect_thread_registers_ftype): New typedef.
6988 (linux_make_corefile_notes): Add prototype.
6989 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6990 "regset.h", and "elf-bfd.h".
6991 (find_signalled_thread, find_stop_signal): New functions.
6992 (linux_spu_make_corefile_notes): Likewise.
6993 (linux_collect_thread_registers): Likewise.
6994 (struct linux_corefile_thread_data): New data structure.
6995 (linux_corefile_thread_callback): New funcion.
6996 (linux_make_corefile_notes): Likewise.
6997 (linux_make_corefile_notes_1): Likewise.
6998 (linux_init_abi): Install it.
6999
3030c96e
UW
70002012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7001
7002 * gdbarch.sh (info_proc): New callback.
7003 * gdbarch.c, gdbarch.h: Regenerate.
7004
7005 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
7006 before falling back to the target info_proc callback.
7007
7008 * linux-nat.c: Do not include "cli/cli-utils.h".
7009 (linux_nat_info_proc): Remove.
7010 (linux_target_install_ops): No longer install it.
7011
7012 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
7013 (read_mapping): New function.
7014 (linux_info_proc): Likewise.
7015 (linux_init_abi): Install it.
7016
145b16a9
UW
70172012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7018
7019 * defs.h (enum info_proc_what): Moved here from linux-nat.c
7020 * infcmd.c: (info_proc_cmd_1): New function.
7021 (info_proc_cmd): New function, moved here from equivalent routine
7022 orignally in linux-nat.c.
7023 (info_proc_cmd_mappings): Likewise.
7024 (info_proc_cmd_stat): Likewise.
7025 (info_proc_cmd_status): Likewise.
7026 (info_proc_cmd_cwd): Likewise.
7027 (info_proc_cmd_cmdline): Likewise.
7028 (info_proc_cmd_exe): Likewise.
7029 (info_proc_cmd_all): Likewise.
7030 (_initialize_infcmd): Install "info proc" command and subcommands.
7031
7032 * target.h (struct target_ops): Add to_info_proc.
7033 (target_info_proc): Add prototype.
7034 * target.c (target_info_proc): New function.
7035
7036 * procfs.c (procfs_info_proc): Add prototype.
7037 (info_proc_cmd): Rename into ...
7038 (procfs_info_proc): ... this. Update argument types as appropriate
7039 for a to_info_proc implementation. Handle "what" argument.
7040 (procfs_target): Install procfs_info_proc.
7041 (_initialize_procfs): No longer install "info proc" command.
7042
7043 * linux-nat.c: (enum info_proc_what): Remove.
7044 (linux_nat_info_proc_cmd_1): Rename into ...
7045 (linux_nat_info_proc): ... this. Update argument types as appropriate
7046 for a to_info_proc implementation.
7047 (linux_nat_info_proc_cmd): Remove.
7048 (linux_nat_info_proc_cmd_mappings): Likewise.
7049 (linux_nat_info_proc_cmd_stat): Likewise.
7050 (linux_nat_info_proc_cmd_status): Likewise.
7051 (linux_nat_info_proc_cmd_cwd): Likewise.
7052 (linux_nat_info_proc_cmd_cmdline): Likewise.
7053 (linux_nat_info_proc_cmd_exe): Likewise.
7054 (linux_nat_info_proc_cmd_all): Likewise.
7055 (linux_target_install_ops): Install linux_nat_info_proc.
7056 (_initialize_linux_nat): No longer install "info proc" command
7057 and subcommands.
7058
b9e7b9c3
UW
70592012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7060
7061 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
7062 * config.in, configure: Regenerate.
7063
7064 * target.h (struct target_ops): Add to_fileio_readlink.
7065 (target_fileio_readlink): Add prototype.
7066 * target.c (target_fileio_readlink): New function.
7067
7068 * inf-child.c: Conditionally include <sys/param.h>.
7069 (inf_child_fileio_readlink): New function.
7070 (inf_child_target): Install it.
7071
7072 * remote.c (PACKET_vFile_readlink): New enum value.
7073 (remote_hostio_readlink): New function.
7074 (init_remote_ops): Install it.
7075 (_initialize_remote): Handle vFile:readlink packet type.
7076
7313baad
UW
70772012-01-20 Pedro Alves <palves@redhat.com>
7078 Ulrich Weigand <ulrich.weigand@linaro.org>
7079
7080 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
7081 * config.in, configure: Regenerate.
7082
7083 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
7084 to_fileio_pread, to_fileio_close, to_fileio_unlink.
7085 (target_fileio_open): Add prototype.
7086 (target_fileio_pwrite): Likewise.
7087 (target_fileio_pread): Likewise.
7088 (target_fileio_close): Likewise.
7089 (target_fileio_unlink): Likewise.
7090 (target_fileio_read_alloc): Likewise.
7091 (target_fileio_read_stralloc): Likewise.
7092
7093 * target.c: Include "gdb/fileio.h".
7094 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
7095 (default_fileio_target): New function.
7096 (target_fileio_open): Likewise.
7097 (target_fileio_pwrite): Likewise.
7098 (target_fileio_pread): Likewise.
7099 (target_fileio_close): Likewise.
7100 (target_fileio_unlink): Likewise.
7101 (target_fileio_close_cleanup): Likewise.
7102 (target_fileio_read_alloc_1): Likewise.
7103 (target_fileio_read_alloc): Likewise.
7104 (target_fileio_read_stralloc): Likewise.
7105
7106 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
7107 <fcntl.h>, and <unistd.h>.
7108 (inf_child_fileio_open_flags_to_host): New function.
7109 (inf_child_errno_to_fileio_error): Likewise.
7110 (inf_child_fileio_open): Likewise.
7111 (inf_child_fileio_pwrite): Likewise.
7112 (inf_child_fileio_pread): Likewise.
7113 (inf_child_fileio_close): Likewise.
7114 (inf_child_fileio_unlink): Likewise.
7115 (inf_child_target): Install to_fileio routines.
7116
7117 * remote.c (init_remote_ops): Install to_fileio routines.
7118
901f9912
UW
71192012-01-20 Pedro Alves <palves@redhat.com>
7120 Ulrich Weigand <ulrich.weigand@linaro.org>
7121
7122 * remote.c (remote_multi_process_p): Only check for multi-process
7123 protocol feature, do not check for extended protocol.
7124 (remote_supports_multi_process): Check for extended protocol here.
7125 (set_general_process): Likewise.
7126 (extended_remote_kill): Likewise.
7127 (remote_pid_to_str): Likewise.
7128 (remote_query_supported): Always query multiprocess mode.
7129
e714e1bf
UW
71302012-01-20 Pedro Alves <palves@redhat.com>
7131 Ulrich Weigand <ulrich.weigand@linaro.org>
7132
7133 * inferior.h (struct inferior): Add fake_pid_p.
7134 * inferior.c (exit_inferior_1): Clear fake_pid_p.
7135 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
7136 magic_null_ptid since the remote side doesn't provide a real PID.
7137
50897289
TT
71382012-01-19 Tom Tromey <tromey@redhat.com>
7139
7140 * NEWS: Combine the two Python sections.
7141
1afc2033
JK
71422012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7143
7144 * target.h (target_close): Update comment on the target's unpush state.
7145
305436e0
PA
71462012-01-19 Pedro Alves <palves@redhat.com>
7147
7148 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
7149 linux_nat_async directly instead of going through the target
7150 vector.
7151 * target.c (unpush_target): Close target after unpushing it, not
7152 before.
7153
49323895
GB
71542012-01-19 Gary Benson <gbenson@redhat.com>
7155
7156 * mdebugread.c (sort_blocks): Replace integer constants with ones
7157 derived from FIRST_LOCAL_BLOCK.
7158
1db33378
PP
71592012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
7160 Jan Kratochvil <jan.kratochvil@redhat.com>
7161
7162 PR gdb/9538
7163 * symfile.c (find_separate_debug_file): New function.
7164 (terminate_after_last_dir_separator): Likewise.
7165 (find_separate_debug_file_by_debuglink): Also try realpath.
7166 * configure.ac (AC_CHECK_FUNCS): Add lstat.
7167 * configure: Regenerate.
7168 * config.in: Regenerate.
7169
f83d8a90
DE
71702012-01-18 Doug Evans <dje@google.com>
7171
7172 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
7173 (main.o): Remove rule.
7174 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
7175 (--with-sysroot): Rewrite.
7176 * configure: Regenerate.
7177 * config.in: Regenerate.
7178
2dbca4d6
SDJ
71792012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
7180
7181 * parse.c (initialize_expout): New function.
7182 (reallocate_expout): Likewise.
7183 (parse_exp_in_context): Use `initialize_expout' and
7184 `reallocate_expout' when appropriate.
7185
0695b514
PA
71862012-01-18 Pedro Alves <palves@redhat.com>
7187
7188 * record.c (struct record_breakpoint, record_breakpoint_p)
7189 (record_breakpoints): New.
7190 (record_insert_breakpoint, record_remove_breakpoint): Manage
7191 record breakpoints list. Only remove breakpoints from the
7192 inferior if they had been inserted there in the first place.
7193
136e1c30
DE
71942012-01-17 Doug Evans <dje@google.com>
7195
7196 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
7197 if we know we don't have a file name to look for.
7198
c0bf857d
PA
71992012-01-17 Pedro Alves <palves@redhat.com>
7200
7201 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
7202 the frame's stop reason is UNWIND_UNAVAILABLE.
7203
b486de60
JK
72042012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7205
7206 Fix compilation error.
7207 * m2-exp.y (yyerror): Use ANSI C prototype.
7208
d04550a6
SDJ
72092012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7210
7211 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
7212 (growbuf_by_size): Likewise.
7213 (yyerror): Likewise.
7214 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7215 (modblock): Remove variable (was #if 0'ed).
7216 (parse_number): Convert prototype from K&R to ANSI C.
7217 (yyerror): Likewise.
7218 * objc-exp.y (parse_number): Likewise.
7219 (yyerror): Likewise.
7220 (yylex): Remove #if 0'ed code.
7221 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
7222 (yyerror): Likewise.
7223
4aac40c8
TT
72242012-01-16 Tom Tromey <tromey@redhat.com>
7225
7226 * NEWS: Add item.
7227 * symtab.h (compare_filenames_for_search): Declare.
7228 * symtab.c (compare_filenames_for_search): New function.
7229 (iterate_over_some_symtabs): Use it.
7230 * symfile.h (struct quick_symbol_functions)
7231 <map_symtabs_matching_filename>: Change spec.
7232 * psymtab.c (partial_map_symtabs_matching_filename): Use
7233 compare_filenames_for_search. Update for new spec.
7234 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
7235 compare_filenames_for_search. Update for new spec.
7236 * breakpoint.c (clear_command): Use compare_filenames_for_search.
7237
cafec441
TT
72382012-01-16 Tom Tromey <tromey@redhat.com>
7239
7240 PR python/13281:
7241 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7242 (struct main_type) <flag_flag_enum>: New field.
7243 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7244 * NEWS: Add entries.
7245 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7246 enums.
7247 * python/lib/gdb/printing.py (_EnumInstance): New class.
7248 (FlagEnumerationPrinter): Likewise.
7249
983af33b
SDJ
72502012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7251
7252 * breakpoint.c (create_sals_from_address_default): New function.
7253 (create_breakpoints_sal_default): Likewise.
7254 (decode_linespec_default): Likewise.
7255 (is_marker_spec): Removed.
7256 (strace_marker_p): New function.
7257 (init_breakpoint_sal): Using `strace_marker_p' instead of
7258 `is_marker_spec'.
7259 (create_breakpoint): Call method `create_sals_from_address' from
7260 breakpoint_ops, replacing code that created SALs conditionally
7261 on the type of the breakpoint. Call method `create_breakpoints_sal',
7262 replacing code that created breakpoints conditionally on the type
7263 wanted.
7264 (base_breakpoint_create_sals_from_address): New function.
7265 (base_breakpoint_create_breakpoints_sal): Likewise.
7266 (base_breakpoint_decode_linespec): Likewise.
7267 (base_breakpoint_ops): Add methods
7268 `base_breakpoint_create_sals_from_address',
7269 `base_breakpoint_create_breakpoints_sal' and
7270 `base_breakpoint_decode_linespec'.
7271 (bkpt_create_sals_from_address): New function.
7272 (bkpt_create_breakpoints_sal): Likewise.
7273 (bkpt_decode_linespec): Likewise.
7274 (tracepoint_create_sals_from_address): Likewise.
7275 (tracepoint_create_breakpoints_sal): Likewise.
7276 (tracepoint_decode_linespec): Likewise.
7277 (strace_marker_create_sals_from_address): Likewise.
7278 (strace_marker_create_breakpoints_sal): Likewise.
7279 (strace_marker_decode_linespec): Likewise.
7280 (strace_marker_breakpoint_ops): New variable.
7281 (addr_string_to_sals): Remove `marker_spec'. Call method
7282 `decode_linespec' from breakpoint_ops, replacing code that decoded
7283 an address string into a SAL. Use `strace_marker_p' instead of
7284 `marker_spec'.
7285 (strace_command): Decide whether we are dealing with a static
7286 tracepoint with marker or not. Use the appropriate breakpoint_ops.
7287 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7288 * breakpoint.h (linespec_result, linespec_sals): New forward
7289 declarations.
7290 (breakpoint_ops) <create_sals_from_address>,
7291 <create_breakpoints_sal>, <decode_linespec>: New methods.
7292
4795f398
DE
72932012-01-14 Doug Evans <dje@google.com>
7294
7295 * NEWS: Update text for "maint set python print-stack".
7296 It is deprecated in gdb 7.4 and deleted in 7.5.
7297
ee5106fe
EZ
72982012-01-13 Eli Zaretskii <eliz@gnu.org>
7299
7300 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7301 including curses.h.
7302
b161e06f
JK
73032012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7304
7305 * configure: Regenerate.
7306 * config.in: Regenerate.
7307
85254831
KS
73082012-01-12 Keith Seitz <keiths@redhat.com>
7309
7310 PR mi/10586
7311 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7312 (ANONYMOUS_UNION_NAME): Define.
7313 (is_path_expr_parent): New function.
7314 (get_path_expr_parent): New function.
7315 (is_anonymous_child): New function.
7316 (create_child_with_value): If the child is anonymous and without
7317 a name, assign an object name to it.
7318 (c_describe_child): Use get_path_expr_parent to determine
7319 the parent expression.
7320 If there field represents an anonymous struct or union and
7321 has no name, set an appropriate display name and expression.
7322 (cplus_describe_child): Likewise.
7323
620fa63a
PA
73242012-01-12 Pedro Alves <palves@redhat.com>
7325
7326 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7327 available when %ebp is found to be zero (outermost).
7328
2efa2c79
AT
73292012-01-11 Andreas Tobler <andreast@fgznet.ch>
7330
7331 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7332 an internal gdb_static_assert.
7333 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7334
88e7d25d
TT
73352012-01-11 Tom Tromey <tromey@redhat.com>
7336
7337 PR gdb/9598:
7338 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7339 catch" and "catch throw".
7340
72384ba3
PH
73412012-01-11 Paul Hilfinger <hilfingr@adacore.com>
7342
7343 * blockframe.c (block_innermost_frame): Start search from selected
7344 frame, if present, or otherwise the current frame.
7345
7346 * c-exp.y (variable): Update innermost_block for
7347 'block COLONCOLON NAME' clause.
7348 * m2-exp.y (variable): Ditto.
7349 * objc-exp.y (variable): Ditto.
7350
065a711f
TT
73512012-01-10 Tom Tromey <tromey@redhat.com>
7352
7353 PR python/13199:
7354 * python/python.c (finish_python_initialization): Set sys.argv.
7355
f3f5162e
DE
73562012-01-10 Doug Evans <dje@google.com>
7357
7358 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
7359 "want_line_info". All callers updated.
7360 (dwarf_decode_lines_1): New function.
7361 (handle_DW_AT_stmt_list): Add function comment.
7362 New arg "want_line_info". All callers updated.
7363 (read_file_scope,read_type_unit_scope): Move comment from
7364 handle_DW_AT_stmt_list to here.
7365
9934703b
JK
73662012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7367
7368 Fix regression after libiberty/ update for GCC PR 6057 and others.
7369 * c-exp.y (operator) <OPERATOR DELETE>
7370 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7371 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7372 (make_builtin_type, make_name): New variable i, add gdb_assert.
7373 (operator) <OPERATOR NEW>: Update ARGS to 3.
7374 (operator) <OPERATOR DELETE>: Add trailing space.
7375 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7376 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7377 * cp-support.c (cp_canonicalize_string): Check NULL from
7378 cp_comp_to_string, call warning and return.
7379
06b9f45f
JK
73802012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7381
7382 Fix duplicate .o files after omitting libbfd.a.
7383 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7384 (SFILES): Add corelow.c.
7385 (COMMON_OBS): Add corelow.o.
7386 (ALLDEPFILES): Remove corelow.c.
7387 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7388 * config/alpha/alpha-osf3.mh: Likewise.
7389 * config/alpha/fbsd.mh: Likewise.
7390 * config/arm/nbsdaout.mh: Likewise.
7391 * config/arm/nbsdelf.mh: Likewise.
7392 * config/i386/i386gnu.mh: Likewise.
7393 * config/ia64/hpux.mh: Likewise.
7394 * config/ia64/linux.mh: Likewise.
7395 * config/m32r/linux.mh: Likewise.
7396 * config/m68k/linux.mh: Likewise.
7397 * config/mips/irix5.mh: Likewise.
7398 * config/mips/irix6.mh: Likewise.
7399 * config/pa/hpux.mh: Likewise.
7400 * config/pa/linux.mh: Likewise.
7401 * config/powerpc/aix.mh: Likewise.
7402 * config/sparc/linux.mh: Likewise.
7403 * config/sparc/linux64.mh: Likewise.
7404 * config/sparc/sol2.mh: Likewise.
7405 * config/vax/vax.mh: Likewise.
7406 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7407 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7408 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7409 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7410 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7411 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7412 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7413 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7414 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7415 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7416 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7417 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7418 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7419 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7420 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7421 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7422 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7423 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7424 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7425 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7426 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7427 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7428 corelow.o from gdb_target_obs.
7429 * corefile.c (core_target): Update the comment on NULL value.
7430 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7431 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7432 MATCHES. Drop YUMMY set on NULL.
7433 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7434 reclaim CORE_DATA if it is already NULL.
7435
34365054
DE
74362012-01-09 Doug Evans <dje@google.com>
7437
7438 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7439 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7440
696166a3
KS
74412012-01-09 Keith Seitz <keiths@redhat.com>
7442
7443 * breakpoint.c (wrapper.h): Don't include.
7444
8e7b59a5
KS
74452012-01-09 Keith Seitz <keiths@redhat.com>
7446
7447 * Makefile.in (SFILES): Remove wrapper.c.
7448 (HFILES_NO_SRCDIR): Remove wrapper.h.
7449 (COMMON_OBS): Remove wrapper.o.
7450 * cli/cli-interp.c: Don't inlude wrapper.h.
7451 * corelow.c: Likewise.
7452 (core_open): Replace gdb_target_find_new_threads with
7453 TRY_CATCH around target_find_new_threads.
7454 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7455 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7456 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7457 evaluate_expression.
7458 (varobj_set_value): Likewise for evaluate_expression and
7459 value_assign.
7460 (install_new_variable): Likewise for value_fetch_lazy.
7461 (adjust_value_for_child_access): Likewise for value_ind.
7462 (c_describe_child): Likewise for value_subscript and
7463 value_ind.
7464 (c_value_of_root): Likewise for evaluate_expression.
7465 * wrapper.c: Remove.
7466 * wrapper.h: Remove.
7467
1a4eeb98
DE
74682012-01-09 Doug Evans <dje@google.com>
7469
9ff913ba
DE
7470 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7471 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7472 "abfd" args with "section". All callers updated.
7473 Error checking code moved ...
7474 (error_check_comp_unit_head): ... here. New function.
7475 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7476 Delete arg "abfd". New arg "type_offset". All callers updated.
7477 (create_debug_types_hash_table): Simplify by using
7478 read_and_check_type_unit_head.
7479
1a4eeb98
DE
7480 * parser-defs.h (namecopy): Delete.
7481 * parse.c (namecopy, namecopy_size): Move into copy_name.
7482
2e6af8c0
JK
74832012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7484
7485 Partially fix duplicate .o files after omitting libbfd.a.
7486 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7487 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7488 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7489 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7490 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7491 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7492 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7493
9f2f828a
PA
74942012-01-09 Pedro Alves <palves@redhat.com>
7495
7496 * MAINTAINERS: Update my email address.
7497
4d72c0bc
DE
74982012-01-08 Doug Evans <dje@google.com>
7499
d467dd73
DE
7500 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7501 n_type_units. Rename type_comp_units to all_type_units.
7502 All uses updated.
7503 (add_signatured_type_cu_to_table): Renamed from
7504 add_signatured_type_cu_to_list. All callers updated.
7505
4d72c0bc
DE
7506 * gdbtypes.h (struct cplus_struct_type): Delete member
7507 nfn_fields_total. All uses removed.
7508
21b2bd31
DE
75092012-01-06 Doug Evans <dje@google.com>
7510
7511 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7512 to top of file.
7513 (dwarf2_find_comp_unit): Delete.
7514 (process_psymtab_comp_unit): Make result "void".
7515 Delete args buffer, info_ptr, buffer_size, and replace with
7516 "section". All callers updated.
7517 (dwarf2_build_psymtabs_hard): Simplify.
7518
bfd189b1
SDJ
75192012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7520 Thiago Jung Bauermann <bauerman@br.ibm.com>
7521
7522 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7523 before `struct gdb_exception'.
7524 * breakpoint.c (update_global_location_list_nothrow)
7525 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7526 * cp-abi.c (value_rtti_type): Likewise.
7527 * cp-support.c (cp_validate_operator): Likewise.
7528 * infrun.c (insert_exception_resume_breakpoint)
7529 (check_exception_resume, keep_going): Likewise.
7530 * mi-interp.c (mi_breakpoint_created)
7531 (mi_breakpoint_modified): Likewise.
7532 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7533 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7534 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7535
6b07635f
DE
75362012-01-05 Doug Evans <dje@google.com>
7537
0b30b85c
DE
7538 * dwarf2read.c (statement_prologue): Delete, unused.
7539
98714339
DE
7540 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7541 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7542
6b07635f
DE
7543 * dwarf2read.c (comp_unit_header): Delete, unused.
7544
761f4555
UW
75452012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7546
7547 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7548 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7549
2ca0b532
PA
75502012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7551
7552 * infrun.c (normal_stop): Don't skip calling the normal_stop
7553 observers if the thread was doing a multi-step, but stopped for
7554 some reason other than stepping.
7555
50aeff07
PA
75562012-01-05 Pedro Alves <alves.ped@gmail.com>
7557
7558 * cli/cli-decode.h: Add comments.
7559 (CMD_LIST_AMBIGUOUS): Moved to command.h
7560 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7561 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7562 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7563 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7564 (add_com, add_com_alias, add_info, add_info_alias)
7565 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7566 declarations.
7567 * command.h: Add and adjust comments.
7568 (CMD_LIST_AMBIGUOUS): Moved here.
7569 (help_cmd, help_cmd_list): Delete declarations.
7570
5953832c
DE
75712012-01-04 Doug Evans <dje@google.com>
7572
e5fe5e75
DE
7573 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7574 All callers updated.
7575 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7576 Replace all arguments with "per_cu". All callers updated.
7577
28dee7f5
DE
7578 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7579
23745b47
DE
7580 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7581 New arg "per_cu". All callers updated.
7582
5953832c
DE
7583 Delete #if 0'd out code.
7584 * language.c (binop_result_type): Delete.
7585 (simple_type, ordered_type, same_type, integral_type): Delete.
7586 (numeric_type, character_type, string_type, boolean_type): Delete.
7587 (float_type, structured_type): Delete.
7588 * language.h: Update.
7589
0f5b7562
TT
75902012-01-04 Tom Tromey <tromey@redhat.com>
7591
7592 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7593
78218f56
JB
75942012-01-04 Joel Brobecker <brobecker@adacore.com>
7595
7596 * corefile.c (close_exec_file): Delete.
7597 (reopen_exec_file): Remove commented out code that seems related
7598 to close_exec_file, which is being deleted here.
7599 * inferior.h (close_exec_file): Delete.
7600 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7601
0fcd72ba
JB
76022012-01-04 Joel Brobecker <brobecker@adacore.com>
7603
7604 * ada-lang.c: #include "cli/cli-utils.h".
7605 (get_selections): Use skip_spaces.
7606 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7607 (catch_ada_exception_command_split): Use skip_spaces.
7608 (ada_decode_assert_location): Likewise.
7609
1dabb4c4
JB
76102012-01-04 Joel Brobecker <brobecker@adacore.com>
7611
7612 * linespec.c (decode_line_internal): Check for C++ or Java
7613 compound constructs only if the current language is C, C++
7614 or Java.
7615
5931a2fa
JK
76162012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7617
7618 Revert:
7619 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7620 Joel Brobecker <brobecker@adacore.com>
7621 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7622 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7623 3 times.
7624 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7625 fall through into AT_ENTRY_POINT.
7626 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7627 DUMMY_ADDR with it.
7628 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7629 PPC_INSN_SIZE skip to 3 times.
7630
1a2da5ee
JB
76312012-01-04 Joel Brobecker <brobecker@adacore.com>
7632
7633 * linespec.c (add_minsym): Preserve function descriptors.
7634
8645ff69
UW
76352012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7636
7637 * breakpoint.c (all_locations_are_pending): Consider locations
7638 in program spaces executing during startup pending as well.
7639
0b302171
JB
76402012-01-04 Joel Brobecker <brobecker@adacore.com>
7641
7642 Copyright year update in most files of the GDB Project.
7643
8ba098ad
JB
76442012-01-04 Joel Brobecker <brobecker@adacore.com>
7645
7646 * copyright.sh: Delete.
7647 * copyright.py: Rewrite.
7648
09c01c30
JB
76492012-01-04 Joel Brobecker <brobecker@adacore.com>
7650
7651 * gnulib/extra/update-copyright: New file, imported from gnulib.
7652
3c36c0af
JB
76532012-01-04 Joel Brobecker <brobecker@adacore.com>
7654
7655 * README (Copyright and License Notices): New section.
7656
888fe1e1
TT
76572012-01-03 Tom Tromey <tromey@redhat.com>
7658
7659 PR python/12533:
7660 * python/py-value.c (valpy_dereference, valpy_get_address
7661 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7662 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7663 (valpy_absolute, valpy_richcompare): Free intermediate values.
7664
6e681866
JB
76652011-01-03 Joel Brobecker <brobecker@adacore.com>
7666
7667 * ada-lang.c: Reformat the copyright notice.
7668
0cd09acb
JK
76692012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7670
7671 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7672 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7673 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7674 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7675 Revert this part of:
7676 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7677 Build gdb directly from *.o files not using libgdb.a.
7678 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7679
12c3e59c
JB
76802012-01-02 Joel Brobecker <brobecker@adacore.com>
7681
7682 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7683 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7684 Reformat the copyright header.
7685
11bf1490
JK
76862012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7687
7688 Revert this part of:
7689 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7690 Remove the gdbtui binary.
7691 * gdb.c (main): Remove args.interpreter_p initialization.
7692 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7693 * main.h (struct captured_main_args): Remove interpreter_p.
7694
1fef196f
JB
76952012-01-02 Joel Brobecker <brobecker@adacore.com>
7696
7697 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7698
67827812
JB
76992012-01-02 Joel Brobecker <brobecker@adacore.com>
7700
7701 * top.c (print_gdb_version): Update copyright year.
7702
a4d0b831
YQ
77032012-01-02 Yao Qi <yao@codesourcery.com>
7704
7705 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7706
b5914469
JK
77072012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7708 Joel Brobecker <brobecker@adacore.com>
7709
7710 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7711 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7712 3 times.
7713 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7714 fall through into AT_ENTRY_POINT.
7715 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7716 DUMMY_ADDR with it.
7717 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7718 PPC_INSN_SIZE skip to 3 times.
7719
8da828f7
JK
77202012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7721
7722 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7723 the return value.
7724 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7725
8574e74b
JK
77262012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7727
7728 Build gdb directly from *.o files not using libgdb.a.
7729 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7730 (COMMON_OBS): Remove solib-target.o.
7731 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7732 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7733 (LIBGDB_OBS, libgdb.a): Move it above.
7734 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7735 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7736 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7737 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7738 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7739 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7740 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7741 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7742 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7743 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7744 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7745 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7746 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7747 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7748 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7749 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7750 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7751 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7752 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7753 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7754 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7755 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7756 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7757 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7758 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7759 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7760 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7761
217bff3e
JK
77622012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7763
7764 Remove the gdbtui binary.
7765 * .gitignore (/gdbtui): Remove.
7766 * Makefile.in (TUI): Remove.
7767 (SUBDIR_TUI_OBS): Remove tui-main.o.
7768 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7769 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7770 (tui-main.o): Remove.
7771 (all_object_files): Remove tui-main.o.
7772 * NEWS: New note for the gdbtui removal.
7773 * configure: Rebuilt.
7774 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7775 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7776 CONFIG_UNINSTALL respectively.
7777 * gdb.c (main): Remove args.interpreter_p initialization.
7778 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7779 * main.h (struct captured_main_args): Remove interpreter_p.
7780 * tui/tui-main.c: Remove.
7781
9cdd5dbd
DE
77822012-01-01 Doug Evans <dje@google.com>
7783
bb5ed363
DE
7784 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7785 (dwarf2_physname, read_import_statement): Ditto.
7786 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7787 (process_structure_scope read_subroutine_type): Ditto.
7788 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7789 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7790 (dwarf2_fetch_die_location_block): Ditto.
7791 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7792
a0f42c21
DE
7793 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7794 All callers updated.
7795 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7796 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7797 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7798
2dc860c0
DE
7799 * dwarf2read.c (load_cu): Move assert to more useful location.
7800
68dc6402
DE
7801 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7802 All callers updated.
7803
9cdd5dbd
DE
7804 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7805 (dwarf2_elf_names): Minor reformat.
7806 (dwarf2_per_cu_data): Tweak comment.
7807 (dwarf2_read_section): Fix comment.
7808 (create_all_comp_units): Fix comment.
7809 (load_full_comp_unit): Fix comment.
7810 (process_full_comp_unit): Fix comment.
7811 (read_signatured_type): Fix comment.
7812
0c10e53e 7813For older changes see ChangeLog-2011.
c906108c
SS
7814\f
7815Local Variables:
7816mode: change-log
7817left-margin: 8
7818fill-column: 74
7819version-control: never
57da7796 7820coding: utf-8
c906108c 7821End:
This page took 1.927576 seconds and 4 git commands to generate.