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