Fix ptype bug actually exercised in userdef.exp
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4819b3f8
PA
12013-02-14 Pedro Alves <palves@redhat.com>
2
3 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
4 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
5 lval_memory.
6
1773c82c
HAQ
72013-02-14 Pedro Alves <pedro@codesourcery.com>
8 Hafiz Abid Qadeer <abidh@codesourcery.com>
9
10 * tracepoint.h (validate_trace_state_variable_name): Declare.
11 * tracepoint.c (validate_trace_state_variable_name): New.
12 (trace_variable_command): Parse the trace state variable's name
13 without using parse_expression. Do several validations.
14 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
15 trace state variable's name with parse_expression. Validate it.
16
53778a97
YQ
172013-02-14 Yao Qi <yao@codesourcery.com>
18
19 * infcmd.c (breakpoint_proceeded): Remove it.
20
7b3ae3a6
YQ
212013-02-14 Yao Qi <yao@codesourcery.com>
22
23 * tracepoint.c (end_actions_pseudocommand): Make it static.
24 (while_stepping_pseudocommand): Likewise.
25 * tracepoint.h (end_actions_pseudocommand): Remove the
26 declaration.
27 (while_stepping_pseudocommand): Likewise.
28
64580925
YQ
292013-02-14 Yao Qi <yao@codesourcery.com>
30
31 * cli/cli-decode.c (help_cmd): Remove the declaration of
32 "cmdlist".
33 (help_all): Likewise.
34
26cb8b7c
PA
352013-02-13 Pedro Alves <palves@redhat.com>
36
37 * amd64-linux-nat.c (update_debug_registers_callback):
38 Update comment.
39 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
40 iterate_over_lwps.
41 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
42 i386_debug_reg_state.
43 (amd64_linux_new_fork): New function.
44 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
45 linux_nat_new_fork hook, and i386_forget_process as
46 linux_nat_forget_process hook.
47 * i386-linux-nat.c (update_debug_registers_callback):
48 Update comment.
a8256ea1 49 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
50 iterate_over_lwps.
51 (i386_linux_prepare_to_resume): Pass the lwp's pid to
52 i386_debug_reg_state.
53 (i386_linux_new_fork): New function.
54 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
55 linux_nat_new_fork hook, and i386_forget_process as
56 linux_nat_forget_process hook.
57 * i386-nat.c (i386_init_dregs): Delete.
58 (i386_inferior_data, struct i386_inferior_data):
59 Delete.
60 (struct i386_process_info): New.
61 (i386_process_list): New global.
62 (i386_find_process_pid, i386_add_process, i386_process_info_get):
63 New functions.
64 (i386_inferior_data_get): Delete.
65 (i386_process_info_get): New function.
66 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
67 (i386_forget_process): New function.
68 (i386_cleanup_dregs): Rewrite.
69 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
70 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
71 (i386_stopped_data_address, i386_insert_hw_breakpoint)
72 (i386_remove_hw_breakpoint): Adjust to pass the current process id
73 to i386_debug_reg_state.
74 (i386_use_watchpoints): Don't register inferior data.
75 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
76 adjust comment.
77 (i386_forget_process): Declare.
78 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
79 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
80 New static globals.
81 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
82 (add_initial_lwp): New, factored out from ...
83 (add_lwp): ... this. Don't check the number of lwps before
84 calling linux_nat_new_thread.
85 (linux_nat_iterate_watchpoint_lwps): Delete.
86 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
87 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
88 forks and vforks.
89 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
90 initial lwp.
91 (linux_nat_kill, linux_nat_mourn_inferior): Call
92 linux_nat_forget_process.
93 (linux_nat_set_new_fork, linux_nat_set_forget_process)
94 (linux_nat_forget_process): New functions.
95 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
96 type.
97 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
98 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
99 types.
100 (linux_nat_set_new_fork, linux_nat_set_forget_process)
101 (linux_nat_forget_process): New declarations.
102
103 * amd64fbsd-nat.c (super_mourn_inferior): New global.
104 (amd64fbsd_mourn_inferior): New function.
105 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
106 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
107
5befea72
MS
1082013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
109
55015247
YQ
110 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
111 Adding _().
5befea72 112
1d3ffd6b
MS
1132013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
114
115 * aarch64-linux-nat.c (debug_reg_change_callback)
116 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
117 %s and phex().
118
6eb04473
MS
1192013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
120
121 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
122 with LONGEST.
123
a016fc87
HAQ
1242013-02-13 Pedro Alves <palves@redhat.com>
125 Hafiz Abid Qadeer <abidh@codesourcery.com>
126
127 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
128
e234dfaf
TT
1292013-02-12 Tom Tromey <tromey@redhat.com>
130
131 PR symtab/11464:
132 * c-exp.y (lex_one_token): Initialize other fields of yylval on
133 NAME return.
134 (classify_inner_name): Remove 'first_name' argument, add
135 'context'. Remove unused variable.
136 (yylex): Explicitly maintain the context type. Exit loop earlier
137 if NAME result is seen.
138
0b1afbb3
PA
1392013-02-12 Pedro Alves <palves@redhat.com>
140
141 * amd64-darwin-tdep.c: Add (C) after Copyright.
142 * cli/cli-cmds.h: Ditto.
143 * cli/cli-decode.c: Ditto.
144 * cli/cli-decode.h: Ditto.
145 * cli/cli-dump.c: Ditto.
146 * cli/cli-dump.h: Ditto.
147 * cli/cli-interp.c: Ditto.
148 * cli/cli-logging.c: Ditto.
149 * cli/cli-script.c: Ditto.
150 * cli/cli-script.h: Ditto.
151 * cli/cli-setshow.c: Ditto.
152 * cli/cli-setshow.h: Ditto.
153 * cli/cli-utils.c: Ditto.
154 * cli/cli-utils.h: Ditto.
155 * config/alpha/nm-osf3.h: Ditto.
156 * config/djgpp/djconfig.sh: Ditto.
157 * config/i386/nm-fbsd.h: Ditto.
158 * config/i386/nm-i386gnu.h: Ditto.
159 * config/nm-linux.h: Ditto.
160 * config/nm-nto.h: Ditto.
161 * config/rs6000/nm-rs6000.h: Ditto.
162 * config/sparc/nm-sol2.h: Ditto.
163 * darwin-nat-info.c: Ditto.
164 * dfp.c: Ditto.
165 * dfp.h: Ditto.
166 * gdb-demangle.h: Ditto.
167 * i386-darwin-nat.c: Ditto.
168 * i386-darwin-tdep.c: Ditto.
169 * linux-fork.h: Ditto.
170 * m32c-tdep.c: Ditto.
171 * microblaze-linux-tdep.c: Ditto.
172 * microblaze-rom.c: Ditto.
173 * microblaze-tdep.c: Ditto.
174 * microblaze-tdep.h: Ditto.
175 * mips-linux-tdep.h: Ditto.
176 * ppc-ravenscar-thread.c: Ditto.
177 * ppc-ravenscar-thread.h: Ditto.
178 * prologue-value.c: Ditto.
179 * prologue-value.h: Ditto.
180 * ravenscar-thread.c: Ditto.
181 * ravenscar-thread.h: Ditto.
182 * sparc-ravenscar-thread.c: Ditto.
183 * sparc-ravenscar-thread.h: Ditto.
184 * tilegx-linux-tdep.c: Ditto.
185 * unwind_stop_reasons.def: Ditto.
186 * windows-nat.h: Ditto.
187 * xtensa-linux-tdep.c: Ditto.
188 * xtensa-xtregs.c: Ditto.
189 * regformats/regdat.sh: Ditto.
190 * regformats/regdef.h: Ditto.
191
6c01dd94
PA
1922013-02-12 Pedro Alves <palves@redhat.com>
193
194 * break-catch-sig.c: Update copyright years.
195
b65a2bd9
SCR
1962013-02-11 Siva Chandra Reddy <sivachandra@google.com>
197
198 Add support for a destructor for ui_out data and use it to
199 provide a ui_out destructor.
200 * ui-out.h: Declare the new ui_out destructor.
201 (ui_out_impl): Add a field for data destructor in ui_out_impl.
202 * ui-out.c (default_data_destroy): Add a default data destructor
203 which does nothing.
204 (default_ui_out_impl): Set the new data_destroy field to
205 default_data_destroy
206 (uo_data_destroy): Local function which invokes the data
207 destructor if present.
208 (clear_table): Local function which clears the table data of a
209 ui_out object.
210 (ui_out_destroy): Public function which frees a ui_out object.
211 (ui_out_table_end): Use the new clear_table function.
212 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
213 NULL.
214 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
215 to NULL.
216
c2792f5a
DE
2172013-02-11 Doug Evans <dje@google.com>
218
219 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
220 (printf_decfloat): New function. Broken out from ui_printf.
221 Remove unnecessary code to shift the entire format string down.
222 (printf_pointer): New function.
223 (ui_printf): Code to print C strings, wide C strings, decfloats,
224 and pointers moved to separate functions.
225
d9e98382
SDJ
2262013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
227
228 * valops.c (value_assign): Handling bitfield offset in
229 `lval_internalvar_component' case.
230
4ff3ce77
DE
2312013-02-08 Doug Evans <dje@google.com>
232
233 * common/format.c (parse_format_string): Fix whitespace.
234
901900c4
MGD
2352013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
236
237 * stack.c (return_command): Work around uninitialized variable
238 warning.
239
b5dbc8d4
YZ
2402013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
241
242 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
243 number of the registers from 36 to 34.
244
51d66578
MS
2452013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
246
247 * NEWS: Mention new AArch64 native and target support.
248
176b1c95
MS
2492013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
250
251 * MAINTAINERS (Write After Approval): Add myself.
252
9d19df75
MS
2532013-02-08 Jim MacArthur <jim.macarthur@arm.com>
254 Marcus Shawcroft <marcus.shawcroft@arm.com>
255 Nigel Stephens <nigel.stephens@arm.com>
256 Yufeng Zhang <yufeng.zhang@arm.com>
257
258 * aarch64-linux-nat.c: New file.
259 * config/aarch64/linux.mh: New file.
260 * configure.host: Add AArch64.
261 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
262
7e1e0340
DE
2632013-02-07 Doug Evans <dje@google.com>
264
265 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
266 disassemble command.
267
45e25a36
MS
2682013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
269
270 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
271 set_gdbarch_fetch_tls_load_module_address.
272
bbfdfe1c
DM
2732013-02-06 David S. Miller <davem@davemloft.net>
274
275 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
276 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
277 * value.c (struct_return_convention): New function.
278 (using_struct_return): Implement in terms of struct_return_convention.
279 * value.h (struct_return_convention): Declare.
280 * stack.c (return_command): Allow successful overriding of the return
281 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
282
bc9abe4a
TT
2832013-02-06 Tom Tromey <tromey@redhat.com>
284
285 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
286 outside of TRY_CATCH.
287
134a2066
YQ
2882013-02-06 Yao Qi <yao@codesourcery.com>
289
290 * mi/mi-interp.c: Include "tracepoint.h".
291 (mi_tsv_modified): Declare.
292 (mi_tsv_created, mi_tsv_deleted): Update declaration.
293 (mi_interpreter_init): Call observer_attach_tsv_modified.
294 (mi_tsv_modified): New.
295 (mi_tsv_created, mi_tsv_deleted): Update.
296 * tracepoint.c (trace_variable_command): Call
297 observer_notify_tsv_modified if the initial value of tsv is
298 changed.
299 (delete_trace_state_variable): Call
300 observer_notify_tsv_deleted earlier.
301 (trace_variable_command): Caller update.
302 (create_tsv_from_upload): Likewise.
303 * observer.sh: Declare "struct trace_state_variable".
304
305 * NEWS: Mention the new MI notification "=tsv-modified".
306
59be2b6a
DE
3072013-02-05 Doug Evans <dje@google.com>
308
309 * completer.c (location_completer): Fix typo in comment.
310
d30113d4
JK
3112013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
312
313 * breakpoint.c (add_location_to_breakpoint): Insert the location with
314 ADDRESS sorted.
315
14ac654f
MS
3162013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
317
318 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
319 Refactor if statement to avoid trailing || operator.
320
543bf33d
AT
3212013-02-05 Andreas Tobler <andreast@fgznet.ch>
322
323 * NEWS: Add PowerPC FreeBSD as a new native configuration.
324
dc18f110
AT
3252013-02-04 Andreas Tobler <andreast@fgznet.ch>
326
327 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
328 * configure.host: Add powerpc*-*-freebsd* target.
329 * configure.tgt: Add target info for powerpc*-*-freebsd*.
330 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
331 * config/powerpc/fbsd.mh: New file.
332
b3ac9c77
SDJ
3332013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
334 Denys Vlasenko <dvlasenk@redhat.com>
335 Pedro Alves <palves@redhat.com>
336
337 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
338 (struct elf_internal_linux_prpsinfo): Forward declare.
339 * gdbarch.h, gdbarch.c: Regenerate.
340 * linux-tdep.c: Include `cli/cli-utils.h'.
341 (linux_fill_prpsinfo): New function.
342 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
343 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
344 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
345 depending on gdbarch pointer bitness.
346 * ppc-linux-tdep.c: Include elf-bfd.h.
347 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
348 on 32-bit.
349
176eb98c
MS
3502013-02-04 Jim MacArthur <jim.macarthur@arm.com>
351 Marcus Shawcroft <marcus.shawcroft@arm.com>
352 Nigel Stephens <nigel.stephens@arm.com>
353 Yufeng Zhang <yufeng.zhang@arm.com>
354
355 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
356
cf0dbd6f
MS
3572013-02-04 Jim MacArthur <jim.macarthur@arm.com>
358 Marcus Shawcroft <marcus.shawcroft@arm.com>
359 Nigel Stephens <nigel.stephens@arm.com>
360 Yufeng Zhang <yufeng.zhang@arm.com>
361
362 * aarch64-newlib-tdep.c: New file.
363 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
364 aarch64*-*-elf.
365 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
366 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
367 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
368 * osabi.c (gdb_osabi_names): Add "Newlib".
369
1ae3db19
MS
3702013-02-04 Jim MacArthur <jim.macarthur@arm.com>
371 Marcus Shawcroft <marcus.shawcroft@arm.com>
372 Nigel Stephens <nigel.stephens@arm.com>
373 Yufeng Zhang <yufeng.zhang@arm.com>
374
375 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
376 (ALLDEPFILES): Add aarch64-linux-tdep.c.
377 * aarch64-linux-tdep.c: New file.
378 * aarch64-linux-tdep.h: New file.
379 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
380 * configure.tgt: Add aarch64-none-linux-gnu.
381
07b287a0
MS
3822013-02-04 Jim MacArthur <jim.macarthur@arm.com>
383 Marcus Shawcroft <marcus.shawcroft@arm.com>
384 Nigel Stephens <nigel.stephens@arm.com>
385 Yufeng Zhang <yufeng.zhang@arm.com>
386
387 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
388 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
389 (ALLDEPFILES): Add aarch64-tdep.c.
390 * aarch64-tdep.c: New file.
391 * aarch64-tdep.h: New file.
392 * configure.tgt: Add AArch64.
393 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
394 (aarch64-expedite): New definition.
395 * features/aarch64-core.xml: New file.
396 * features/aarch64-fpu.xml: New file.
397 * features/aarch64-without-fpu.c: New file (generated).
398 * features/aarch64-without-fpu.xml: New file.
399 * features/aarch64.c: New file (generated).
400 * features/aarch64.xml: New file.
401 * regformats/aarch64-without-fpu.dat: New file (generated).
402 * regformats/aarch64.dat: New file (generated).
403
0f1b18ab
JK
4042013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
405
406 * contrib/expect-read1.c: New file.
407 * contrib/expect-read1.sh: New file.
408
233d95b5
JK
4092013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
410
411 * dwarf2read.c (file_file_name): New function with code from
412 file_full_name.
413 (file_full_name): Move most of the code to file_file_name.
414 (macro_start_file): Rename variable full_name to file_name and use
415 file_file_name for it. Add comp_dir parameter to new_macro_table.
416 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
417 macro_source_file->filename access by macro_source_fullname call.
418 * macroscope.c (_initialize_macroscope): Update the new_macro_table
419 caller.
420 * macrotab.c (struct macro_table): New field comp_dir.
421 (macro_include): New variables link_fullname and source_fullname.
422 Replace any macro_source_file->filename access by macro_source_fullname
423 call.
424 (macro_lookup_inclusion): Remove the partial filenames checking code.
425 (check_for_redefinition): New variables source_fullname and
426 found_key_fullname. Replace any macro_source_file->filename access by
427 macro_source_fullname call.
428 (macro_undef): New variables source_fullname and key_fullname. Replace
429 any macro_source_file->filename access by macro_source_fullname call.
430 (macro_lookup_definition): New variables retval and source_fullname.
431 Replace any macro_source_file->filename access by macro_source_fullname
432 call.
433 (foreach_macro): New variable key_fullname. Replace any
434 macro_source_file->filename access by macro_source_fullname call.
435 (foreach_macro_in_scope): New variable datum_fullname. Replace any
436 macro_source_file->filename access by macro_source_fullname call.
437 (new_macro_table): Add parameter comp_dir. Initialize T with it.
438 (macro_source_fullname): New function.
439 * macrotab.h (struct macro_source_file): Extent the filename field
440 comment.
441 (new_macro_table): New parameter comp_dir, add a comment for it.
442 (macro_source_fullname): new declaration.
443
da235a7c
JK
4442013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
445
446 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
447 this_real_name to outer block. Use it also for
448 compare_filenames_for_search.
449 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
450 with dw2_get_real_path for file_matcher, considering also
451 BASENAMES_MAY_DIFFER.
452 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
453
fbd9ab74
JK
4542013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
455
456 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
457 to the file_matcher parameter. Pass 0 to it.
458 (dwarf2_create_include_psymtab): Copy also DIRNAME.
459 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
460 NULL psymtab_to_fullname result.
461 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
462 an expected filename instead.
463 (expand_symtabs_matching_via_partial): Add basenames parameter to the
464 file_matcher parameter. Call also psymtab_to_fullname, after newly
465 considering BASENAMES_MAY_DIFFER.
466 * source.c (rewrite_source_path): Remove static.
467 * source.h (rewrite_source_path): New declaration.
468 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
469 the expand_symtabs_matching field. Comment it.
470 * symtab.c (file_matches): New function comment. Add parameter
471 basenames, implement it.
472 (search_symbols_file_matches): Add basenames parameter. Update the
473 file_matches caller.
474 (search_symbols): Match FILES also against symtab_to_fullname.
475 Optimize it for BASENAMES_MAY_DIFFER.
476
56d397a3
JK
4772013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
478
479 * source.c (print_source_lines_base): Print for TUI also "fullname".
480 * tui/tui-data.c (init_content_element): Change tui_locator_element
481 field to full_name.
482 * tui/tui-data.h (struct tui_locator_element): Likewise.
483 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
484 tui_update_locator_filename calls to tui_update_locator_fullname.
485 Replace symtab->filename refererence by symtab_to_fullname call.
486 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
487 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
488 field to full_name. Replace symtab->filename refererence by
489 symtab_to_fullname call.
490 (tui_show_symtab_source): Rename parameter to fullname. Change
491 tui_locator_element field to full_name.
492 * tui/tui-stack.c: Include source.h.
493 (tui_set_locator_filename): Rename the declaration to ...
494 (tui_set_locator_fullname): ... here. Rename its parameter to
495 fullname, updates its comment.
496 (tui_set_locator_info): Rename its parameter to fullname.
497 (tui_set_locator_filename): Rename the definition to ...
498 (tui_set_locator_fullname): ... here. Rename its parameter to
499 fullname, updates its comment. Change tui_locator_element field to
500 full_name.
501 (tui_set_locator_info): Rename its parameter to fullname.
502 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
503 (tui_update_locator_filename): Rename to ...
504 (tui_update_locator_fullname): ... here. Rename callee to
505 tui_set_locator_fullname.
506 (tui_show_frame_info): Replace symtab->filename refererence by
507 symtab_to_fullname call.
508 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
509 (tui_update_locator_fullname): ... here.
510 * tui/tui-winsource.c (tui_display_main): Rename the callee to
511 tui_update_locator_fullname. Replace symtab->filename refererence by
512 symtab_to_fullname call.
513 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
514 Rename the callee to tui_update_locator_fullname.
515 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
516
05cba821
JK
5172013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
518
519 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
520 by symtab_to_filename_for_display calls.
521 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
522 (clear_command): New variable sal_fullname, initialize it. Replace
523 compare_filenames_for_search by filename_cmp with sal_fullname.
524 (say_where, update_static_tracepoint): Replace symtab->filename
525 refererences by symtab_to_filename_for_display calls.
526 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
527 Likewise.
528 * dwarf2read.c: Include source.h.
529 (fixup_go_packaging): Replace symtab->filename refererences by
530 symtab_to_filename_for_display calls.
531 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
532 Replace symtab->filename refererences by symtab_to_filename_for_display
533 calls.
534 (create_sals_line_offset, convert_linespec_to_sals): New variable
535 fullname, initialize it, replace symtab->filename reference by the
536 variable.
537 * linux-fork.c: Include source.h.
538 (info_checkpoints_command): Replace symtab->filename refererences by
539 symtab_to_filename_for_display calls.
540 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
541 by symtab_to_filename_for_display calls.
542 * mdebugread.c: Include source.h.
543 (psymtab_to_symtab_1): Replace symtab->filename refererences by
544 symtab_to_filename_for_display calls.
545 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
546 (mi_cmd_file_list_exec_source_files): Likewise.
547 * printcmd.c: Include source.h.
548 (build_address_symbolic): Replace symtab->filename refererences by
549 symtab_to_filename_for_display calls.
550 * psymtab.c (partial_map_symtabs_matching_filename)
551 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
552 with psymtab_to_fullname.
553 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
554 by symtab_to_filename_for_display calls.
555 (stpy_get_filename): New variable filename, initialize it, use instead
556 of symtab->filename refererences.
557 (salpy_str): Make variable filename const char *. Replace
558 symtab->filename refererences by symtab_to_filename_for_display calls.
559 * skip.c: Include source.h and filenames.h.
560 (skip_file_command): Remove const from the symtab variable. Replace
561 symtab->filename refererences by symtab_to_fullname call.
562 (function_name_is_marked_for_skip): New variables searched_for_fullname
563 and fullname. Use them to search also with symtab's fullname.
564 * source.c (find_source_lines): Replace symtab->filename refererences
565 by symtab_to_filename_for_display calls.
566 (print_source_lines_base): New variable filename, use it instead of
567 symtab->filename. Replace symtab->filename refererences by
568 symtab_to_filename_for_display calls.
569 (line_info, forward_search_command): Replace symtab->filename
570 refererences by symtab_to_filename_for_display calls.
571 (reverse_search_command): Replace symtab->filename refererences by
572 symtab_to_filename_for_display calls. New variable filename for it.
573 * stack.c (frame_info): Likewise.
574 * symmisc.c: Include source.h.
575 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
576 (maintenance_info_symtabs): Replace symtab->filename refererences by
577 symtab_to_filename_for_display calls.
578 * symtab.c (iterate_over_some_symtabs): Call
579 compare_filenames_for_search also with symtab_to_fullname.
580 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
581 symtab->filename refererences by symtab_to_filename_for_display calls.
582 (find_line_symtab): Replace symtab->filename refererences by
583 symtab_to_filename_for_display calls.
584 (file_matches): Replace filename_cmp by compare_filenames_for_search.
585 (print_symbol_info): Make the last parameter const char *. New
586 variable s_filename. Use it in the function.
587 (symtab_symbol_info): Make the last_filename variable const char *.
588 Replace symtab->filename refererences by symtab_to_filename_for_display
589 calls.
590 (rbreak_command): New variable fullname. Use it. Replace
591 symtab->filename refererence by symtab_to_filename_for_display call.
592 * tracepoint.c (set_traceframe_context, trace_find_line_command)
593 (print_one_static_tracepoint_marker): Replace symtab->filename
594 refererences by symtab_to_filename_for_display calls.
595 * tui/tui-source.c (tui_set_source_content): New variables filename and
596 s_filename. Replace symtab->filename refererences by this variable.
597 Replace other symtab->filename refererences by
598 symtab_to_filename_for_display calls.
599
1b56eb55
JK
6002013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
601 Jan Kratochvil <jan.kratochvil@redhat.com>
602
603 Add a new variable that controls a way in which filenames are
604 displayed.
605 * NEWS (set filename-display): New entry.
606 * source.c (filename_display_basename, filename_display_relative)
607 (filename_display_absolute, filename_display_kind_names)
608 (filename_display_string, show_filename_display_string)
609 (symtab_to_filename_for_display): New.
610 (_initialize_source): Added initialization of 'filename-display'
611 variable.
612 * source.h (symtab_to_filename_for_display): Added declaration.
613 * stack.c (print_frame): Added new variable and calling of a new
614 function and condition with this variable. Changed third argument of
615 calling of a function.
616
aa079c93
JK
6172013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
618
619 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
620 Rename field reference filename to fullname.
621 * tui/tui-data.h (struct tui_source_info): Rename field filename to
622 fullname. New comment for it.
623 * tui/tui-source.c (tui_set_source_content): Rename field reference
624 filename to fullname. Initialize field by symtab_to_fullname now.
625 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
626 reference filename to fullname. Use symtab_to_fullname during
627 comparison.
628
652a8996
JK
6292013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
630
631 Code cleanup.
632 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
633 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
634 filename to fullname. Rename variable this_name to this_fullname.
635 Lowercase FILENAME_CMP call.
636 (dw2_find_symbol_file): New comment for the returned string.
637 (dwarf2_gdb_index_functions): Rename the function to
638 dw2_expand_symtabs_with_fullname.
639 * psymtab.c (read_psymtabs_with_filename): Rename to ...
640 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
641 fullname.
642 (psym_functions): Rename the function to read_psymtabs_with_fullname.
643 * symfile.h (struct quick_symbol_functions): Rename field
644 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
645 parameter filename to fullname. Document returned string meaning for
646 find_symbol_file.
647 * symtab.c (find_line_symtab): Rename the called function to
648 expand_symtabs_with_fullname.
649
af529f8f
JK
6502013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
651
652 Code cleanup.
653 * breakpoint.c (clear_command): Remove variable is_abs, unify the
654 call of filename_cmp with compare_filenames_for_search.
655 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
656 is_abs, unify the call of FILENAME_CMP with
657 compare_filenames_for_search. New gdb_asserts for real_path and name.
658 Unify the call of compare_filenames_for_search with FILENAME_CMP.
659 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
660 * symfile.h (struct quick_symbol_functions): Extend the comment for
661 map_symtabs_matching_filename.
662 * symtab.c (compare_filenames_for_search): Remove the function comment
663 relative path requirement. Handle absolute filenames, with a comment.
664 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
665 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
666 real_path and name. Unify the call of compare_filenames_for_search
667 with FILENAME_CMP.
668 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
669
2f202fde
JK
6702013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
671
672 Code cleanup.
673 * breakpoint.c (print_breakpoint_location): Replace bp_location field
674 source_file references by symtab field references. Remove variables
675 sal and fullname.
676 (momentary_breakpoint_from_master, add_location_to_breakpoint):
677 (clear_command, say_where): Replace bp_location field source_file
678 references by symtab field references.
679 (bp_location_dtor): Remove the source_file reference.
680 (update_static_tracepoint): Replace bp_location field source_file
681 references by symtab field references.
682 (breakpoint_free_objfile): New function.
683 * breakpoint.h (struct bp_location): Extend the comment for line_number.
684 Replace the field source_file by field symtab, extend its comment.
685 (breakpoint_free_objfile): New declaration.
686 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
687 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
688 field source_file references by symtab field references.
689
f5b95b50
JK
6902013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
691
692 Replace xfullpath calls by gdb_realpath calls.
693 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
694 function comment.
695 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
696 Remove it from the iterate_over_some_symtabs call.
697 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
698 Remove it from the dw2_map_expand_apply calls, remove a block handling
699 it.
700 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
701 Remove it from the iterate_over_some_symtabs call.
702 (partial_map_symtabs_matching_filename): Remove parameter full_path.
703 Remove it from the partial_map_expand_apply calls, remove a block
704 handling it. Drop gdb_realpath call and cleanups from the real_path
705 handling.
706 * source.c (openp): Drop the comment part about xfullpath. Replace
707 xfullpath calls by gdb_realpath calls.
708 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
709 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
710 from method map_symtabs_matching_filename and its comment.
711 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
712 gdb_realpath call.
713 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
714 remove it also from the function comment, remove a block handling it.
715 Drop gdb_realpath call and cleanups from the real_path handling.
716 (iterate_over_symtabs): Drop variable full_path and its use.
717 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
718 * utils.c (xfullpath): Remove.
719 * utils.h (xfullpath): Remove.
720
d78489bf
AT
7212013-02-01 Andreas Tobler <andreast@fgznet.ch>
722
723 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
724 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
725 (ALLDEPFILES): Add ppc64-tdep.c.
726 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
727 ppc64-tdep.o to gdb_target_obs.
728 * ppc64-tdep.h: New file.
729 * ppc64-tdep.c: New file.
730 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
731 ppc-linux-tdep.c to here.
732 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
733 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
734 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
735 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
736 from ppc-linux-tdep.c to here.
737 (ppc64_convert_from_func_ptr_addr): Rename from
738 ppc64_linux_convert_from_func_ptr_addr to
739 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
740 here.
741 * rs6000-tdep.c:
742 (read_insn): Move from ppc-linux-tdep.c to here.
743 (insns_match_pattern, insn_d_field, insn_ds_field): Move
744 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
745 * ppc-linux-tdep.c: Include ppc64-tdep.h.
746 Removed above functions.
747 (ppc_linux_init_abi): Adjust.
748
8db60374
AR
7492013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
750
751 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
752
f2e5f4ce
AR
7532013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
754
755 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
756
c1f7d745
PA
7572013-02-01 Pedro Alves <palves@redhat.com>
758
759 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
760 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
761
8a92335b
JK
7622013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
763
764 * elfread.c (elf_symfile_read): Limit separate debug info additions to
765 files with no separate debug info.
766 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
767 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
768 only for files with no separate debug info.
769
8eacb197
TT
7702013-01-31 Tom Tromey <tromey@redhat.com>
771
772 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
773 change type.
774 (struct jit_program_space_data): Rename from jit_inferior_data.
775 Update comments.
776 (get_jit_program_space_data): Rename from get_jit_inferior_data.
777 Change return type. Attach data to program space.
778 (jit_program_space_data_cleanup): Rename from
779 jit_inferior_data_cleanup; change argument type.
780 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
781 change type.
782 (jit_register_code): Update.
783 (jit_update_inferior_cache): Remove.
784 (jit_breakpoint_deleted): Get jit data from the location's program
785 space.
786 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
787 'ps_data', change type.
788 (jit_inferior_init, jit_breakpoint_re_set_internal)
789 (jit_event_handler): Update.
790 (free_objfile_data): Get data from objfile's program space.
791 (_initialize_jit): Update.
792
f25c0135
TT
7932013-01-31 Tom Tromey <tromey@redhat.com>
794
795 PR gdb/13987:
796 * jit.c (struct jit_inferior_data) <cached_code_address,
797 jit_breakpoint>: New fields.
798 (jit_breakpoint_re_set_internal): Fix logging. Only create
799 breakpoint if cached address has changed.
800 (jit_update_inferior_cache, jit_breakpoint_deleted): New
801 functions.
802 (_initialize_jit): Register breakpoint deleted observer.
803
974a734b
AR
8042013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
805
806 * infrun.c (handle_syscall_event): Remove unused gdbarch.
807 (save_infcall_suspend_state): Ifdef out unused inf.
808 (restore_infcall_suspend_state): Ifdef out unused inf.
809 * jit.c (jit_register_code): Remove unused i, b, inf_data.
810 (jit_frame_sniffer): Remove unused inf_data.
811
df54f8eb
AR
8122013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
813
814 * c-exp.y (classify_inner_name): Remove unused type.
815 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
816 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
817 need_escape.
818 (c_get_string): Remove unused kind.
819 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
820
5799c0b9
AR
8212013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
822
823 * charset.c (intermediate_encoding): Remove unused i.
824 * completer.c (signal_completer): Remove unused i.
825 * continuations.c (discard_my_continuations_1): Remove unused
826 continuation_ptr.
827 * corelow.c (core_close): Remove unuseD name.
828 (get_core_siginfo): Remove unused pid.
829 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
830 i, cps.
831 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
832 (loclist_describe_location): Remove unused first.
833 * event-top.c (command_line_handler): Remove unused got_eof.
834 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
835 (resize_section_table): Remove unused old_value.
836 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
837 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
838 * i386-tdep.c (i386_process_record): Remove unused rex.
839 * infcmd.c (get_return_value): Remove unused uiout.
840 * jv-lang.c (type_from_class): Remove unused is_array.
841 * jv-valprint.c (java_val_print): Remove unused i.
842 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
843 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
844 * m2-typeprint.c (m2_print_type): Remove unused code.
845 * macroexp.c (get_character_constant): Remove unused body_start.
846 (macro_stringify): Remove unused result.
847 * objc-lang.c (find_methods): Remove unused gdbarch.
848 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
849 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
850 * stack.c (print_frame_args): Remove unused summary.
851 * thread.c (thread_apply_command): Remove unused p.
852 * valarith.c (value_x_unop): Remove unused mangle_ptr.
853 * valops.c (search_struct_method): Remove unused skip.
854 * valprint.c (generic_val_print): Remove unused byte_order.
855 * varobj.c (varobj_update): Remove unused changed.
856 * cli/cli-cmds.c (complete_command): Remove unused next_item.
857 (alias_command): Remove unused c.
858 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
859 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
860 format.
861 (mi_cmd_data_write_memory): Remove unused word_format.
862 (mi_cmd_data_write_memory_bytes): Remove unused r.
863 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
864 p_start, p_end.
865 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
866 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
867 line_width.
868
c656bca5
AR
8692013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
870
871 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
872 * symtab.c (iterate_over_symtabs): Remove unused s.
873 (find_pc_sect_symtab): Remove unused pspAce.
874 (find_pc_sect_line): Remove unused alt_symtab.
875 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
876 (completion_list_add_name): Remove unused newsize.
877
7078baeb
TT
8782013-01-31 Tom Tromey <tromey@redhat.com>
879
880 PR c++/14998:
881 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
882 TYPE_CODE_FUNC.
883
c2e8b827
AR
8842013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
885
886 * target.c (target_read_string): Remove unused origlen.
887
0e43993a
AR
8882013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
889
890 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
891 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
892 * ax-general.c (ax_print): Remove unused is_float.
893 * blockframe.c (block_innermost_frame): Remove unused start, end.
894 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
895
765a97ab
AR
8962013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
897
898 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
899 (svr4_read_so_list): Remove unused lmo.
900 * solib-target.c (solib_target_relocate_section_addresses): Remove
901 unused flags.
902
a99dad3d
TT
9032013-01-30 Tom Tromey <tromey@redhat.com>
904
905 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
906
3bff1ecd
TT
9072013-01-30 Tom Tromey <tromey@redhat.com>
908
909 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
910 * utils.c (gnu_debuglink_crc32): Remove.
911 * utils.h (gnu_debuglink_crc32): Don't declare.
912
7d455152
TT
9132013-01-30 Tom Tromey <tromey@redhat.com>
914
915 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
916 (read_structure_type, read_enumeration_type): Remove cast.
917
abee88f2
TT
9182013-01-30 Tom Tromey <tromey@redhat.com>
919
920 * dwarf2read.c (read_namespace_type): Remove cast.
921 (read_typedef): Likewise.
922
8d9878a4
TT
9232013-01-29 Tom Tromey <tromey@redhat.com>
924
925 * dwarf2read.c (free_dwo_file): Remove assert.
926
a543d2a9
TT
9272013-01-29 Tom Tromey <tromey@redhat.com>
928
929 * value.c (deprecated_set_value_modifiable): Remove.
930 * value.h (deprecated_set_value_modifiable): Remove.
931
bed911e5
DE
9322013-01-28 Doug Evans <dje@google.com>
933
934 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
935 to addresses from dwo files.
936
28c64fc2
SCR
9372013-01-25 Siva Chandra Reddy <sivachandra@google.com>
938
939 * valops.c (find_overload_match): Remove unused argument 'lax'.
940 * value.h: Remove unused argument 'lax' from the declaration of
941 find_overload_match.
942 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
943 to find_overload_match.
944 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
945 argument to find_overload_match.
946
4d4ec4e5
TT
9472013-01-25 Tom Tromey <tromey@redhat.com>
948
949 * dwarf2read.c (processing_has_namespace_info): Remove.
950 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
951 (process_die, read_func_scope, dwarf2_start_symtab)
952 (new_symbol_full): Update.
953
195a3f6c
TT
9542013-01-25 Tom Tromey <tromey@redhat.com>
955
956 * cp-namespace.c (cp_set_block_scope): Remove.
957 * cp-support.h (cp_set_block_scope): Remove.
958 * dbxread.c: Include block.h.
959 (cp_set_block_scope): New function.
960 (process_one_symbol): Update.
961 * dwarf2read.c (read_func_scope): Use block_set_scope.
962
8ba0730a
PA
9632013-01-25 Pedro Alves <palves@redhat.com>
964
965 * remote.c (add_current_inferior_and_thread): Tweak comment.
966
12aaed36
TT
9672013-01-25 Tom Tromey <tromey@redhat.com>
968
969 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
970 (cp_add_using_directive): Add 'copy_names' argument.
971 * cp-support.h (cp_add_using_directive): Update.
972 (struct using_direct) <import_src, import_dest, alias,
973 declaration>: Now const.
974 * dwarf2read.c (read_import_statement): Use obconcat.
975 Don't copy names passed to cp_add_using_directive.
976
7fc75ca7
TT
9772013-01-25 Tom Tromey <tromey@redhat.com>
978
979 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
980
3405876a
PA
9812013-01-25 Pedro Alves <palves@redhat.com>
982
983 * remote.c (stop_reply_extract_thread): New.
984 (add_current_inferior_and_thread): New parameter 'wait_status'.
985 Handle it.
986 (remote_start_remote): Pass wait status to
987 add_current_inferior_and_thread.
988 (extended_remote_run): Update comment.
989 (extended_remote_create_inferior_1): Pass wait status to
990 add_current_inferior_and_thread.
991
8954db33
AB
9922013-01-25 Andrew Burgess <aburgess@broadcom.com>
993 Ulrich Weigand <uweigand@de.ibm.com>
994
995 * valarith.c (value_vector_widen): New function for replicating a
996 scalar into a vector.
997 (value_binop): Use value_vector_widen to widen scalar to vector
998 rather than casting, this better matches gcc C behaviour.
999 * valops.c (value_casst): Update logic for casting between vector
1000 types, and for casting from scalar to vector, try to match gcc C
1001 behaviour.
1002 * value.h (value_vector_widen): Declare.
1003 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1004 function, handle special case for casting scalar to vector.
1005 (opencl_relop): Use opencl_value_cast.
1006 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1007 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1008 in order to use opencl_value_cast.
1009
843b20dc
YQ
10102013-01-25 Yao Qi <yao@codesourcery.com>
1011
1012 * event-loop.c: Include "queue.h".
1013 (gdb_event_p): New typedef.
1014 (DECLARE_QUEUE_P): Use.
1015 (DEFINE_QUEUE_P): Use.
1016 (async_queue_event): Remove.
1017 (gdb_event_xfree): New.
1018 (initialize_event_loop): New.
1019 (process_event): Use QUEUE macros.
1020 (event_queue): Remove.
1021 (gdb_wait_for_event): Caller update.
1022 (check_async_event_handlers): Likewise.
1023 (poll_timers): Likewise.
1024 * event-loop.h (initialize_event_loop): Declare.
1025 * event-loop.c (gdb_event_xfree): New.
1026 * top.c (gdb_init): Call initialize_event_loop.
1027
20ad8856
YQ
10282013-01-25 Yao Qi <yao@codesourcery.com>
1029
1030 * event-loop.c (async_queue_event): Remove one parameter
1031 'position'. Remove code handling 'position' == TAIL.
1032 (gdb_wait_for_event): Caller update.
1033 (check_async_event_handlers): Caller update.
1034 (poll_timers): Caller update.
1035 * event-loop.h (enum queue_position): Remove.
1036
3bbbe775
MK
10372013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1038
1039 * MAINTAINERS: Update my email.
1040
a87d9ac4
YQ
10412013-01-25 Yao Qi <yao@codesourcery.com>
1042
1043 * main.c (print_gdb_help): Remove "--epoch" from the help
1044 message.
1045
2077afdd
TD
10462013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1047
1048 * symtab.c (skip_prologue_using_sal): Consider a file
1049 change the same as an increased line number
1050
63da4037
TD
10512013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1052
1053 * MAINTAINERS (Write After Approval): Add myself to the list.
1054
45e6c716
TT
10552013-01-24 Tom Tromey <tromey@redhat.com>
1056
1057 * ada-lang.h (ada_decode_symbol): Make return type const.
1058 * ada-lang.c (ada_decode_symbol): Likewise.
1059
b1ae631a
DE
10602013-01-23 Doug Evans <dje@google.com>
1061
1062 * linespec.c (find_linespec_symbols): Make static.
1063
55a78401
SDJ
10642013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1065
1066 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1067 type on float conversion for complex type.
1068
bea883fd
SCR
10692013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1070
1071 Add a new class gdb.Architecture which exposes GDB's
1072 internal representation of architecture via GDB Python API.
1073 * Makefile.in: Add entries corresponding to the new file
1074 python/py-arch.c.
1075 * NEWS (Python Scripting): Add entries for the new class
1076 gdb.Architecture and the new method gdb.Frame.architecture.
1077 * python/py-arch.c: Implement gdb.Architecture class.
1078 * python/py-frame.c (frapy_arch): Implement the method
1079 gdb.Frame.architecture().
1080 (frame_object_methods): Add 'architecture' to the method table.
1081 * python/python-internal.h: Add declarations of new utility
1082 functions.
1083 * python/python.c (_initialize_python): Initialize
1084 gdb.Architecture class.
1085
796a7ff8
DE
10862013-01-23 Doug Evans <dje@google.com>
1087
1088 Work around binutils/15021.
1089 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1090 type_unit_group out of union s. All uses updated.
1091 (read_index_from_section): Watch for index version 8.
1092 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1093 an imported symtab.
1094 (write_psymtabs_to_index): Increment version number to 8.
1095
0928e93d
PA
10962013-01-22 Pedro Alves <palves@redhat.com>
1097
1098 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1099 user-visible.
1100
9c97429f
PA
11012013-01-22 Pedro Alves <palves@redhat.com>
1102
1103 * annotate.c (annotate_breakpoints_changed): Rename to ...
1104 (annotate_breakpoints_invalid): ... this. Make static.
1105 (breakpoint_changed): Adjust.
1106 (_initialize_annotate): Always install the observers. Install a
1107 "breakpoint_created" observer.
1108 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1109 * breakpoint.c (set_breakpoint_condition)
1110 (breakpoint_set_commands, do_map_commands_command)
1111 (init_raw_breakpoint, clear_command, set_ignore_count)
1112 (enable_breakpoint_disp): No longer call
1113 annotate_breakpoints_changed.
1114
bd00c694
PA
11152013-01-22 Pedro Alves <palves@redhat.com>
1116
1117 * annotate.c: Include "inferior.h".
1118 (frames_invalid_emitted)
1119 (breakpoints_invalid_emitted): New globals.
1120 (async_background_execution_p): New function.
1121 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1122 emitting the annotation if it has already been emitted.
1123 (annotate_display_prompt): New function.
1124 * annotate.h (annotate_display_prompt): New declaration.
1125 * event-top.c: Include annotate.h.
1126 (display_gdb_prompt): Call annotate_display_prompt.
1127
187d10dd
PA
11282013-01-22 Pedro Alves <palves@redhat.com>
1129
1130 * annotate.c (ignore_count_changed): Delete.
1131 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1132 (annotate_ignore_count_change): Delete.
1133 (annotate_stopped): Don't emit a delayed breakpoints-changed
1134 annotation.
1135 * annotate.h (annotate_ignore_count_change): Delete.
1136 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1137 annotate_ignore_count_change.
1138
d84cf7eb
TT
11392013-01-22 Tom Tromey <tromey@redhat.com>
1140
1141 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1142 require_rvalue for a register location.
1143
8f1d5693
MK
11442013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1145
1146 * breakpoint.c (print_one_breakpoint_location): Add MI
1147 field 'thread-groups' when printing a breakpoint.
1148 (output_thread_groups): New function.
1149
aa6199c6
SCR
11502013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1151
1152 * python/lib/gdb/commands/explore.py
1153 (CompoundExplorer.explore_expr): Correct the name of a method
1154 being invoked.
1155 (ExploreTypeCommand.invoke): Add a missing 'return'.
1156
d2afef13
TT
11572013-01-21 Tom Tromey <tromey@redhat.com>
1158
1159 * gdb_obstack.h (obconcat): Move declaration here, from...
1160 * symfile.h (obconcat): ... here.
1161 * gdb_obstack.c: New file.
1162 (obconcat): Move from...
1163 * symfile.c (obconcat): ... here.
1164 * Makefile.in (SFILES): Add gdb_obstack.c.
1165 (COMMON_OBS): Add gdb_obstack.o.
1166
10f0c4bb
TT
11672013-01-21 Tom Tromey <tromey@redhat.com>
1168
1169 * symfile.h (obsavestring): Don't declare.
1170 * symfile.c (obsavestring): Remove.
1171 * ada-exp.y: Use obstack_copy0, not obsavestring.
1172 * ada-lang.c: Use obstack_copy0, not obsavestring.
1173 * coffread.c: Use obstack_copy0, not obsavestring.
1174 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1175 * dbxread.c: Use obstack_copy0, not obsavestring.
1176 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1177 * jit.c: Use obstack_copy0, not obsavestring.
1178 * mdebugread.c: Use obstack_copy0, not obsavestring.
1179 * psymtab.c: Use obstack_copy0, not obsavestring.
1180 * stabsread.c: Use obstack_copy0, not obsavestring.
1181 * xcoffread.c: Use obstack_copy0, not obsavestring.
1182
86f62fd7
TT
11832013-01-21 Tom Tromey <tromey@redhat.com>
1184
1185 * dwarf2read.c (fixup_go_packaging): Save package name
1186 on objfile obstack.
1187 * gdbtypes.c (init_type): Don't copy name.
1188
15d034d0
TT
11892013-01-21 Tom Tromey <tromey@redhat.com>
1190
1191 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1192 const.
1193 (struct attribute) <u.str>: Now const.
1194 (struct fnfieldlist) <name>: Now const.
1195 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1196 (partial_die_parent_scope): Make return type const.
1197 (partial_die_full_name, add_partial_symbol): Update.
1198 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1199 'name' const.
1200 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1201 (read_file_scope, read_func_scope, dwarf2_add_field)
1202 (dwarf2_add_member_fn, read_structure_type)
1203 (process_enumeration_scope, read_array_type, read_module_type)
1204 (read_base_type, read_subrange_type): Update.
1205 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1206 (new_symbol_full, guess_full_die_structure_name): Update.
1207 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1208 (dwarf2_name): Return const type.
1209 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1210 const.
1211
748e18ae
TT
12122013-01-21 Tom Tromey <tromey@redhat.com>
1213
1214 * gdbtypes.c (init_type): Make 'name' const.
1215 * gdbtypes.h (init_type): Update.
1216
46212e0b
TT
12172013-01-21 Tom Tromey <tromey@redhat.com>
1218
1219 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1220 (start_symtab): Make 'name' and 'dirname' const. Use
1221 set_last_source_file.
1222 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1223 (last_source_file): Define. Now static.
1224 (set_last_source_file, get_last_source_file): New functions.
1225 * buildsym.h (last_source_file): Don't declare.
1226 (start_symtab): Update.
1227 (set_last_source_file, get_last_source_file): Declare.
1228 * coffread.c (complete_symtab): Use set_last_source_file.
1229 (coff_end_symtab): Likewise.
1230 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1231 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1232 set_last_source_file.
1233 (process_one_symbol): Use get_last_source_file.
1234 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1235 (psymtab_to_symtab_1): Use get_last_source_file.
1236 * xcoffread.c (process_linenos): Use get_last_source_file.
1237 (complete_symtab): Use set_last_source_file.
1238 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1239 (scan_xcoff_symtab): Use set_last_source_file.
1240
9d2ceabe
TT
12412013-01-21 Tom Tromey <tromey@redhat.com>
1242
1243 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1244 (symbol_set_names): Remove casts. Handle field const-ness.
1245
cfc594ee
TT
12462013-01-21 Tom Tromey <tromey@redhat.com>
1247
1248 * dwarf2read.c (new_symbol_full): Remove cast.
1249 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1250 * symtab.h (symbol_set_demangled_name): Update.
1251
5484b13a
TT
12522013-01-21 Tom Tromey <tromey@redhat.com>
1253
1254 * main.c (captured_main): Call bfd_init.
1255
1605ef26
TT
12562013-01-21 Tom Tromey <tromey@redhat.com>
1257
1258 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1259 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1260 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1261 * NEWS: Update.
1262
3b74cdc3
JK
12632013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1264
1265 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1266
5a352474
JK
12672013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1268
1269 Fix gdb.fortran/common-block.exp crash in PIE mode.
1270 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1271 LOC_COMMON_BLOCK.
1272 * f-valprint.c (info_common_command_for_block): Expect
1273 LOC_COMMON_BLOCK in gdb_assert.
1274 * symtab.h (struct general_symbol_info): Update comment for the
1275 common_block member.
1276 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1277 (enum address_class): New member LOC_COMMON_BLOCK.
1278
c60797fd
DB
12792013-01-18 David Blaikie <dblaikie@gmail.com>
1280
1281 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 1282
46f35228
TT
12832013-01-18 Tom Tromey <tromey@redhat.com>
1284
1285 PR c++/14999:
1286 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1287 Call require_rvalue.
1288
257e7a09
YQ
12892013-01-18 Yao Qi <yao@codesourcery.com>
1290
1291 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1292 (dbx_read_symtab): New declaration.
1293 (dbx_psymtab_to_symtab): Delete.
1294 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1295 Rename parameter PST to SELF. Exchanged two parameters.
1296 (start_psymtab): Caller update.
1297 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1298 (dwarf2_read_symtab): New declaration.
1299 (dwarf2_psymtab_to_symtab): Delete.
1300 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1301 Rename parameter PST to SELF. Exchanged two parameters.
1302 (create_partial_symtab): Caller update.
1303 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1304 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1305 Rename parameter PST to SELF. Exchanged two parameters.
1306 (parse_partial_symbols, new_psymtab): Caller update.
1307 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1308 two parameters.
1309 * psymtab.c (psymtab_to_symtab): Caller update.
1310 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1311 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1312 Rename parameter PST to SELF. Exchanged two parameters.
1313 (xcoff_start_psymtab): Caller update.
1314
0de5618e
YQ
13152013-01-18 Yao Qi <yao@codesourcery.com>
1316
1317 * infrun.c (proceed): Rename local variable 'oneproc' to
1318 'force_step'.
1319
5c04624b
DE
13202013-01-17 Doug Evans <dje@google.com>
1321
848e3e78
DE
1322 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1323 (dw2_build_type_unit_groups): Delete. All uses updated.
1324
5c04624b
DE
1325 * symtab.h (struct symbol_search): Add comment.
1326
d84fca2c
JK
13272013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1328
1329 * symtab.c (compare_filenames_for_search): New comment for
1330 HAS_DRIVE_SPEC.
1331
6108433d
TT
13322013-01-17 Tom Tromey <tromey@redhat.com>
1333
1334 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1335
c89ffd86
JK
13362013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1337
1338 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1339 initialize it by existing make_cleanup. Call new do_cleanups.
1340
db2b2972
TT
13412013-01-17 Tom Tromey <tromey@redhat.com>
1342
1343 * cp-abi.c (cp_abi_completer): New function.
1344 (_initialize_cp_abi): Set completer for "set cp-abi".
1345
be7d37a2
TT
13462013-01-17 Tom Tromey <tromey@redhat.com>
1347
1348 * mem-break.c: Remove obsolete comment.
1349 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1350
c9fb1240
SD
13512012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1352
1353 * jit.c (jit_reader_load_command): Interpret the jit reader name
1354 as an absolute path if it begins with a forward slash.
1355
db334a01
SD
13562012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1357
1358 PR gdb/14550
1359
1360 * jit.c (finalize_symtab): Ensure that only the global block has a
1361 NULL superblock.
1362
7d928dac
PA
13632013-01-17 Pedro Alves <palves@redhat.com>
1364
1365 * acinclude.m4: Include ../config/plugins.m4,
1366 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1367 * Makefile.in (aclocal_m4_deps): Update.
1368 * aclocal.m4: Renegerate.
1369
fb8cf7c5
DE
13702013-01-16 Doug Evans <dje@google.com>
1371
1372 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1373
ab04a2af
TT
13742013-01-16 Pedro Alves <palves@redhat.com>
1375 Tom Tromey <tromey@redhat.com>
1376
1377 PR cli/7221:
1378 * NEWS: Add "catch signal".
1379 * breakpoint.c (base_breakpoint_ops): No longer static.
1380 (bpstat_explains_signal): New function.
1381 (init_catchpoint): No longer static.
1382 (base_breakpoint_explains_signal): New function.
1383 (base_breakpoint_ops): Initialize new field.
1384 * breakpoint.h (enum bpstat_signal_value): New.
1385 (struct breakpoint_ops) <explains_signal>: New field.
1386 (bpstat_explains_signal): Remove macro, declare as function.
1387 (base_breakpoint_ops, init_catchpoint): Declare.
1388 * break-catch-sig.c: New file.
1389 * inferior.h (signal_catch_update): Declare.
1390 * infrun.c (signal_catch): New global.
1391 (handle_syscall_event): Update for change to
1392 bpstat_explains_signal.
1393 (handle_inferior_event): Likewise. Always handle random signals
1394 via bpstats.
1395 (signal_cache_update): Check signal_catch.
1396 (signal_catch_update): New function.
1397 (_initialize_infrun): Initialize signal_catch.
1398 * Makefile.in (SFILES): Add break-catch-sig.c.
1399 (COMMON_OBS): Add break-catch-sig.o.
1400
8ac3646f
TT
14012013-01-16 Tom Tromey <tromey@redhat.com>
1402
1403 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1404 (print_one_catch_solib, print_one_catch_syscall)
1405 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1406 "catch-type".
1407
5a18e302
YQ
14082013-01-16 Yao Qi <yao@codesourcery.com>
1409
1410 * printcmd.c (current_display_number): Make it static.
1411
3f01d0d0
YQ
14122013-01-16 Yao Qi <yao@codesourcery.com>
1413
1414 * infcmd.c (step_once): Don't check '!single_inst' as it was
1415 checked before.
1416
1ed59174
JK
14172013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1418
1419 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1420
44478ab3
TT
14212013-01-14 Tom Tromey <tromey@redhat.com>
1422
1423 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1424 set command.
1425 * command.h (add_setshow_string_noescape_cmd): Update.
1426 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1427 (complete_set_gnutarget): New function.
1428 (_initialize_core): Set the "set gnutarget" completer.
1429
06d66ee9
TT
14302013-01-14 Tom Tromey <tromey@redhat.com>
1431
1432 PR symtab/14442:
1433 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1434 (c_type_print_modifier): Likewise.
1435 * dwarf2read.c (read_tag_restrict_type): New function.
1436 (read_type_die_1): Handle DW_TAG_restrict_type.
1437 * gdbtypes.c (make_restrict_type): New function.
1438 (recursive_dump_type): Handle TYPE_RESTRICT.
1439 * gdbtypes.h (enum type_flag_values): Renumber.
1440 (enum type_instance_flag_value): Add
1441 TYPE_INSTANCE_FLAG_RESTRICT.
1442 (TYPE_RESTRICT): New macro.
1443 (make_restrict_type): Declare.
1444
c9bf0622
TT
14452013-01-14 Tom Tromey <tromey@redhat.com>
1446
1447 PR symtab/14931:
1448 * psymtab.c (struct psymtab_state): New.
1449 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1450 functions.
1451 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1452 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1453
44d594fd
PA
14542013-01-14 Richard Sharman <richard_sharman@mitel.com>
1455 Pedro Alves <palves@redhat.com>
1456
1457 PR remote/14786
1458
1459 * remote.c (remote_threads_info): Make a copy of the reply from
1460 qfThreadInfo and use that instead of rs->buf.
1461
442e4d9c
YQ
14622013-01-14 Yao Qi <yao@codesourcery.com>
1463
1464 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1465 (dbx_psymtab_to_symtab): Likewise.
1466 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1467 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1468 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1469
5b12a61c
JK
14702013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1471
1472 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1473 make_cleanup_restore_current_language. Call set_language. Move
1474 OLD_CHAIN and INNER_CHAIN cleanups.
1475 * utils.c (do_restore_current_language)
1476 (make_cleanup_restore_current_language): New functions.
1477 * utils.h (make_cleanup_restore_current_language): New declaration.
1478
f0a4b570
JK
14792013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1480
1481 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1482 non-existing files.
1483
57b3c00c
JK
1484 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1485 non-existing files if FILENAME is already absolute.
1486
daefa854
JK
14872013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1488
1489 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1490 fputs_filtered. Append trailing newline.
1491
ca9c6ee2
YQ
14922013-01-11 Yao Qi <yao@codesourcery.com>
1493 Stan Shebs <stan@codesourcery.com>
1494
1495 * psymtab.c (init_psymbol_list): Clarify the comment.
1496
f28045c2
YQ
14972013-01-11 Yao Qi <yao@codesourcery.com>
1498
1499 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1500 (update_dprintf_command_list): Assert that 'printf_line' is
1501 non-null. Remove condition check.
1502
da5132d3
JK
15032013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1504
1505 Code cleanup.
1506 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1507 type const char *.
1508 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1509 const char *.
1510 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1511
843e694d
AG
15122013-01-09 Anthony Green <green@moxielogic.com>
1513
1514 * cp-abi.c (cplus_print_vtable): Don't return value from void
1515 function.
1516 * ada-lang.c (re_set_catch_assert): Ditto.
1517
da51c347
DE
15182013-01-09 Doug Evans <dje@google.com>
1519
1520 * symfile.h (quick_symbol_functions): Delete member
1521 pre_expand_symtabs_matching. All uses removed.
1522 * dwarf2read.c (dw2_lookup_symbol): Implement.
1523 (dw2_do_expand_symtabs_matching): Delete.
1524 (dw2_pre_expand_symtabs_matching): Delete.
1525 (struct dw2_symtab_iterator): New type.
1526 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1527 (dw2_expand_symtabs_for_function): Rewrite.
1528 (dwarf2_gdb_index_functions): Update.
1529 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1530 (psym_functions): Update.
1531
b2259038
TT
15322013-01-09 Tom Tromey <tromey@redhat.com>
1533
1534 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1535 * configure: Rebuild.
1536 * configure.ac: Add somread.o to the build if BFD has SOM
1537 support.
1538 * somread.c: Include som/aout.h, not syms.h.
1539 (som_symtab_read): Use som_external_symbol_dictionary_record.
1540 Unpack records manually.
1541 (_initialize_somread): Declare.
1542
bdad4180
MF
15432012-01-08 Mike Frysinger <vapier@gentoo.org>
1544
1545 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1546 Cast return_address to 64bits.
1547
03cdf680
HZ
15482013-01-08 Hui Zhu <hui_zhu@mentor.com>
1549
1550 * printcmd.c: Remove define of function output_command.
1551 * tracepoint.c: Remove extern of function output_command.
1552 * valprint.h: (output_command): New extern.
1553
8a808554
TT
15542013-01-07 Tom Tromey <tromey@redhat.com>
1555
1556 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1557 Remove.
1558 (objc_language_defn): Use c_printchar, c_printstr,
1559 c_emit_char.
1560
e93a8774
TT
15612013-01-07 Tom Tromey <tromey@redhat.com>
1562
1563 PR cli/7719:
1564 * NEWS: Update.
1565 * ada-valprint.c (printstr, print_field_values): Remove
1566 "inspect_it" code.
1567 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1568 code.
1569 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1570 code.
1571 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1572 * main.c (captured_main): Remove "epoch" argument.
1573 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1574 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1575 * p-valprint.c (pascal_object_print_value_fields): Remove
1576 "inspect_it" code.
1577 * printcmd.c (print_command_1): Remove 'inspect' argument.
1578 (print_command, call_command): Update.
1579 (inspect_command): Remove.
1580 (_initialize_printcmd): Make "inspect" an alias for "print".
1581 * top.c (epoch_interface): Remove.
1582 * top.h (epoch_interface): Remove.
1583 * valprint.c (user_print_options): Update.
1584 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1585 * valprint.h (struct value_print_options) <inspect_it>: Remove
1586 field.
1587
15882013-01-04 Tom Tromey <tromey@redhat.com>
1589
1590 * valprint.h (read_string): Add 'extern'.
1591
b967eb24
JB
15922013-01-07 Joel Brobecker <brobecker@adacore.com>
1593
1594 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1595 used to decide whether to define darwin_read_dyld_info or not.
1596
78a8b30e
PM
15972013-01-03 Pierre Muller <muller@sourceware.org>
1598
1599 * main.c (relocate_gdb_directory): Avoid calling stat function
1600 if DIR is empty.
1601
50da2f25
YQ
16022013-01-03 Yao Qi <yao@codesourcery.com>
1603
1604 * psymtab.c (fixup_psymbol_section): Update declaration.
1605 (fixup_psymbol_section): Remove code returning value.
1606
e7e8980f
YQ
16072013-01-03 Yao Qi <yao@codesourcery.com>
1608
1609 * symtab.h: Remove some out of date comments.
1610 (enum exception_event_kind): Move it ...
1611 * breakpoint.c: ... here.
1612
569283d4
MF
16132013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1614
9f9d9a96 1615 PR gdb/14405
569283d4
MF
1616 * darwin-nat.c (darwin_read_dyld_info): Only build if
1617 TASK_DYLD_INFO_COUNT is defined.
1618 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1619 TASK_DYLD_INFO_COUNT is defined.
1620
2e36fbea
TT
16212013-01-02 Tom Tromey <tromey@redhat.com>
1622
1623 * symfile.h (struct ecoff_debug_hack): Remove.
1624 * objfiles.c: Don't include mdebugread.h.
1625
4f05add4
TT
16262013-01-02 Tom Tromey <tromey@redhat.com>
1627
1628 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1629 * configure.ac: Check for Mach-O support in BFD. Update
1630 CONFIG_OBS.
1631 * configure: Rebuild.
1632
def63ff0
TT
16332013-01-02 Tom Tromey <tromey@redhat.com>
1634
1635 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1636 * configure.ac: Use GDB_AC_CHECK_BFD.
1637 * configure: Rebuild.
1638
60c5dd93
MK
16392013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1640
1641 * MAINTAINERS: Update my email.
1642
6e58437e
JB
16432013-01-01 Joel Brobecker <brobecker@adacore.com>
1644
1645 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1646
627fe805
JB
16472013-01-01 Joel Brobecker <brobecker@adacore.com>
1648
1649 * rs6000-nat.c (bss_data_overlap): New function.
1650 (vmap_symtab): Use it to adjust the .bss section's offset.
1651
28e7fd62
JB
16522013-01-01 Joel Brobecker <brobecker@adacore.com>
1653
1654 Update year range in copyright notice of all files.
1655
e93a8774 16562013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
1657
1658 * top.c (print_gdb_version): Update copyright year.
1659
72b20e9c 1660For older changes see ChangeLog-2012.
c906108c
SS
1661\f
1662Local Variables:
1663mode: change-log
1664left-margin: 8
1665fill-column: 74
1666version-control: never
57da7796 1667coding: utf-8
c906108c 1668End:
This page took 1.7523 seconds and 4 git commands to generate.