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