binutils-gdb/gdb/python
Tom Tromey d7bc2ad417 Use string_view in user_reg_map_name_to_regnum
This changes user_reg_map_name_to_regnum to use std::string_view.
This pointed out some dead code in that function: the "len < 0" test
in the loop can never be true, because earlier code changes 'len' in
this case.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
2025-12-22 13:24:38 -07:00
..
lib/gdb DAP: accept requests with '"arguments": null' 2025-12-15 07:28:10 -07:00
py-all-events.def Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-arch.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-auto-load.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-block.c gdb/python: fix gdb.Block repr output 2025-11-06 10:00:33 +00:00
py-bpevent.c Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-breakpoint.c gdb: add a constructor for symtab 2025-11-02 16:09:04 +00:00
py-cmd.c gdb: add "essential" command class 2025-11-05 18:17:23 -03:00
py-color.c gdb/python/guile: check if styling is disabled in Color.escape_sequence 2025-05-06 11:24:28 +01:00
py-color.h Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-connection.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-continueevent.c Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-corefile.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-dap.c Change file initialization to use INIT_GDB_FILE macro 2025-06-26 06:15:59 -06:00
py-disasm.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-event-types.def Have gdb.ThreadExitedEvent inherit from gdb.ThreadEvent 2025-09-18 08:07:49 -06:00
py-event.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-event.h Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-events.h Don't use "module" name 2025-12-18 11:50:08 -07:00
py-evtregistry.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-evts.c Don't use "module" name 2025-12-18 11:50:08 -07:00
py-exitedevent.c Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-finishbreakpoint.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-frame.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-framefilter.c Don't use "module" name 2025-12-18 11:50:08 -07:00
py-function.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-gdb-readline.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-inferior.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-infevents.c gdb/python: return gdbpy_ref<> from gdbpy_create_ptid_object 2025-08-26 22:02:40 +01:00
py-infthread.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-instruction.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-instruction.h Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-lazy-string.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-linetable.c gdb: change find_pcs_for_symtab_line() to return entries instead of PCs 2025-10-23 20:39:44 +01:00
py-membuf.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-mi.c Use gnulib c-ctype module in gdb 2025-09-09 11:59:04 -06:00
py-micmd.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-newobjfileevent.c Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-objfile.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-param.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-prettyprint.c gdb, gdbserver, gdbsupport: trim trailing whitespaces 2025-10-20 15:44:08 -04:00
py-progspace.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-record-btrace.c Don't use "module" name 2025-12-18 11:50:08 -07:00
py-record-btrace.h Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-record-full.c Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-record-full.h Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-record.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-record.h Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-ref.h Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-registers.c Use string_view in user_reg_map_name_to_regnum 2025-12-22 13:24:38 -07:00
py-signalevent.c Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-stopevent.c Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-stopevent.h Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-style.c gdb/python: cast to ui_file_style::intensity after validating value 2025-10-08 14:57:57 -04:00
py-symbol.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-symtab.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-threadevent.c Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-tui.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-type.c Allow Python to create const+volatile types 2025-11-11 14:40:03 -07:00
py-uiout.h Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-unwind.c gdb: fix some whitespace issues 2025-11-26 15:12:03 -05:00
py-utils.c Don't use "module" name 2025-12-18 11:50:08 -07:00
py-value.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
py-varobj.c Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
py-xmethods.c Remove Python API checker defines 2025-10-23 07:48:55 -06:00
python-config.py Run isort 2024-04-02 11:21:39 -06:00
python-internal.h Don't use "module" name 2025-12-18 11:50:08 -07:00
python.c Don't use "module" name 2025-12-18 11:50:08 -07:00
python.h Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00